[Bioperl-l] blast best hit
Brian Osborne
bosborne11 at verizon.net
Thu Mar 31 09:04:22 EDT 2011
Boyang,
You can sort the hits, by any criterion you want:
my @hits = $result->hits;
@hits = sort { $a-> bits <=> $b->bits } @hits;
BIO
On Mar 31, 2011, at 8:28 AM, boyang zhe wrote:
> Hi,
>
> I just want to parse the blast results ,and get the best hit.
>
> One way is to parse the results as usual, then get the first hit and exit
> the loop.
>
> I checked the bioperl document, and find that there is a method
> best_hit_only in Bio::SearchIO::blast.pm.
> But it only return 1/0. So my question is how to use this method to get the
> best hit.
>
> Thank you very much!
>
> Boyang
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
More information about the Bioperl-l
mailing list