[Bioperl-l] problem with SearchIO and writer
Diego Mauricio Riaño Pachón
diriano at uni-potsdam.de
Tue Mar 11 11:55:54 UTC 2008
Dear all,
I have a small problem parsing a BLAST report with SearchIO and using
TextResultWriter.
I have a large file with several BLAST results, I instantiate SearchIO as:
my $searchio = new Bio::SearchIO ('-format' => 'blast', '-file' =>
"$blastFile");
##then I extract each individual report as
while (my $result = $searchio->next_result){
my $writertxt = Bio::SearchIO::Writer::TextResultWriter->new();
my $blastresult=$writertxt->to_string($result);
while (my $hit = $result->next_hit){
print $hit->name."\n";
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diriano.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/bioperl-l/attachments/20080311/85980f6c/attachment-0004.vcf>
More information about the Bioperl-l
mailing list