Tools/Phylo/PAML/Codeml.pm

filter: Statementstmt 60.0% 27 / 45 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 8 / 12 Podpod 100% 3 / 3 totaltotal 55.8% 38 / 68 SCAR 20.7
CC
5
Cov
51%
_parse_mlc
30.0
new
2.0
get_trees
2.0
CRAP 8.0
« Tools/Phylo/PAML/ModelResult.pm ↑ Summary
1 package Bio::Tools::Phylo::PAML::Codeml;
2 1 $Bio::Tools::Phylo::PAML::Codeml::VERSION = '1.7.2';
3 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Bio::Root::Root;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Bio::Root::IO;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Bio::TreeIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use IO::String;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 @ISA = qw(Bio::Root::Root Bio::Root::IO );
15  
16 # ABSTRACT: Parses output from the PAML program codeml
17 # AUTHOR: Jason Stajich <jason@bioperl.org>
18 # AUTHOR: Aaron Mackey <amackey@virginia.edu>
19 # OWNER: Jason Stajich <jason@bioperl.org>
20 # OWNER: Aaron Mackey <amackey@virginia.edu>
21 # LICENSE: Perl_5
22  
23  
24  
25 sub new {
26 0 ▶ my($class,@args) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 my $self = $class->SUPER::new(@args);
29 0 $self->_initialize_io(@args);
30 0 $self->_parse_mlc();
31 0 return $self;
32 }
33  
34  
35 sub get_trees{
36 0 ▶ my ($self) = @_;
Subroutine get_trees: not called CC=1 SCAR=6.9
Pod documented
37  
38  
39 }
40  
41  
42 sub get_statistics {
43 0 ▶ my ($self) = @_;
Subroutine get_statistics: not called CC=1 SCAR=6.9
Pod documented
44  
45  
46 }
47  
48  
49 # parse the mlc file
50  
51 sub _parse_mlc {
52 0 ▶ my ($self) = @_;
Subroutine _parse_mlc: not called CC=5 SCAR=34.0
53 0 my %data;
54 0 ▶ while( defined( $_ = $self->_readline) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = $self->_readline)) 0 0 0
55 0 print;
56 # Aaron this is where the parsing should begin
57  
58 # I'll do the Tree objects if you like -
59 # I'd do it by building an IO::String for the
60 # the tree data
61 # or does it make more sense to parse this out of a collection of
62 # files?
63 0 ▶ if( /^TREE/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (/^TREE/) 0 0 0
64 # ...
65 0 ▶ while( defined($_ = $self->_readline) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = $self->_readline)) 0 0 0
66 0 ▶ if( /^\(/) {
Branch: 1 branch
BranchTrueFalseTotal
if (/^\(/) 0 0 0
67 0 my $treestr = IO::String->new($_);
68 0 my $treeio = Bio::TreeIO->new(-fh => $treestr,
69 -format => 'newick');
70 # this is very tenative here!!
71 0 push @{$self->{'_trees'}}, $treeio->next_tree;
72 }
73 }
74 }
75 }
76 }
77  
78 1 1;
79  
80 __END__
« Tools/Phylo/PAML/ModelResult.pm ↑ Summary