Branch Coverage

blib/lib/Bio/Tools/Run/Phylo/PAML/Codeml.pm
Criterion Covered Total %
branch 19 94 20.2


line true false branch
239 0 1 $^O =~ /mswin/i ? :
240 0 1 if (defined $ENV{'PAMLDIR'})
241 0 0 $^O =~ /mswin/i ? :
373 0 3 if $ENV{'PAMLDIR'}
406 0 1 if defined $aln
407 0 1 if defined $tree
408 0 1 if defined $st
409 0 1 if defined $exe
412 1 0 if (defined $params)
413 0 1 if (not ref($params) =~ /HASH/i) { }
437 0 0 unless ($self->save_tempfiles)
441 0 0 unless $tree
442 0 0 unless $aln
443 0 0 unless ($aln)
449 0 0 if (not ref $aln and -e $aln) { }
452 0 0 $self->save_tempfiles ? :
455 0 0 $Bio::Tools::Run::Phylo::PAML::Codeml::MINNAMELEN > $aln->maxdisplayname_length ? :
470 0 0 unless open CODEML, ">$codeml_ctl"
475 0 0 if ($tree)
477 0 0 if (not ref $tree and -e $tree) { }
480 0 0 $self->save_tempfiles ? :
495 0 0 if $param eq 'outfile'
534 0 0 unless $codemlexe and -e $codemlexe and -x _
536 0 0 if ($self->{'_branchLengths'}) { }
537 0 0 unless open $run, "echo $self->{'_branchLengths'} | $codemlexe |"
539 0 0 unless open $run, "$codemlexe |"
544 0 0 if (grep {/\berr(or)?: /io;} @output or not $exit_status)
553 0 0 if ($@)
574 0 0 if (defined $value)
597 0 0 if (defined $aln)
598 0 0 if (-e $aln) { }
0 0 elsif (not ref $aln && $aln->isa('Bio::Align::AlignI')) { }
629 0 0 if (defined $tree)
630 0 0 unless (ref $tree and $tree->isa('Bio::Tree::TreeI'))
634 0 0 if (defined $params{'_branchLengths'})
636 0 0 unless ($ubl =~ /^(0|1|2)$/)
681 8 0 unless (defined $self->{'no_param_checks'} and $self->{'no_param_checks'} == 1)
682 0 8 unless (defined $Bio::Tools::Run::Phylo::PAML::Codeml::VALIDVALUES{$param})
686 5 3 if (ref($Bio::Tools::Run::Phylo::PAML::Codeml::VALIDVALUES{$param}) =~ /ARRAY/i and scalar @{$Bio::Tools::Run::Phylo::PAML::Codeml::VALIDVALUES{$param};} > 0)
689 0 5 unless (grep {$value eq $_;} @{$Bio::Tools::Run::Phylo::PAML::Codeml::VALIDVALUES{$param};})
714 1 0 unless defined $keepold
718 0 28 if defined $self->{'_codemlparams'}{$param} and $keepold
719 21 7 if (ref($val) =~ /ARRAY/i) { }
746 0 0 if (defined $value)
778 0 0 if (@_)
781 0 0 unless (defined $self->{'_codemlparams'}{'outfile'})
822 1 0 unless ($self->save_tempfiles)