[Bioperl-l] Sort blast file result according to evalues

Chris Fields cjfields at uiuc.edu
Fri Oct 6 11:52:57 EDT 2006


On Oct 6, 2006, at 10:27 AM, Sendu Bala wrote:

>> If you wanted to run a sort yourself you could use a sort block using
>> '{$a->significance() <=> $b->significance()} @hits'
>
> Actually, it is best to use the sort_hits() method of the result  
> object
> prior to asking for any hits. (As this allows for potential  
> optimization
> in the parser.)

Ah, forgot about that one!

Chris


Christopher Fields
Postdoctoral Researcher
Lab of Dr. Robert Switzer
Dept of Biochemistry
University of Illinois Urbana-Champaign





More information about the Bioperl-l mailing list