Bio::Palantir::Explorer::ClusterFasta - Explorer internal class for handling ClusterFasta objects
version 0.211420
# TODO
ArrayRef of Bio::Palantir::Explorer::GeneFasta
Returns the number of Genes of the Cluster.
# $cluster is a Bio::Palantir::Explorer::ClusterFasta my $count = $cluster->count_genes;
This method does not accept any arguments.
Returns all the Genes of the Cluster (not an array reference).
# $cluster is a Bio::Palantir::Explorer::ClusterFasta my @genes = $cluster->all_genes;
Returns one Gene of the Cluster by its index. You can also use negative index numbers, just as with Perl's core array handling. If the specified Gene does not exist, this method will return undef.
undef
# $cluster is a Bio::Palantir::Explorer::ClusterFasta my $gene = $cluster->get_gene($index); croak "Gene $index not found!" unless defined $gene;
This method accepts just one argument (and not an array slice).
Shifts the first Gene of the array off and returns it, shortening the array by 1 and moving everything down. If there are no more Genes in the array, returns undef.
# $cluster is a Bio::Palantir::Explorer::ClusterFasta while (my $gene = $cluster->next_gene) { # process $gene # ... }
Loic MEUNIER <lmeunier@uliege.be>
This software is copyright (c) 2019 by University of Liege / Unit of Eukaryotic Phylogenomics / Loic MEUNIER and Denis BAURAIN.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bio::Palantir, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Palantir
CPAN shell
perl -MCPAN -e shell install Bio::Palantir
For more information on module installation, please visit the detailed CPAN module installation guide.