Bio::Gonzales::Range::Cluster - cluster sorted ranges iteratively
my $cr = Bio::Gonzales::Range::Cluster->new; my @ranges = ( [ 417, '575', 7991 ], [ 537, '829', 7992 ], [ 839, '901', 7993 ], ); my @sorted_ranges = sort { $a->[0] <=> $b->[0] or $a->[1] <=> $b->[1] } @ranges; for my $r (@sorted_ranges) { $cr->add_next_range($r); } my $result = $cr->finish->clusters;
jw bargsten, <jwb at cpan dot org>
<jwb at cpan dot org>
To install Bio::Gonzales, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Gonzales
CPAN shell
perl -MCPAN -e shell install Bio::Gonzales
For more information on module installation, please visit the detailed CPAN module installation guide.