[Bioperl-l] blast best hit
Frank Schwach
fs5 at sanger.ac.uk
Thu Mar 31 14:23:33 UTC 2011
Yes, best_hit_only is a boolean that can be set to true if you only want
one hit to be returned from the stream of hits (the best hit). I have
never actualyl used this one but you shoud be able to set it in the
constructor as in:
my $blast = Bio::SearchIO->new( ...., -best_hit_only => 1 )
Frank
On Thu, 2011-03-31 at 14:28 +0200, 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
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
More information about the Bioperl-l
mailing list