Bio::Grid::Run::SGE::Iterator::Consecutive - iterate consecutively through an index
my $index = Bio::Grid::Run::SGE::Index->new( format => 'Dummy', idx_file => undef )->create; my $it = Bio::Grid::Run::SGE::Iterator::Consecutive->new( indices => [$index] ); # iterate from combinations 3 to 8 $it->start( [ 3, 8 ] ); my @result; while ( my $combination = $it->next_comb ) { push @result, $comb->[0]; }
This is the simplest iterator, it runs through a range of elements in an index.
This index inherits methods from Bio::Grid::Run::SGE::Role::Iterable. See documentation at Bio::Grid::Run::SGE::Role::Iterable for more information.
Only additional methods are documented here.
Bio::Grid::Run::SGE::Role::Iterable, Bio::Grid::Run::SGE::Iterator
jw bargsten, <jwb at cpan dot org>
<jwb at cpan dot org>
To install Bio::Grid::Run::SGE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Grid::Run::SGE
CPAN shell
perl -MCPAN -e shell install Bio::Grid::Run::SGE
For more information on module installation, please visit the detailed CPAN module installation guide.