[Biojava-l] Blast-xml parser

Ewan Birney birney@ebi.ac.uk
Wed, 6 Mar 2002 17:07:17 +0000 (GMT)


On Wed, 6 Mar 2002, Jason Stajich wrote:

> #!/usr/bin/perl -w
> use strict;
> 
> use Bio::SearchIO;
> use Bio::SearchIO::Writer::HTMLResultWriter;
> 
> my $in = new Bio::SearchIO(-format => 'blastxml',
>                            -file   => shift @ARGV);
> 
> my $writer = new Bio::SearchIO::Writer::HTMLResultWriter();
> my $out = new Bio::SearchIO(-writer => $writer);
> $out->write_result($in->next_result);
> 

<sigh>. That's lovely code. I can't believe you Java guys would really
want to have to make that an object. 


Beautiful... I'm really impressed by the SearchIO stuff (SearchIO is
Jason's baby inside Bioperl).


<grin>
Can you beat that BioJava?
</grin>