[Bioperl-l] parsing blast reports
Dave Messina
David.Messina at sbc.su.se
Wed Apr 7 17:19:39 UTC 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:
http://www.perl.com/pub/a/2003/08/21/perlcookbook.html?page=2
Dave
More information about the Bioperl-l
mailing list