NAME
Bio::Palantir::Explorer::GeneFasta - Explorer internal class for handling GeneFasta objects
VERSION
version 0.200290
SYNOPSIS
# TODO
DESCRIPTION
# TODO
ATTRIBUTES
domains
ArrayRef of Bio::Palantir::Refiner::DomainPlus
METHODS
count_domains
Returns the number of Domains of the Gene.
# $gene is a Bio::Palantir::Explorer::GeneFasta
my
$count
=
$gene
->count_domains;
This method does not accept any arguments.
all_domains
Returns all the Domains of the Gene (not an array reference).
# $gene is a Bio::Palantir::Explorer::GeneFasta
my
@domains
=
$gene
->all_domains;
This method does not accept any arguments.
get_domain
# $gene is a Bio::Palantir::Explorer::GeneFasta
my
$domain
=
$gene
->get_domain(
$index
);
croak
"Domain $index not found!"
unless
defined
$domain
;
This method accepts just one argument (and not an array slice).
next_domain
Shifts the first Domain of the array off and returns it, shortening the array by 1 and moving everything down. If there are no more Domains in the array, returns undef
.
# $gene is a Bio::Palantir::Explorer::GeneFasta
while
(
my
$domain
=
$gene
->next_domain) {
# process $domain
# ...
}
This method does not accept any arguments.
AUTHOR
Loic MEUNIER <lmeunier@uliege.be>
COPYRIGHT AND LICENSE
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.