Phylo/Matrices/Datatype/Restriction.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
get_ids_for_special_symbols
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Bio::Phylo::Matrices::Datatype::Restriction;
2 use strict;
3 use base 'Bio::Phylo::Matrices::Datatype';
4 our ( $LOOKUP, $MISSING, $GAP );
5  
6 =head1 NAME
7  
8 Bio::Phylo::Matrices::Datatype::Restriction - Validator subclass,
9 no serviceable parts inside
10  
11 =head1 DESCRIPTION
12  
13 The Bio::Phylo::Matrices::Datatype::* classes are used to validate data
14 contained by L<Bio::Phylo::Matrices::Matrix> and L<Bio::Phylo::Matrices::Datum>
15 objects.
16  
17 =head2 METHODS
18  
19 =over
20  
21 =item get_ids_for_special_symbols()
22  
23 Gets state-to-id mapping for missing and gap symbols
24  
25 Type : Accessor
26 Title : get_ids_for_special_symbols
27 Usage : my %ids = %{ $obj->get_ids_for_special_symbols };
28 Function: Returns state-to-id mapping
29 Returns : An empty hash reference
30 Args : None
31 Notes : This method is here as an override
32 because restriction site data has
33 no missing or gap symbols, just
34 presence/absence
35  
36 =cut
37  
38 sub get_ids_for_special_symbols {
39 return {};
40 }
41  
42 =back
43  
44 =cut
45  
46 # podinherit_insert_token
47  
48 =head1 SEE ALSO
49  
50 There is a mailing list at L<https://groups.google.com/forum/#!forum/bio-phylo>
51 for any user or developer questions and discussions.
52  
53 =over
54  
55 =item L<Bio::Phylo::Matrices::Datatype>
56  
57 This class subclasses L<Bio::Phylo::Matrices::Datatype>.
58  
59 =item L<Bio::Phylo::Manual>
60  
61 Also see the manual: L<Bio::Phylo::Manual> and L<http://rutgervos.blogspot.com>.
62  
63 =back
64  
65 =head1 CITATION
66  
67 If you use Bio::Phylo in published research, please cite it:
68  
69 B<Rutger A Vos>, B<Jason Caravas>, B<Klaas Hartmann>, B<Mark A Jensen>
70 and B<Chase Miller>, 2011. Bio::Phylo - phyloinformatic analysis using Perl.
71 I<BMC Bioinformatics> B<12>:63.
72 L<http://dx.doi.org/10.1186/1471-2105-12-63>
73  
74 =cut
75  
76 $LOOKUP = {
77 '0' => ['0'],
78 '1' => ['1'],
79 };
80 1;