line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::Phylo::Unparsers::Abstract; |
2
|
9
|
|
|
9
|
|
57
|
use strict; |
|
9
|
|
|
|
|
43
|
|
|
9
|
|
|
|
|
273
|
|
3
|
9
|
|
|
9
|
|
46
|
use base 'Bio::Phylo::IO'; |
|
9
|
|
|
|
|
12
|
|
|
9
|
|
|
|
|
909
|
|
4
|
9
|
|
|
9
|
|
54
|
use Bio::Phylo::Util::Logger; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
1855
|
|
5
|
|
|
|
|
|
|
my $logger = Bio::Phylo::Util::Logger->new; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Bio::Phylo::Unparsers::Abstract - Superclass for unparsers used by Bio::Phylo::IO |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 DESCRIPTION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
This package is subclassed by all other packages within Bio::Phylo::Unparsers::.*. |
14
|
|
|
|
|
|
|
There is no direct usage. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
|
0
|
sub _logger { $logger } |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _new { |
21
|
37
|
|
|
37
|
|
75
|
my $class = shift; |
22
|
37
|
|
|
|
|
75
|
my $self = {}; |
23
|
37
|
50
|
|
|
|
112
|
if (@_) { |
24
|
37
|
|
|
|
|
121
|
my %opts = @_; |
25
|
37
|
|
|
|
|
113
|
for my $key ( keys %opts ) { |
26
|
97
|
|
|
|
|
176
|
my $localkey = uc $key; |
27
|
97
|
|
|
|
|
228
|
$localkey =~ s/-//; |
28
|
97
|
100
|
|
|
|
218
|
unless ( ref $opts{$key} ) { |
29
|
55
|
|
|
|
|
191
|
$self->{$localkey} = uc $opts{$key}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
else { |
32
|
42
|
|
|
|
|
128
|
$self->{$localkey} = $opts{$key}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
37
|
|
|
|
|
85
|
bless $self, $class; |
37
|
37
|
|
|
|
|
84
|
return $self; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
# podinherit_insert_token |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SEE ALSO |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
There is a mailing list at L<https://groups.google.com/forum/#!forum/bio-phylo> |
45
|
|
|
|
|
|
|
for any user or developer questions and discussions. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=over |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item L<Bio::Phylo::IO> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The parsers are called by the L<Bio::Phylo::IO> object. |
52
|
|
|
|
|
|
|
Look there for examples. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item L<Bio::Phylo::Manual> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Also see the manual: L<Bio::Phylo::Manual> and L<http://rutgervos.blogspot.com>. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=back |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 CITATION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
If you use Bio::Phylo in published research, please cite it: |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
B<Rutger A Vos>, B<Jason Caravas>, B<Klaas Hartmann>, B<Mark A Jensen> |
65
|
|
|
|
|
|
|
and B<Chase Miller>, 2011. Bio::Phylo - phyloinformatic analysis using Perl. |
66
|
|
|
|
|
|
|
I<BMC Bioinformatics> B<12>:63. |
67
|
|
|
|
|
|
|
L<http://dx.doi.org/10.1186/1471-2105-12-63> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
1; |