NAME

Bio::Palantir::Roles::Modulable::Component

VERSION

version 0.201670

SYNOPSIS

# TODO

DESCRIPTION

# TODO

ATTRIBUTES

domains

ArrayRef of Bio::Palantir::Parser::Domain

METHODS

count_domains

Returns the number of Domains of the Component.

# $component is a Bio::Palantir::Parser::Component
my $count = $component->count_domains;

This method does not accept any arguments.

all_domains

Returns all the Domains of the Component (not an array reference).

# $component is a Bio::Palantir::Parser::Component
my @domains = $component->all_domains;

This method does not accept any arguments.

get_domain

Returns one Domain of the Component by its index. You can also use negative index numbers, just as with Perl's core array handling. If the specified Domain does not exist, this method will return undef.

# $component is a Bio::Palantir::Parser::Component
my $domain = $component->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.

# $component is a Bio::Palantir::Parser::Component
while (my $domain = $component->next_domain) {
    # process $domain
    # ...
}

This method does not accept any arguments.

sort_domains

Returns a array of sorted domains by increasing start coordinate (by default, the list of domains should be built in the right order, so it is a security here).

    # $component is a Bio::Palantir::Roles::Modulable::Component
	my @sorted_domains = $component->sort_domains;

This method does not accept any arguments.

genomic_dna_begin

Returns the begin of the genomic DNA coordinate of the module.

    # $component is a Bio::Palantir::Roles::Modulable::Component
	my $genomic_dna_begin = $component->genomic_dna_begin;

genomic_dna_end

Returns the end of the genomic DNA coordinate of the module.

    # $component is a Bio::Palantir::Roles::Modulable::Component
	my $genomic_dna_end = $component->genomic_dna_end;

get_domain_functions

Returns the list of functions from the domains constituting the module.

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.