Branch Coverage

blib/lib/Bio/CUA/CUB/Calculator.pm
Criterion Covered Total %
branch 37 114 32.4


line true false branch
142 0 3 if ($tag =~ /^optimal/o) { }
1 2 elsif ($tag =~ /^cai/o) { }
1 1 elsif ($tag =~ /^tai/o) { }
0 1 elsif ($tag =~ /^base/o) { }
146 0 0 ref $val eq 'HASH' ? :
151 0 1 ref $val eq 'HASH' ? :
157 0 1 ref $val eq 'HASH' ? :
162 0 0 if (ref $val eq 'ARRAY' or $val =~ /^seq/) { }
239 13 13 if ($type =~ /cai/i) { }
13 0 elsif ($type =~ /tai/i) { }
251 0 26 unless ($xaiHash)
258 0 26 unless my $codonList = $self->get_codon_list($seq)
267 26 1560 unless $$codonList{$codon}
269 26 1534 if $nonDegCodons{$codon} and $type =~ /cai/i
270 13 1521 unless (exists $$xaiHash{$codon})
272 0 0 $self->no_atg ? :
0 0 if $self->debug and $self->no_atg ? $codon ne 'ATG' : 1
282 0 26 unless $xai
305 0 0 unless my $optimalCodons = $$self{'_optimal_codons'}
308 0 0 unless my $codonList = $self->get_codon_list($seq)
318 0 0 if not $withNonDeg and $nonDegCodons{$codon}
319 0 0 if $$optimalCodons{$codon}
478 0 26 unless defined $minTotal
482 0 26 unless my $codonList = $self->get_codon_list($seq)
483 26 0 ref $seq && $seq->can('id') ? :
488 0 26 if ($correctBaseComp)
490 0 0 unless (defined $baseComposition)
493 0 0 unless ($defaultBaseComp)
499 0 0 if ($defaultBaseComp eq 'seq') { }
0 0 elsif ($defaultBaseComp eq 'seq3') { }
517 0 0 if $baseComposition
519 0 0 unless $expectedCodonFreq
534 26 468 if ($redundancy == 1)
545 26 1508 unless exists $$codonList{$_}
551 4 464 if $AAcnt < $minTotal or $AAcnt < 2
554 0 464 if ($correctBaseComp) { }
581 22 1504 unless $codonCnt
590 130 0 if ($numAAInClass > 0)
596 130 0 if $Fsum > 0
609 130 0 if (exists $FavgByClass{$redundancy})
611 0 130 unless $FavgByClass{$redundancy}
618 0 0 $F_EstimateMethod eq 'mean' ? :
621 0 0 unless ($estimatedFavg)
639 0 0 if $redundancy == 1
641 0 0 if ($equalRatio) { }
647 0 0 if $r < 2
652 0 0 if ($cnt > 0) { }
663 0 0 if ($redundancy == 3) { }
705 0 0 if (ref $seq eq 'HASH') { }
713 0 0 if ($pos) { }
715 0 0 unless $pos > 0 and $pos < 4
717 0 0 if ($codonList) { }
740 0 0 if ($codonList) { }
761 0 0 wantarray ? :
816 0 0 unless ($baseComp and ref $baseComp eq 'ARRAY')
828 0 0 if $$baseComp[$_] == 0
834 0 0 $compSum > 2 ? :