[Bioperl-l] Accessing SearchIO BLAST parser
available_parameters/statistics
Jason Stajich
jason at cgt.duhs.duke.edu
Sun May 23 19:12:14 EDT 2004
As it shows you in the SearchIO SYNOPSIS
my $kappa = $result->get_statistic('kappa');
my @statnames = $result->available_statistics;
So to print them all
for my $stat ( $result->available_statistics ) {
printf "%s %s\n", $stat, $result->get_statistic($stat);
}
Same goes for the savailable_parameters/get_parameter methods.
-jason
On Fri, 21 May 2004, Bjorn F.C. Kafsack wrote:
> I'm trying to get at the values stored in
>
> $result->available_parameters or $result->available_statistics
>
> which must be some form of hash but i can't figure out how.
>
> in scalar context i get the number of keys
> in list context i get the keys
> i tried
>
> %stats = %{$result->available_statistics};
> %stats{kappa};
>
> but the assignment doesn't work.
>
> $result->available_statistics->kappa;
>
> that doesn't work either.
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
>
--
Jason Stajich
Duke University
jason at cgt.mc.duke.edu
More information about the Bioperl-l
mailing list