File Coverage

blib/lib/Bio/Phylo/Unparsers/Abstract.pm
Criterion Covered Total %
statement 24 25 96.0
branch 3 4 75.0
condition n/a
subroutine 5 6 83.3
pod n/a
total 32 35 91.4


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