Bio::Phylo::Matrices::Datatype::Restriction - Validator subclass,


Bio-Phylo documentation Contained in the Bio-Phylo distribution.

Index


Code Index:

NAME

Top

Bio::Phylo::Matrices::Datatype::Restriction - Validator subclass, no serviceable parts inside

DESCRIPTION

Top

The Bio::Phylo::Matrices::Datatype::* classes are used to validate data contained by Bio::Phylo::Matrices::Matrix and Bio::Phylo::Matrices::Datum objects.

METHODS

get_ids_for_special_symbols()

Gets state-to-id mapping for missing and gap symbols

 Type    : Accessor
 Title   : get_ids_for_special_symbols
 Usage   : my %ids = %{ $obj->get_ids_for_special_symbols };
 Function: Returns state-to-id mapping
 Returns : An empty hash reference
 Args    : None
 Notes   : This method is here as an override
           because restriction site data has
           no missing or gap symbols, just
           presence/absence

SEE ALSO

Top

Bio::Phylo::Matrices::Datatype

This class subclasses Bio::Phylo::Matrices::Datatype.

Bio::Phylo::Manual

Also see the manual: Bio::Phylo::Manual and http://rutgervos.blogspot.com.

CITATION

Top

If you use Bio::Phylo in published research, please cite it:

Rutger A Vos, Jason Caravas, Klaas Hartmann, Mark A Jensen and Chase Miller, 2011. Bio::Phylo - phyloinformatic analysis using Perl. BMC Bioinformatics 12:63. http://dx.doi.org/10.1186/1471-2105-12-63

REVISION

Top

 $Id: Restriction.pm 1660 2011-04-02 18:29:40Z rvos $


Bio-Phylo documentation Contained in the Bio-Phylo distribution.
# $Id: Restriction.pm 1660 2011-04-02 18:29:40Z rvos $
package Bio::Phylo::Matrices::Datatype::Restriction;
use strict;
use base 'Bio::Phylo::Matrices::Datatype';
our ( $LOOKUP, $MISSING, $GAP );

sub get_ids_for_special_symbols {
    return {};
}

# podinherit_insert_token

$LOOKUP = {
    '0' => ['0'],
    '1' => ['1'],
};
1;