| 1 | package Bio::Tools::Phylo::PAML::Result; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | 8 | $Bio::Tools::Phylo::PAML::Result::VERSION = '1.7.2'; | |||||||||||||||||||||||||||||||||||||||||
| 3 | 8 | ▶ | use utf8; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 8 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | 8 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||
| 7 | 8 | ▶ | use base qw(Bio::Root::Root Bio::AnalysisResultI); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||
| 9 | # ABSTRACT: A PAML result set object | ||||||||||||||||||||||||||||||||||||||||||
| 10 | # AUTHOR: Jason Stajich <jason@bioperl.org> | ||||||||||||||||||||||||||||||||||||||||||
| 11 | # AUTHOR: Aaron Mackey <amackey@virginia.edu> | ||||||||||||||||||||||||||||||||||||||||||
| 12 | # OWNER: Jason Stajich <jason@bioperl.org> | ||||||||||||||||||||||||||||||||||||||||||
| 13 | # OWNER: Aaron Mackey <amackey@virginia.edu> | ||||||||||||||||||||||||||||||||||||||||||
| 14 | # LICENSE: Perl_5 | ||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||
| 16 | # AUTHOR: Albert Vilella <avilella@gmail.com> | ||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||||||||||||||||
| 20 | sub new { | ||||||||||||||||||||||||||||||||||||||||||
| 21 | 20 | ▶ | my($class,@args) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=44 SCAR=40.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||
| 23 | 20 | my $self = $class->SUPER::new(@args); | |||||||||||||||||||||||||||||||||||||||||
| 24 | 20 | my ($trees,$mlmat,$seqs,$ngmatrix, | |||||||||||||||||||||||||||||||||||||||||
| 25 | $codonpos,$codonfreq,$version, | ||||||||||||||||||||||||||||||||||||||||||
| 26 | $model,$patterns, $stats, | ||||||||||||||||||||||||||||||||||||||||||
| 27 | $aafreq, $aadistmat, | ||||||||||||||||||||||||||||||||||||||||||
| 28 | $aamldistmat, | ||||||||||||||||||||||||||||||||||||||||||
| 29 | $ntfreqs, $seqfile, $kappa_mat, $alpha_mat, | ||||||||||||||||||||||||||||||||||||||||||
| 30 | $NSSitesresults,$input_params,$rst,$rst_persite,$rst_trees ) = | ||||||||||||||||||||||||||||||||||||||||||
| 31 | $self->_rearrange([qw | ||||||||||||||||||||||||||||||||||||||||||
| 32 | (TREES MLMATRIX | ||||||||||||||||||||||||||||||||||||||||||
| 33 | SEQS NGMATRIX | ||||||||||||||||||||||||||||||||||||||||||
| 34 | CODONPOS CODONFREQ | ||||||||||||||||||||||||||||||||||||||||||
| 35 | VERSION MODEL PATTERNS | ||||||||||||||||||||||||||||||||||||||||||
| 36 | STATS AAFREQ AADISTMAT | ||||||||||||||||||||||||||||||||||||||||||
| 37 | AAMLDISTMAT | ||||||||||||||||||||||||||||||||||||||||||
| 38 | NTFREQ SEQFILE | ||||||||||||||||||||||||||||||||||||||||||
| 39 | KAPPA_DISTMAT | ||||||||||||||||||||||||||||||||||||||||||
| 40 | ALPHA_DISTMAT | ||||||||||||||||||||||||||||||||||||||||||
| 41 | NSSITESRESULTS | ||||||||||||||||||||||||||||||||||||||||||
| 42 | INPUT_PARAMS | ||||||||||||||||||||||||||||||||||||||||||
| 43 | RST RST_PERSITE RST_TREES)], | ||||||||||||||||||||||||||||||||||||||||||
| 44 | @args); | ||||||||||||||||||||||||||||||||||||||||||
| 45 | 20 | $self->reset_seqs; | |||||||||||||||||||||||||||||||||||||||||
| 46 | 20 | ▶ | if( $trees ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 47 | 3 | ▶ | if(ref($trees) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 48 | 0 | $self->warn("Must provide a valid array reference to initialize trees"); | |||||||||||||||||||||||||||||||||||||||||
| 49 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 50 | 3 | foreach my $t ( @$trees ) { | |||||||||||||||||||||||||||||||||||||||||
| 51 | 3 | $self->add_tree($t); | |||||||||||||||||||||||||||||||||||||||||
| 52 | } | ||||||||||||||||||||||||||||||||||||||||||
| 53 | } | ||||||||||||||||||||||||||||||||||||||||||
| 54 | } | ||||||||||||||||||||||||||||||||||||||||||
| 55 | 20 | $self->{'_treeiterator'} = 0; | |||||||||||||||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||||||||||||||||
| 57 | 20 | ▶ | if( $mlmat ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 58 | 10 | ▶ | if( ref($mlmat) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 59 | 0 | $self->warn("Must provide a valid array reference to initialize MLmatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 60 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 61 | 10 | $self->set_MLmatrix($mlmat); | |||||||||||||||||||||||||||||||||||||||||
| 62 | } | ||||||||||||||||||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||||||||||||||||
| 64 | 20 | ▶ | if( $seqs ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 65 | 15 | ▶ | if( ref($seqs) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | $self->warn("Must provide a valid array reference to initialize seqs"); | |||||||||||||||||||||||||||||||||||||||||
| 67 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 68 | 15 | foreach my $s ( @$seqs ) { | |||||||||||||||||||||||||||||||||||||||||
| 69 | 80 | $self->add_seq($s); | |||||||||||||||||||||||||||||||||||||||||
| 70 | } | ||||||||||||||||||||||||||||||||||||||||||
| 71 | } | ||||||||||||||||||||||||||||||||||||||||||
| 72 | } | ||||||||||||||||||||||||||||||||||||||||||
| 73 | 20 | ▶ | if( $ngmatrix ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 74 | 16 | ▶ | if( ref($ngmatrix) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 75 | 0 | $self->warn("Must provide a valid array reference to initialize NGmatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 76 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 77 | 16 | $self->set_NGmatrix($ngmatrix); | |||||||||||||||||||||||||||||||||||||||||
| 78 | } | ||||||||||||||||||||||||||||||||||||||||||
| 79 | } | ||||||||||||||||||||||||||||||||||||||||||
| 80 | 20 | ▶ | if( $codonfreq ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 81 | 8 | ▶ | if( ref($codonfreq) =~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 82 | 8 | $self->set_CodonFreqs($codonfreq); | |||||||||||||||||||||||||||||||||||||||||
| 83 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 84 | 0 | $self->warn("Must provide a valid array reference to initialize codonfreq"); | |||||||||||||||||||||||||||||||||||||||||
| 85 | } | ||||||||||||||||||||||||||||||||||||||||||
| 86 | } | ||||||||||||||||||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||||||||||||||||
| 88 | 20 | ▶ | if( $codonpos ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 89 | 14 | ▶ | if( ref($codonpos) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 90 | 0 | $self->warn("Must provide a valid array reference to initialize codonpos"); | |||||||||||||||||||||||||||||||||||||||||
| 91 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 92 | 14 | $self->set_codon_pos_basefreq(@$codonpos); | |||||||||||||||||||||||||||||||||||||||||
| 93 | } | ||||||||||||||||||||||||||||||||||||||||||
| 94 | } | ||||||||||||||||||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||||||||||||||||
| 96 | 20 | ▶ | $self->version($version) if defined $version; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 97 | 20 | ▶ | $self->seqfile($seqfile) if defined $seqfile; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 98 | 20 | ▶ | $self->model($model) if defined $model; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 99 | 20 | ▶ | if( defined $patterns ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 100 | 18 | ▶ | if( ref($patterns) =~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 101 | 18 | $self->patterns($patterns); | |||||||||||||||||||||||||||||||||||||||||
| 102 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 103 | 0 | $self->warn("Must provide a valid array reference to initialize patterns"); | |||||||||||||||||||||||||||||||||||||||||
| 104 | } | ||||||||||||||||||||||||||||||||||||||||||
| 105 | } | ||||||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||||||
| 107 | 20 | $self->{'_aafreqs'} = {}; | |||||||||||||||||||||||||||||||||||||||||
| 108 | 20 | ▶ | if( $aafreq ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 109 | 2 | ▶ | if( ref($aafreq) =~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 110 | 2 | $self->set_AAFreqs($aafreq); | |||||||||||||||||||||||||||||||||||||||||
| 111 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 112 | 0 | $self->warn("Must provide a valid hash reference to initialize aafreq"); | |||||||||||||||||||||||||||||||||||||||||
| 113 | } | ||||||||||||||||||||||||||||||||||||||||||
| 114 | } | ||||||||||||||||||||||||||||||||||||||||||
| 115 | 20 | ▶ | if( $stats ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 116 | 4 | ▶ | if( ref($stats) =~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 117 | 4 | ▶ | while( my ($stat,$val) = each %$stats) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 118 | 11 | $self->add_stat($stat,$val); | |||||||||||||||||||||||||||||||||||||||||
| 119 | } | ||||||||||||||||||||||||||||||||||||||||||
| 120 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 121 | 0 | $self->warn("Must provide a valid hash reference initialize stats"); | |||||||||||||||||||||||||||||||||||||||||
| 122 | } | ||||||||||||||||||||||||||||||||||||||||||
| 123 | } | ||||||||||||||||||||||||||||||||||||||||||
| 124 | 20 | ▶ | $self->set_AADistMatrix($aadistmat) if defined $aadistmat; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 125 | 20 | ▶ | $self->set_AAMLDistMatrix($aamldistmat) if defined $aamldistmat; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||||||||||||||||
| 127 | 20 | ▶ | if( defined $NSSitesresults ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 128 | 5 | ▶ | if( ref($NSSitesresults) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 129 | 0 | $self->warn("expected an arrayref for -NSSitesresults"); | |||||||||||||||||||||||||||||||||||||||||
| 130 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 131 | 5 | foreach my $m ( @$NSSitesresults ) { | |||||||||||||||||||||||||||||||||||||||||
| 132 | 9 | $self->add_NSSite_result($m); | |||||||||||||||||||||||||||||||||||||||||
| 133 | } | ||||||||||||||||||||||||||||||||||||||||||
| 134 | } | ||||||||||||||||||||||||||||||||||||||||||
| 135 | } | ||||||||||||||||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||||||||||||||||
| 137 | 20 | $self->{'_ntfreqs'} = {}; | |||||||||||||||||||||||||||||||||||||||||
| 138 | 20 | ▶ | if( $ntfreqs ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 139 | 2 | ▶ | if( ref($ntfreqs) =~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 140 | 2 | $self->set_NTFreqs($ntfreqs); | |||||||||||||||||||||||||||||||||||||||||
| 141 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 142 | 0 | $self->warn("Must provide a valid hash reference to initialize ntfreq"); | |||||||||||||||||||||||||||||||||||||||||
| 143 | } | ||||||||||||||||||||||||||||||||||||||||||
| 144 | } | ||||||||||||||||||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||||||||||||||||
| 146 | 20 | ▶ | if( $kappa_mat ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 147 | 2 | $self->set_KappaMatrix($kappa_mat); | |||||||||||||||||||||||||||||||||||||||||
| 148 | } | ||||||||||||||||||||||||||||||||||||||||||
| 149 | 20 | ▶ | if( $alpha_mat ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 150 | 2 | $self->set_AlphaMatrix($alpha_mat); | |||||||||||||||||||||||||||||||||||||||||
| 151 | } | ||||||||||||||||||||||||||||||||||||||||||
| 152 | |||||||||||||||||||||||||||||||||||||||||||
| 153 | 20 | ▶ | if( $input_params ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 154 | 8 | ▶ | if( ref($input_params) !~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 155 | 0 | $self->warn("Must provide a valid hash object for input_params\n"); | |||||||||||||||||||||||||||||||||||||||||
| 156 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 157 | 8 | ▶ | while( my ($p,$v) = each %$input_params ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 158 | 10 | $self->set_input_parameter($p,$v); | |||||||||||||||||||||||||||||||||||||||||
| 159 | } | ||||||||||||||||||||||||||||||||||||||||||
| 160 | } | ||||||||||||||||||||||||||||||||||||||||||
| 161 | |||||||||||||||||||||||||||||||||||||||||||
| 162 | } | ||||||||||||||||||||||||||||||||||||||||||
| 163 | 20 | $self->reset_rst_seqs; | |||||||||||||||||||||||||||||||||||||||||
| 164 | 20 | ▶ | if( $rst ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 165 | 1 | ▶ | if( ref($rst) =~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 166 | 1 | for ( @$rst ) { | |||||||||||||||||||||||||||||||||||||||||
| 167 | 20 | $self->add_rst_seq($_); | |||||||||||||||||||||||||||||||||||||||||
| 168 | } | ||||||||||||||||||||||||||||||||||||||||||
| 169 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 170 | 0 | $self->warn("Need a valid array ref for -rst option\n"); | |||||||||||||||||||||||||||||||||||||||||
| 171 | } | ||||||||||||||||||||||||||||||||||||||||||
| 172 | } | ||||||||||||||||||||||||||||||||||||||||||
| 173 | 20 | ▶ | if( defined $rst_persite ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 174 | 1 | $self->set_rst_persite($rst_persite); | |||||||||||||||||||||||||||||||||||||||||
| 175 | } | ||||||||||||||||||||||||||||||||||||||||||
| 176 | 20 | $self->reset_rst_trees; | |||||||||||||||||||||||||||||||||||||||||
| 177 | 20 | ▶ | if( $rst_trees ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 178 | 1 | ▶ | if( ref($rst_trees) =~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 179 | 1 | for ( @$rst_trees ) { | |||||||||||||||||||||||||||||||||||||||||
| 180 | 1 | $self->add_rst_tree($_); | |||||||||||||||||||||||||||||||||||||||||
| 181 | } | ||||||||||||||||||||||||||||||||||||||||||
| 182 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 183 | 0 | $self->warn("Need a valid array ref for -rst_trees option\n"); | |||||||||||||||||||||||||||||||||||||||||
| 184 | } | ||||||||||||||||||||||||||||||||||||||||||
| 185 | } | ||||||||||||||||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||||||||||||||||
| 187 | 20 | return $self; | |||||||||||||||||||||||||||||||||||||||||
| 188 | } | ||||||||||||||||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||||||
| 191 | sub next_tree{ | ||||||||||||||||||||||||||||||||||||||||||
| 192 | 0 | ▶ | my ($self,@args) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
next_tree: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 193 | 0 | ▶ | return $self->{'_trees'}->[$self->{'_treeiterator'}++] || undef; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$self->{'_trees'}[$self->{'_treeiterator'}++] || undef
MC/DC0%0/1
$self->{'_trees'}[$self->{'_treeiterator'}++] || undef
$self->{'_trees'}[$self->{'_treeiterator'}++]
Truth table0%0/2
A
A= $self->{'_trees'}[$self->{'_treeiterator'}++]
| |||||||||||||||||||||||||||||||||||||||||||
| 194 | } | ||||||||||||||||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||||||||||||||||
| 196 | |||||||||||||||||||||||||||||||||||||||||||
| 197 | sub get_trees{ | ||||||||||||||||||||||||||||||||||||||||||
| 198 | 2 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_trees: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 199 | 2 | ▶ | return @{$self->{'_trees'} || []}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 200 | } | ||||||||||||||||||||||||||||||||||||||||||
| 201 | |||||||||||||||||||||||||||||||||||||||||||
| 202 | |||||||||||||||||||||||||||||||||||||||||||
| 203 | sub rewind_tree_iterator { | ||||||||||||||||||||||||||||||||||||||||||
| 204 | 0 | ▶ | shift->{'_treeiterator'} = 0; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
rewind_tree_iterator: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 205 | } | ||||||||||||||||||||||||||||||||||||||||||
| 206 | |||||||||||||||||||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||||||||||||||||
| 208 | sub add_tree{ | ||||||||||||||||||||||||||||||||||||||||||
| 209 | 3 | ▶ | my ($self,$tree) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_tree: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 210 | 3 | ▶ | if( $tree && ref($tree) && $tree->isa('Bio::Tree::TreeI') ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$tree and ref $tree and $tree->isa("Bio::Tree::TreeI")
$tree and ref $tree
MC/DC0%0/3
$tree and ref $tree and $tree->isa("Bio::Tree::TreeI")
$tree
ref $tree
$tree->isa("Bio::Tree::TreeI")
Truth table25%1/4
A and B and C
A= $treeB= ref $treeC= $tree->isa("Bio::Tree::TreeI")
| |||||||||||||||||||||||||||||||||||||||||||
| 211 | 3 | push @{$self->{'_trees'}},$tree; | |||||||||||||||||||||||||||||||||||||||||
| 212 | } | ||||||||||||||||||||||||||||||||||||||||||
| 213 | 3 | return scalar @{$self->{'_trees'}}; | |||||||||||||||||||||||||||||||||||||||||
| 214 | } | ||||||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||||||
| 216 | |||||||||||||||||||||||||||||||||||||||||||
| 217 | |||||||||||||||||||||||||||||||||||||||||||
| 218 | sub set_MLmatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 219 | 10 | ▶ | my ($self,$mat) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_MLmatrix: called CC=3 SCAR=12.7
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 220 | 10 | ▶ | return unless ( defined $mat ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 221 | 10 | ▶ | if( ref($mat) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 222 | 0 | $self->warn("Did not provide a valid 2D Array reference for set_MLmatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 223 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 224 | } | ||||||||||||||||||||||||||||||||||||||||||
| 225 | 10 | $self->{'_mlmatrix'} = $mat; | |||||||||||||||||||||||||||||||||||||||||
| 226 | } | ||||||||||||||||||||||||||||||||||||||||||
| 227 | |||||||||||||||||||||||||||||||||||||||||||
| 228 | |||||||||||||||||||||||||||||||||||||||||||
| 229 | sub get_MLmatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 230 | 8 | ▶ | my ($self,@args) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_MLmatrix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 231 | 8 | return $self->{'_mlmatrix'}; | |||||||||||||||||||||||||||||||||||||||||
| 232 | } | ||||||||||||||||||||||||||||||||||||||||||
| 233 | |||||||||||||||||||||||||||||||||||||||||||
| 234 | |||||||||||||||||||||||||||||||||||||||||||
| 235 | sub set_NGmatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 236 | 16 | ▶ | my ($self,$mat) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_NGmatrix: called CC=3 SCAR=12.7
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 237 | 16 | ▶ | return unless ( defined $mat ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 238 | 16 | ▶ | if( ref($mat) !~ /ARRAY/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 239 | 0 | $self->warn("Did not provide a valid 2D Array reference for set_NGmatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 240 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 241 | } | ||||||||||||||||||||||||||||||||||||||||||
| 242 | 16 | $self->{'_ngmatrix'} = $mat; | |||||||||||||||||||||||||||||||||||||||||
| 243 | } | ||||||||||||||||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||||||
| 246 | sub get_NGmatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 247 | 9 | ▶ | my ($self,@args) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_NGmatrix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 248 | 9 | return $self->{'_ngmatrix'}; | |||||||||||||||||||||||||||||||||||||||||
| 249 | } | ||||||||||||||||||||||||||||||||||||||||||
| 250 | |||||||||||||||||||||||||||||||||||||||||||
| 251 | |||||||||||||||||||||||||||||||||||||||||||
| 252 | |||||||||||||||||||||||||||||||||||||||||||
| 253 | sub add_seq{ | ||||||||||||||||||||||||||||||||||||||||||
| 254 | 80 | ▶ | my ($self,$seq) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_seq: called CC=3 SCAR=12.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 255 | 80 | ▶ | if( $seq ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 256 | 80 | ▶ | unless( $seq->isa("Bio::PrimarySeqI") ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 257 | 0 | $self->warn("Must provide a valid Bio::PrimarySeqI to add_seq"); | |||||||||||||||||||||||||||||||||||||||||
| 258 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 259 | } | ||||||||||||||||||||||||||||||||||||||||||
| 260 | 80 | push @{$self->{'_seqs'}},$seq; | |||||||||||||||||||||||||||||||||||||||||
| 261 | } | ||||||||||||||||||||||||||||||||||||||||||
| 262 | |||||||||||||||||||||||||||||||||||||||||||
| 263 | } | ||||||||||||||||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||||||||||||||||
| 265 | |||||||||||||||||||||||||||||||||||||||||||
| 266 | sub reset_seqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 267 | 20 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
reset_seqs: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 268 | 20 | $self->{'_seqs'} = []; | |||||||||||||||||||||||||||||||||||||||||
| 269 | } | ||||||||||||||||||||||||||||||||||||||||||
| 270 | |||||||||||||||||||||||||||||||||||||||||||
| 271 | |||||||||||||||||||||||||||||||||||||||||||
| 272 | sub get_seqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 273 | 5 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_seqs: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 274 | 5 | return @{$self->{'_seqs'}}; | |||||||||||||||||||||||||||||||||||||||||
| 275 | } | ||||||||||||||||||||||||||||||||||||||||||
| 276 | |||||||||||||||||||||||||||||||||||||||||||
| 277 | |||||||||||||||||||||||||||||||||||||||||||
| 278 | sub set_codon_pos_basefreq { | ||||||||||||||||||||||||||||||||||||||||||
| 279 | 14 | ▶ | my ($self,@codonpos) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_codon_pos_basefreq: called CC=5 SCAR=20.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 280 | 14 | ▶ | if( scalar @codonpos != 3 ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 281 | 0 | $self->warn("invalid array to set_codon_pos_basefreq, must be an array of length 3"); | |||||||||||||||||||||||||||||||||||||||||
| 282 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 283 | } | ||||||||||||||||||||||||||||||||||||||||||
| 284 | 14 | foreach my $pos ( @codonpos ) { | |||||||||||||||||||||||||||||||||||||||||
| 285 | 42 | ▶ | if( ref($pos) !~ /HASH/i || | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref($pos) =~ /HASH/i and exists $pos->{"A"}
MC/DC0%0/2
ref($pos) =~ /HASH/i and exists $pos->{"A"}
ref($pos) =~ /HASH/i
exists $pos->{"A"}
Truth table33%1/3
A and B
A= ref($pos) =~ /HASH/iB= exists $pos->{"A"}
| |||||||||||||||||||||||||||||||||||||||||||
| 286 | ! exists $pos->{'A'} ) { | ||||||||||||||||||||||||||||||||||||||||||
| 287 | 0 | $self->warn("invalid array to set_codon_pos_basefreq, must be an array with hashreferences keyed on DNA bases, C,A,G,T"); | |||||||||||||||||||||||||||||||||||||||||
| 288 | } | ||||||||||||||||||||||||||||||||||||||||||
| 289 | } | ||||||||||||||||||||||||||||||||||||||||||
| 290 | 14 | $self->{'_codonposbasefreq'} = [@codonpos]; | |||||||||||||||||||||||||||||||||||||||||
| 291 | } | ||||||||||||||||||||||||||||||||||||||||||
| 292 | |||||||||||||||||||||||||||||||||||||||||||
| 293 | |||||||||||||||||||||||||||||||||||||||||||
| 294 | sub get_codon_pos_basefreq{ | ||||||||||||||||||||||||||||||||||||||||||
| 295 | 1 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_codon_pos_basefreq: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 296 | 1 | return @{$self->{'_codonposbasefreq'}}; | |||||||||||||||||||||||||||||||||||||||||
| 297 | } | ||||||||||||||||||||||||||||||||||||||||||
| 298 | |||||||||||||||||||||||||||||||||||||||||||
| 299 | |||||||||||||||||||||||||||||||||||||||||||
| 300 | sub version{ | ||||||||||||||||||||||||||||||||||||||||||
| 301 | 24 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
version: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 302 | 24 | ▶ | $self->{'_version'} = shift if @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 303 | 24 | return $self->{'_version'}; | |||||||||||||||||||||||||||||||||||||||||
| 304 | } | ||||||||||||||||||||||||||||||||||||||||||
| 305 | |||||||||||||||||||||||||||||||||||||||||||
| 306 | |||||||||||||||||||||||||||||||||||||||||||
| 307 | sub seqfile{ | ||||||||||||||||||||||||||||||||||||||||||
| 308 | 20 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
seqfile: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 309 | 20 | ▶ | $self->{'_seqfile'} = shift if @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 310 | 20 | return $self->{'_seqfile'}; | |||||||||||||||||||||||||||||||||||||||||
| 311 | } | ||||||||||||||||||||||||||||||||||||||||||
| 312 | |||||||||||||||||||||||||||||||||||||||||||
| 313 | |||||||||||||||||||||||||||||||||||||||||||
| 314 | sub model{ | ||||||||||||||||||||||||||||||||||||||||||
| 315 | 27 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
model: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 316 | |||||||||||||||||||||||||||||||||||||||||||
| 317 | 27 | ▶ | return $self->{'_model'} = shift if @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 318 | 9 | return $self->{'_model'}; | |||||||||||||||||||||||||||||||||||||||||
| 319 | } | ||||||||||||||||||||||||||||||||||||||||||
| 320 | |||||||||||||||||||||||||||||||||||||||||||
| 321 | |||||||||||||||||||||||||||||||||||||||||||
| 322 | |||||||||||||||||||||||||||||||||||||||||||
| 323 | sub patterns{ | ||||||||||||||||||||||||||||||||||||||||||
| 324 | 20 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
patterns: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 325 | 20 | ▶ | return $self->{'_patterns'} = shift if @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 326 | 2 | return $self->{'_patterns'}; | |||||||||||||||||||||||||||||||||||||||||
| 327 | } | ||||||||||||||||||||||||||||||||||||||||||
| 328 | |||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||
| 330 | sub set_AAFreqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 331 | 2 | ▶ | my ($self,$aafreqs) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_AAFreqs: called CC=4 SCAR=14.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 332 | |||||||||||||||||||||||||||||||||||||||||||
| 333 | 2 | ▶ | if( $aafreqs && ref($aafreqs) =~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$aafreqs and ref($aafreqs) =~ /HASH/i
MC/DC0%0/2
$aafreqs and ref($aafreqs) =~ /HASH/i
$aafreqs
ref($aafreqs) =~ /HASH/i
Truth table33%1/3
A and B
A= $aafreqsB= ref($aafreqs) =~ /HASH/i
| |||||||||||||||||||||||||||||||||||||||||||
| 334 | 2 | foreach my $seqname ( keys %{$aafreqs} ) { | |||||||||||||||||||||||||||||||||||||||||
| 335 | 13 | $self->{'_aafreqs'}->{$seqname} = $aafreqs->{$seqname}; | |||||||||||||||||||||||||||||||||||||||||
| 336 | } | ||||||||||||||||||||||||||||||||||||||||||
| 337 | } | ||||||||||||||||||||||||||||||||||||||||||
| 338 | } | ||||||||||||||||||||||||||||||||||||||||||
| 339 | |||||||||||||||||||||||||||||||||||||||||||
| 340 | |||||||||||||||||||||||||||||||||||||||||||
| 341 | sub get_AAFreqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 342 | 6 | ▶ | my ($self,$seqname) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_AAFreqs: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 343 | 6 | ▶ | if( $seqname ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 344 | 5 | ▶ | return $self->{'_aafreqs'}->{$seqname} || {}; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$self->{'_aafreqs'}{$seqname} || {}
MC/DC0%0/1
$self->{'_aafreqs'}{$seqname} || {}
$self->{'_aafreqs'}{$seqname}
Truth table50%1/2
A
A= $self->{'_aafreqs'}{$seqname}
| |||||||||||||||||||||||||||||||||||||||||||
| 345 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 346 | 1 | return $self->{'_aafreqs'}; | |||||||||||||||||||||||||||||||||||||||||
| 347 | } | ||||||||||||||||||||||||||||||||||||||||||
| 348 | } | ||||||||||||||||||||||||||||||||||||||||||
| 349 | |||||||||||||||||||||||||||||||||||||||||||
| 350 | |||||||||||||||||||||||||||||||||||||||||||
| 351 | sub set_NTFreqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 352 | 2 | ▶ | my ($self,$freqs) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_NTFreqs: called CC=4 SCAR=14.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 353 | |||||||||||||||||||||||||||||||||||||||||||
| 354 | 2 | ▶ | if( $freqs && ref($freqs) =~ /HASH/i ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$freqs and ref($freqs) =~ /HASH/i
MC/DC0%0/2
$freqs and ref($freqs) =~ /HASH/i
$freqs
ref($freqs) =~ /HASH/i
Truth table33%1/3
A and B
A= $freqsB= ref($freqs) =~ /HASH/i
| |||||||||||||||||||||||||||||||||||||||||||
| 355 | 2 | foreach my $seqname ( keys %{$freqs} ) { | |||||||||||||||||||||||||||||||||||||||||
| 356 | 8 | $self->{'_ntfreqs'}->{$seqname} = $freqs->{$seqname}; | |||||||||||||||||||||||||||||||||||||||||
| 357 | } | ||||||||||||||||||||||||||||||||||||||||||
| 358 | } | ||||||||||||||||||||||||||||||||||||||||||
| 359 | } | ||||||||||||||||||||||||||||||||||||||||||
| 360 | |||||||||||||||||||||||||||||||||||||||||||
| 361 | |||||||||||||||||||||||||||||||||||||||||||
| 362 | sub get_NTFreqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 363 | 1 | ▶ | my ($self,$seqname) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_NTFreqs: called CC=3 SCAR=14.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 364 | 1 | ▶ | if( $seqname ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 365 | 0 | ▶ | return $self->{'_ntfreqs'}->{$seqname} || {}; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$self->{'_ntfreqs'}{$seqname} || {}
MC/DC0%0/1
$self->{'_ntfreqs'}{$seqname} || {}
$self->{'_ntfreqs'}{$seqname}
Truth table0%0/2
A
A= $self->{'_ntfreqs'}{$seqname}
| |||||||||||||||||||||||||||||||||||||||||||
| 366 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 367 | 1 | return $self->{'_ntfreqs'}; | |||||||||||||||||||||||||||||||||||||||||
| 368 | } | ||||||||||||||||||||||||||||||||||||||||||
| 369 | } | ||||||||||||||||||||||||||||||||||||||||||
| 370 | |||||||||||||||||||||||||||||||||||||||||||
| 371 | |||||||||||||||||||||||||||||||||||||||||||
| 372 | sub add_stat{ | ||||||||||||||||||||||||||||||||||||||||||
| 373 | 11 | ▶ | my ($self,$stat,$value) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_stat: called CC=3 SCAR=12.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 374 | 11 | ▶ | return if( ! defined $stat || !defined $value ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $stat and defined $value
MC/DC0%0/2
defined $stat and defined $value
defined $stat
defined $value
Truth table33%1/3
A and B
A= defined $statB= defined $value
| |||||||||||||||||||||||||||||||||||||||||||
| 375 | 11 | $self->{'_stats'}->{$stat} = $value; | |||||||||||||||||||||||||||||||||||||||||
| 376 | 11 | return; | |||||||||||||||||||||||||||||||||||||||||
| 377 | } | ||||||||||||||||||||||||||||||||||||||||||
| 378 | |||||||||||||||||||||||||||||||||||||||||||
| 379 | |||||||||||||||||||||||||||||||||||||||||||
| 380 | sub get_stat{ | ||||||||||||||||||||||||||||||||||||||||||
| 381 | 8 | ▶ | my ($self,$statname) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_stat: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 382 | 8 | return $self->{'_stats'}->{$statname}; | |||||||||||||||||||||||||||||||||||||||||
| 383 | } | ||||||||||||||||||||||||||||||||||||||||||
| 384 | |||||||||||||||||||||||||||||||||||||||||||
| 385 | |||||||||||||||||||||||||||||||||||||||||||
| 386 | sub get_stat_names{ | ||||||||||||||||||||||||||||||||||||||||||
| 387 | 1 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_stat_names: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 388 | 1 | ▶ | return keys %{$self->{'_stats'} || {}}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 389 | } | ||||||||||||||||||||||||||||||||||||||||||
| 390 | |||||||||||||||||||||||||||||||||||||||||||
| 391 | |||||||||||||||||||||||||||||||||||||||||||
| 392 | sub get_AADistMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 393 | 2 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_AADistMatrix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 394 | 2 | return $self->{'_AADistMatix'}; | |||||||||||||||||||||||||||||||||||||||||
| 395 | } | ||||||||||||||||||||||||||||||||||||||||||
| 396 | |||||||||||||||||||||||||||||||||||||||||||
| 397 | |||||||||||||||||||||||||||||||||||||||||||
| 398 | sub set_AADistMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 399 | 2 | ▶ | my ($self,$d) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_AADistMatrix: called CC=4 SCAR=17.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 400 | 2 | ▶ | if( ! $d || | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d and ref $d
MC/DC0%0/3
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d
ref $d
$d->isa("Bio::Matrix::PhylipDist")
Truth table25%1/4
A and B and C
A= $dB= ref $dC= $d->isa("Bio::Matrix::PhylipDist")
| |||||||||||||||||||||||||||||||||||||||||||
| 401 | ! ref($d) || | ||||||||||||||||||||||||||||||||||||||||||
| 402 | ! $d->isa('Bio::Matrix::PhylipDist') ) { | ||||||||||||||||||||||||||||||||||||||||||
| 403 | 0 | $self->warn("Must provide a valid Bio::Matrix::MatrixI for set_AADistMatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 404 | } | ||||||||||||||||||||||||||||||||||||||||||
| 405 | 2 | $self->{'_AADistMatix'} = $d; | |||||||||||||||||||||||||||||||||||||||||
| 406 | 2 | return; | |||||||||||||||||||||||||||||||||||||||||
| 407 | } | ||||||||||||||||||||||||||||||||||||||||||
| 408 | |||||||||||||||||||||||||||||||||||||||||||
| 409 | |||||||||||||||||||||||||||||||||||||||||||
| 410 | sub get_AAMLDistMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 411 | 1 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_AAMLDistMatrix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 412 | 1 | return $self->{'_AAMLDistMatix'}; | |||||||||||||||||||||||||||||||||||||||||
| 413 | } | ||||||||||||||||||||||||||||||||||||||||||
| 414 | |||||||||||||||||||||||||||||||||||||||||||
| 415 | |||||||||||||||||||||||||||||||||||||||||||
| 416 | sub set_AAMLDistMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 417 | 1 | ▶ | my ($self,$d) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_AAMLDistMatrix: called CC=4 SCAR=17.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 418 | 1 | ▶ | if( ! $d || | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d and ref $d
MC/DC0%0/3
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d
ref $d
$d->isa("Bio::Matrix::PhylipDist")
Truth table25%1/4
A and B and C
A= $dB= ref $dC= $d->isa("Bio::Matrix::PhylipDist")
| |||||||||||||||||||||||||||||||||||||||||||
| 419 | ! ref($d) || | ||||||||||||||||||||||||||||||||||||||||||
| 420 | ! $d->isa('Bio::Matrix::PhylipDist') ) { | ||||||||||||||||||||||||||||||||||||||||||
| 421 | 0 | $self->warn("Must provide a valid Bio::Matrix::MatrixI for set_AAMLDistMatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 422 | } | ||||||||||||||||||||||||||||||||||||||||||
| 423 | 1 | $self->{'_AAMLDistMatix'} = $d; | |||||||||||||||||||||||||||||||||||||||||
| 424 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||
| 425 | } | ||||||||||||||||||||||||||||||||||||||||||
| 426 | |||||||||||||||||||||||||||||||||||||||||||
| 427 | |||||||||||||||||||||||||||||||||||||||||||
| 428 | sub add_NSSite_result{ | ||||||||||||||||||||||||||||||||||||||||||
| 429 | 9 | ▶ | my ($self,$model) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_NSSite_result: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 430 | 9 | ▶ | if( defined $model ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 431 | 9 | push @{$self->{'_nssiteresult'}}, $model; | |||||||||||||||||||||||||||||||||||||||||
| 432 | } | ||||||||||||||||||||||||||||||||||||||||||
| 433 | 9 | return scalar @{$self->{'_nssiteresult'}}; | |||||||||||||||||||||||||||||||||||||||||
| 434 | } | ||||||||||||||||||||||||||||||||||||||||||
| 435 | |||||||||||||||||||||||||||||||||||||||||||
| 436 | |||||||||||||||||||||||||||||||||||||||||||
| 437 | sub get_NSSite_results{ | ||||||||||||||||||||||||||||||||||||||||||
| 438 | 5 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_NSSite_results: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 439 | 5 | ▶ | return @{$self->{'_nssiteresult'} || []}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 440 | } | ||||||||||||||||||||||||||||||||||||||||||
| 441 | |||||||||||||||||||||||||||||||||||||||||||
| 442 | |||||||||||||||||||||||||||||||||||||||||||
| 443 | sub set_CodonFreqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 444 | 8 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_CodonFreqs: called CC=2 SCAR=8.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 445 | |||||||||||||||||||||||||||||||||||||||||||
| 446 | 8 | ▶ | return $self->{'_codonfreqs'} = shift if @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 447 | 0 | return $self->{'_codonfreqs'}; | |||||||||||||||||||||||||||||||||||||||||
| 448 | } | ||||||||||||||||||||||||||||||||||||||||||
| 449 | |||||||||||||||||||||||||||||||||||||||||||
| 450 | |||||||||||||||||||||||||||||||||||||||||||
| 451 | sub get_CodonFreqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 452 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_CodonFreqs: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 453 | 0 | ▶ | return @{$self->{'_codonfreqs'} || []}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 454 | } | ||||||||||||||||||||||||||||||||||||||||||
| 455 | |||||||||||||||||||||||||||||||||||||||||||
| 456 | |||||||||||||||||||||||||||||||||||||||||||
| 457 | |||||||||||||||||||||||||||||||||||||||||||
| 458 | sub get_KappaMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 459 | 1 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_KappaMatrix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 460 | 1 | return $self->{'_KappaMatix'}; | |||||||||||||||||||||||||||||||||||||||||
| 461 | } | ||||||||||||||||||||||||||||||||||||||||||
| 462 | |||||||||||||||||||||||||||||||||||||||||||
| 463 | |||||||||||||||||||||||||||||||||||||||||||
| 464 | sub set_KappaMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 465 | 2 | ▶ | my ($self,$d) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_KappaMatrix: called CC=4 SCAR=17.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 466 | 2 | ▶ | if( ! $d || | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d and ref $d
MC/DC0%0/3
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d
ref $d
$d->isa("Bio::Matrix::PhylipDist")
Truth table25%1/4
A and B and C
A= $dB= ref $dC= $d->isa("Bio::Matrix::PhylipDist")
| |||||||||||||||||||||||||||||||||||||||||||
| 467 | ! ref($d) || | ||||||||||||||||||||||||||||||||||||||||||
| 468 | ! $d->isa('Bio::Matrix::PhylipDist') ) { | ||||||||||||||||||||||||||||||||||||||||||
| 469 | 0 | $self->warn("Must provide a valid Bio::Matrix::MatrixI for set_NTDistMatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 470 | } | ||||||||||||||||||||||||||||||||||||||||||
| 471 | 2 | $self->{'_KappaMatix'} = $d; | |||||||||||||||||||||||||||||||||||||||||
| 472 | 2 | return; | |||||||||||||||||||||||||||||||||||||||||
| 473 | } | ||||||||||||||||||||||||||||||||||||||||||
| 474 | |||||||||||||||||||||||||||||||||||||||||||
| 475 | |||||||||||||||||||||||||||||||||||||||||||
| 476 | |||||||||||||||||||||||||||||||||||||||||||
| 477 | sub get_AlphaMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 478 | 1 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_AlphaMatrix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 479 | 1 | return $self->{'_AlphaMatix'}; | |||||||||||||||||||||||||||||||||||||||||
| 480 | } | ||||||||||||||||||||||||||||||||||||||||||
| 481 | |||||||||||||||||||||||||||||||||||||||||||
| 482 | |||||||||||||||||||||||||||||||||||||||||||
| 483 | sub set_AlphaMatrix{ | ||||||||||||||||||||||||||||||||||||||||||
| 484 | 2 | ▶ | my ($self,$d) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_AlphaMatrix: called CC=4 SCAR=17.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 485 | 2 | ▶ | if( ! $d || | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d and ref $d
MC/DC0%0/3
$d and ref $d and $d->isa("Bio::Matrix::PhylipDist")
$d
ref $d
$d->isa("Bio::Matrix::PhylipDist")
Truth table25%1/4
A and B and C
A= $dB= ref $dC= $d->isa("Bio::Matrix::PhylipDist")
| |||||||||||||||||||||||||||||||||||||||||||
| 486 | ! ref($d) || | ||||||||||||||||||||||||||||||||||||||||||
| 487 | ! $d->isa('Bio::Matrix::PhylipDist') ) { | ||||||||||||||||||||||||||||||||||||||||||
| 488 | 0 | $self->warn("Must provide a valid Bio::Matrix::MatrixI for set_NTDistMatrix"); | |||||||||||||||||||||||||||||||||||||||||
| 489 | } | ||||||||||||||||||||||||||||||||||||||||||
| 490 | 2 | $self->{'_AlphaMatix'} = $d; | |||||||||||||||||||||||||||||||||||||||||
| 491 | 2 | return; | |||||||||||||||||||||||||||||||||||||||||
| 492 | } | ||||||||||||||||||||||||||||||||||||||||||
| 493 | |||||||||||||||||||||||||||||||||||||||||||
| 494 | |||||||||||||||||||||||||||||||||||||||||||
| 495 | sub set_input_parameter{ | ||||||||||||||||||||||||||||||||||||||||||
| 496 | 10 | ▶ | my ($self,$p,$v) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_input_parameter: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 497 | 10 | ▶ | return unless defined $p; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 498 | 10 | $self->{'_input_parameters'}->{$p} = $v; | |||||||||||||||||||||||||||||||||||||||||
| 499 | } | ||||||||||||||||||||||||||||||||||||||||||
| 500 | |||||||||||||||||||||||||||||||||||||||||||
| 501 | |||||||||||||||||||||||||||||||||||||||||||
| 502 | sub get_input_parameters{ | ||||||||||||||||||||||||||||||||||||||||||
| 503 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_input_parameters: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 504 | 0 | ▶ | return %{$self->{'_input_parameters'} || {}}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 505 | } | ||||||||||||||||||||||||||||||||||||||||||
| 506 | |||||||||||||||||||||||||||||||||||||||||||
| 507 | |||||||||||||||||||||||||||||||||||||||||||
| 508 | sub reset_input_parameters{ | ||||||||||||||||||||||||||||||||||||||||||
| 509 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
reset_input_parameters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 510 | 0 | $self->{'_input_parameters'} = {}; | |||||||||||||||||||||||||||||||||||||||||
| 511 | } | ||||||||||||||||||||||||||||||||||||||||||
| 512 | |||||||||||||||||||||||||||||||||||||||||||
| 513 | |||||||||||||||||||||||||||||||||||||||||||
| 514 | sub add_rst_seq{ | ||||||||||||||||||||||||||||||||||||||||||
| 515 | 20 | ▶ | my ($self,$seq) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_rst_seq: called CC=3 SCAR=12.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 516 | 20 | ▶ | if( $seq ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 517 | 20 | ▶ | unless( $seq->isa("Bio::PrimarySeqI") ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 518 | 0 | $self->warn("Must provide a valid Bio::PrimarySeqI to add_rst_seq"); | |||||||||||||||||||||||||||||||||||||||||
| 519 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 520 | } | ||||||||||||||||||||||||||||||||||||||||||
| 521 | 20 | push @{$self->{'_rstseqs'}},$seq; | |||||||||||||||||||||||||||||||||||||||||
| 522 | } | ||||||||||||||||||||||||||||||||||||||||||
| 523 | |||||||||||||||||||||||||||||||||||||||||||
| 524 | } | ||||||||||||||||||||||||||||||||||||||||||
| 525 | |||||||||||||||||||||||||||||||||||||||||||
| 526 | |||||||||||||||||||||||||||||||||||||||||||
| 527 | sub reset_rst_seqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 528 | 20 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
reset_rst_seqs: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 529 | 20 | $self->{'_rstseqs'} = []; | |||||||||||||||||||||||||||||||||||||||||
| 530 | } | ||||||||||||||||||||||||||||||||||||||||||
| 531 | |||||||||||||||||||||||||||||||||||||||||||
| 532 | |||||||||||||||||||||||||||||||||||||||||||
| 533 | sub get_rst_seqs{ | ||||||||||||||||||||||||||||||||||||||||||
| 534 | 1 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_rst_seqs: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 535 | 1 | ▶ | return @{$self->{'_rstseqs'} || []}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 536 | } | ||||||||||||||||||||||||||||||||||||||||||
| 537 | |||||||||||||||||||||||||||||||||||||||||||
| 538 | |||||||||||||||||||||||||||||||||||||||||||
| 539 | |||||||||||||||||||||||||||||||||||||||||||
| 540 | sub add_rst_tree{ | ||||||||||||||||||||||||||||||||||||||||||
| 541 | 1 | ▶ | my ($self,$tree) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_rst_tree: called CC=3 SCAR=12.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 542 | 1 | ▶ | if( $tree ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 543 | 1 | ▶ | unless( $tree->isa("Bio::Tree::TreeI") ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 544 | 0 | $self->warn("Must provide a valid Bio::Tree::TreeI to add_rst_tree not $tree"); | |||||||||||||||||||||||||||||||||||||||||
| 545 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 546 | } | ||||||||||||||||||||||||||||||||||||||||||
| 547 | 1 | push @{$self->{'_rsttrees'}},$tree; | |||||||||||||||||||||||||||||||||||||||||
| 548 | } | ||||||||||||||||||||||||||||||||||||||||||
| 549 | } | ||||||||||||||||||||||||||||||||||||||||||
| 550 | |||||||||||||||||||||||||||||||||||||||||||
| 551 | |||||||||||||||||||||||||||||||||||||||||||
| 552 | sub reset_rst_trees{ | ||||||||||||||||||||||||||||||||||||||||||
| 553 | 20 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
reset_rst_trees: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 554 | 20 | $self->{'_rsttrees'} = []; | |||||||||||||||||||||||||||||||||||||||||
| 555 | } | ||||||||||||||||||||||||||||||||||||||||||
| 556 | |||||||||||||||||||||||||||||||||||||||||||
| 557 | |||||||||||||||||||||||||||||||||||||||||||
| 558 | sub get_rst_trees{ | ||||||||||||||||||||||||||||||||||||||||||
| 559 | 1 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_rst_trees: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 560 | 1 | ▶ | return @{$self->{'_rsttrees'} || []}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 561 | } | ||||||||||||||||||||||||||||||||||||||||||
| 562 | |||||||||||||||||||||||||||||||||||||||||||
| 563 | |||||||||||||||||||||||||||||||||||||||||||
| 564 | sub set_rst_persite{ | ||||||||||||||||||||||||||||||||||||||||||
| 565 | 1 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_rst_persite: called CC=2 SCAR=8.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 566 | |||||||||||||||||||||||||||||||||||||||||||
| 567 | 1 | ▶ | return $self->{'_rstpersite'} = shift if @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 568 | 0 | return $self->{'_rstpersite'}; | |||||||||||||||||||||||||||||||||||||||||
| 569 | } | ||||||||||||||||||||||||||||||||||||||||||
| 570 | |||||||||||||||||||||||||||||||||||||||||||
| 571 | |||||||||||||||||||||||||||||||||||||||||||
| 572 | sub get_rst_persite{ | ||||||||||||||||||||||||||||||||||||||||||
| 573 | 1 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_rst_persite: called CC=2 SCAR=7.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 574 | 1 | ▶ | return $self->{'_rstpersite'} || []; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$self->{'_rstpersite'} || []
MC/DC0%0/1
$self->{'_rstpersite'} || []
$self->{'_rstpersite'}
Truth table50%1/2
A
A= $self->{'_rstpersite'}
| |||||||||||||||||||||||||||||||||||||||||||
| 575 | } | ||||||||||||||||||||||||||||||||||||||||||
| 576 | |||||||||||||||||||||||||||||||||||||||||||
| 577 | |||||||||||||||||||||||||||||||||||||||||||
| 578 | |||||||||||||||||||||||||||||||||||||||||||
| 579 | 8 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 580 | |||||||||||||||||||||||||||||||||||||||||||
| 581 | __END__ | ||||||||||||||||||||||||||||||||||||||||||