The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Bio::Polloc::Rule::composition - A rule of type composition

AUTHOR - Luis M. Rodriguez-R

Email lmrodriguezr at gmail dot com

APPENDIX

Methods provided by the package

new

Generic initialization method.

execute

Counts the number of letters or groups of letters and compares this number with the requested range (See Bio::Polloc::Rule::composition::_qualify_value)

Arguments

-seq a Bio::Seq or Bio::SeqIO object

The input sequence(s).

Returns

An array reference populated with Bio::Polloc::Locus::composition objects or undef. Note that this method returns one Locus per sequence at most.

stringify_value

Stringifies the rule.

letters

Sets/gets the residues

Arguments

Residues (str, optional)

Returns

Residues (str or undef)

min_perc

Sets/gets the minimum percentage

Arguments

Percentage (float, optional)

Returns

Percentage (float or undef)

max_perc

Sets/gets the maximum percentage

Arguments

Percentage (float, optional)

Returns

Percentage (float or undef)

INTERNAL METHODS

Methods intended to be used only within the scope of Bio::Polloc::*

_qualify_value

Implements the _qualify_value from the Bio::Polloc::RuleI interface

Arguments

Value (str or ref-to-hash or ref-to-array). The supported keys are:

-letters

The residues to take into account as a string

-range

The allowed (perc.) range in the format 20..50

-min_perc

The minimum percentage (ignored if range is set)

-max_perc

The maximum percentage (ignored if range is set)

Returns

Value (ref-to-hash or undef)

_initialize