| 1 | package Bio::MUST::Apps::Debrief42::OrgReport; | ||
| 2 | # ABSTRACT: Internal class for tabular tax-report parser | ||
| 3 | # CONTRIBUTOR: Mick VAN VLIERBERGHE <mvanvlierberghe@doct.uliege.be> | ||
| 4 | $Bio::MUST::Apps::Debrief42::OrgReport::VERSION = '0.262780'; | ||
| 5 | use Moose; | ||
| 6 | use namespace::autoclean; | ||
| 7 | |||
| 8 | use autodie; | ||
| 9 | use feature qw(say); | ||
| 10 | |||
| 11 | use Bio::MUST::Core; | ||
| 12 | use aliased 'Bio::MUST::Core::SeqId'; | ||
| 13 | use aliased 'Bio::MUST::Apps::Debrief42::TaxReport'; | ||
| 14 | |||
| 15 | |||
| 16 | has 'org' => ( | ||
| 17 | is => 'ro', | ||
| 18 | isa => 'Str', | ||
| 19 | required => 1, | ||
| 20 | ); | ||
| 21 | |||
| 22 | |||
| 23 | has '_new_seqs_by_' . $_ => ( | ||
| 24 | traits => ['Hash'], | ||
| 25 | is => 'ro', | ||
| 26 | isa => | ||
| 27 | 'HashRef[ArrayRef[Bio::MUST::Apps::Debrief42::TaxReport::NewSeq]]', | ||
| 28 | required => 1, | ||
| 29 | handles => { | ||
| 30 | 'all_' . $_ . 's' => 'keys', | ||
| 31 | 'new_seqs_by_' . $_ . '_for' => 'get', | ||
| 32 | 'all_new_seqs_by_' . $_ => 'values', | ||
| 33 | }, | ||
| 34 | ) for qw(outfile acc); | ||
| 35 | |||
| 36 | |||
| 37 | __PACKAGE__->meta->make_immutable; | ||
| 38 | 1; | ||
| 39 | |||
| 40 | __END__ |