[Bioperl-l] parsing blast reports

Dave Messina David.Messina at sbc.su.se
Wed Apr 7 13:19:39 EDT 2010

Hi Joan,

In recent versions of Perl, you can open a string as if it were a file:

open(my $fh, "<", \$string) or die "couldn't open $string as a file: $!\n";

And then you'd pass the filehandle to SearchIO instead of a filename:

my $in = new Bio::SearchIO(-format => 'blast', 
                          -fh   => $fh); 

More details here:



More information about the Bioperl-l mailing list