| 1 | package Bio::Roary::CombinedProteome; | ||||||||||
| 2 | 3 | $Bio::Roary::CombinedProteome::VERSION = '3.13.0'; | |||||||||
| 3 | # ABSTRACT: Take in multiple FASTA sequences containing proteomes and concat them together and output a FASTA file, filtering out more than 5% X's | ||||||||||
| 4 | |||||||||||
| 5 | |||||||||||
| 6 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 3 | ▶ | use Bio::Roary::Exceptions; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | has 'proteome_files' => ( is => 'ro', isa => 'ArrayRef', required => 1 ); | |||||||||
| 10 | 3 | has 'output_filename' => ( is => 'ro', isa => 'Str', default => 'combined_output.fa' ); | |||||||||
| 11 | |||||||||||
| 12 | 3 | ▶ | sub BUILD { | ||||||||
|
Subroutine
BUILD: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 13 | 3 | my ($self) = @_; | |||||||||
| 14 | |||||||||||
| 15 | 3 | for my $filename ( @{ $self->proteome_files } ) { | |||||||||
| 16 | 5 | ▶ | Bio::Roary::Exceptions::FileNotFound->throw( error => 'Cant open file: ' . $filename ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | unless ( -e $filename ); | ||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | sub create_combined_proteome_file { | ||||||||
|
Subroutine
create_combined_proteome_file: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 24 | 1 | my ($self) = @_; | |||||||||
| 25 | |||||||||||
| 26 | 1 | unlink($self->output_filename); | |||||||||
| 27 | 1 | for my $filename (@{$self->proteome_files }) | |||||||||
| 28 | { | ||||||||||
| 29 | 2 | system(join(' ', ("cat", $filename, ">>", $self->output_filename))); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 1 | 1; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 3 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 36 | 3 | __PACKAGE__->meta->make_immutable; | |||||||||
| 37 | |||||||||||
| 38 | 3 | 1; | |||||||||
| 39 | |||||||||||
| 40 | __END__ | ||||||||||