[Bioperl-l] Bio::SearchIO::blast

Josh Lauricha laurichj at bioinfo.ucr.edu
Wed Apr 9 12:21:26 EDT 2003


I have the following code:

...
my $searchio = new Bio::SearchIO(-format => 'blast', -file => 'blast.out')
   or die "couldn't open blast.out";

print $searchio, "\n"; # print type...
while(my $result = $searchio->next_result() ) {
	print $result, "\n"; # print type
...

I need to be able to access the Bio::Search::Result::BlastResult object,
however, $searchio->next_result appears to be returning a
Bio::Search::Result::GenericResult, how can I access the additional
fields?

Also, since that gives the GenericResult, next_hit and next_hsp return
GenericHit and GenericHSP, respectivly.


Thanks
Josh Lauricha


More information about the Bioperl-l mailing list