Bio::DOOP::Util::Sort - sort the array of array objects.
Version 0.1
@result = $mofext->get_results; $sorting = Bio::DOOP::Util::Sort->new($db,\results); @sorted_result = $sorting->sort_by_column(1,"asc"); # Sorting ascendent the score
This class is sort any type of array of array. It can be used to sort the mofext or fuzznuc results, but can sort any other data.
Tibor Nagy, Godollo, Hungary and Endre Sebestyen, Martonvasar, Hungary
Create a Sort class. $mofext_sort = Bio::DOOP::Util::Sort->new($db,\@mofext_result); Arguments: Bio::DOOP::DBSQL, array of array (practically it is a table)
@ret = $mofext_sort->sort_by_column(0,"asc"); Sort a given array by column. (Warning, the first column is zero!) Return type: sorted array of array
To install Bio::DOOP::DOOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::DOOP::DOOP
CPAN shell
perl -MCPAN -e shell install Bio::DOOP::DOOP
For more information on module installation, please visit the detailed CPAN module installation guide.