| 1 | package Bio::MUST::Apps::Debrief42::TaxReport::NewSeq; | ||||||||||||
| 2 | # ABSTRACT: Internal class for tabular tax-report parser | ||||||||||||
| 3 | # CONTRIBUTOR: Mick VAN VLIERBERGHE <mvanvlierberghe@doct.uliege.be> | ||||||||||||
| 4 | 1 | $Bio::MUST::Apps::Debrief42::TaxReport::NewSeq::VERSION = '0.262780'; | |||||||||||
| 5 | 1 | ▶ | use Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | use namespace::autoclean; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | |||||||||||||
| 9 | # public attributes | ||||||||||||
| 10 | |||||||||||||
| 11 | has $_ => ( | ||||||||||||
| 12 | is => 'ro', | ||||||||||||
| 13 | isa => 'Maybe[Str]', | ||||||||||||
| 14 | required => 1, | ||||||||||||
| 15 | 1 | ) for qw( seq_id contam_org lca lineage acc seq ); | |||||||||||
| 16 | |||||||||||||
| 17 | has $_ => ( | ||||||||||||
| 18 | is => 'ro', | ||||||||||||
| 19 | isa => 'Maybe[Num]', | ||||||||||||
| 20 | required => 1, | ||||||||||||
| 21 | 1 | ) for qw( top_score rel_n mean_len mean_ident start end strand ); | |||||||||||
| 22 | |||||||||||||
| 23 | 1 | has 'outfile' => ( | |||||||||||
| 24 | is => 'ro', | ||||||||||||
| 25 | isa => 'Str', | ||||||||||||
| 26 | ); | ||||||||||||
| 27 | |||||||||||||
| 28 | |||||||||||||
| 29 | |||||||||||||
| 30 | 0 | ▶ | sub heads { | ||||||||||
|
Subroutine
heads: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 31 | 0 | my $class = shift; | |||||||||||
| 32 | |||||||||||||
| 33 | 0 | return qw( | |||||||||||
| 34 | seq_id contam_org | ||||||||||||
| 35 | top_score | ||||||||||||
| 36 | rel_n mean_len mean_ident lca lineage | ||||||||||||
| 37 | acc start end strand seq | ||||||||||||
| 38 | ); # Note: outfile attr is added by TaxReport parser! | ||||||||||||
| 39 | } | ||||||||||||
| 40 | |||||||||||||
| 41 | |||||||||||||
| 42 | 0 | ▶ | sub stringify { | ||||||||||
|
Subroutine
stringify: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 43 | 0 | my $self = shift; | |||||||||||
| 44 | 0 | ▶ | return join "\t", map { $self->$_ // q{} } $self->heads; | ||||||||||
|
Condition0%0/2
$self->$_ // ""
MC/DC0%0/1
$self->$_ // ""
$self->$_
Truth table0%0/2
A
A= $self->$_
| |||||||||||||
| 45 | } | ||||||||||||
| 46 | |||||||||||||
| 47 | |||||||||||||
| 48 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||||
| 49 | 1 | 1; | |||||||||||
| 50 | |||||||||||||
| 51 | __END__ | ||||||||||||