Phylo/Models/Substitution/Dna/F81.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
get_rate
2.0
get_nst
2.0
BEGIN
2.0
CRAP 2.0
1 package Bio::Phylo::Models::Substitution::Dna::F81;
2 use strict;
3 use base 'Bio::Phylo::Models::Substitution::Dna';
4  
5 =head1 NAME
6  
7 Bio::Phylo::Models::Substitution::Dna::F81 - Felsenstein (1981) model
8  
9 =head1 DESCRIPTION
10  
11 See L<Bio::Phylo::Models::Substitution::Dna>
12  
13 =head1 METHODS
14  
15 =over
16  
17 =item get_rate
18  
19 Getter for substitution rate. If bases are given as arguments,
20 returns corresponding rate. If no arguments given, returns rate matrix or
21 overall rate, dependent on model.
22  
23 Type : method
24 Title : get_rate
25 Usage : $model->get_rate('A', 'C');
26 Function: Getter for transition rate between nucleotides.
27 Returns : scalar or array
28 Args : Optional:
29 base1: scalar
30 base2: scalar
31  
32 =cut
33  
34 # subst rate
35 sub get_rate {
36 my $self = shift;
37 return $self->get_pi(shift);
38 }
39  
40 =item get_nst
41  
42 Getter for number of transition rate parameters.
43  
44 Type : method
45 Title : get_nst
46 Usage : $model->get_nst;
47 Function: Getter for number of transition rate parameters.
48 Returns : scalar
49 Args : None.
50  
51 =cut
52  
53 sub get_nst { 1 }
54  
55 =back
56  
57 =head1 SEE ALSO
58  
59 There is a mailing list at L<https://groups.google.com/forum/#!forum/bio-phylo>
60 for any user or developer questions and discussions.
61  
62 =over
63  
64 =item L<Bio::Phylo::Manual>
65  
66 Also see the manual: L<Bio::Phylo::Manual> and L<http://rutgervos.blogspot.com>.
67  
68 =back
69  
70 =head1 CITATION
71  
72 If you use Bio::Phylo in published research, please cite it:
73  
74 B<Rutger A Vos>, B<Jason Caravas>, B<Klaas Hartmann>, B<Mark A Jensen>
75 and B<Chase Miller>, 2011. Bio::Phylo - phyloinformatic analysis using Perl.
76 I<BMC Bioinformatics> B<12>:63.
77 L<http://dx.doi.org/10.1186/1471-2105-12-63>
78  
79 =cut
80  
81 1;