| 1 | package Bio::MUST::Apps::Roles::RunProcable; | ||
| 2 | # ABSTRACT: Attributes and methods common to RunProcessor objects | ||
| 3 | 1 | $Bio::MUST::Apps::Roles::RunProcable::VERSION = '0.262780'; | |
| 4 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use autodie; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use feature qw(say); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Smart::Comments -ENV; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | |||
| 12 | has 'blast_args' => ( | ||
| 13 | traits => ['Hash'], | ||
| 14 | is => 'ro', | ||
| 15 | isa => 'HashRef[HashRef]', | ||
| 16 | 0 | ▶ | default => sub { {} }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 17 | 1 | handles => { | |
| 18 | blast_args_for => 'get', | ||
| 19 | }, | ||
| 20 | ); | ||
| 21 | |||
| 22 | |||
| 23 | 1 | has 'trim_homologues' => ( | |
| 24 | is => 'ro', | ||
| 25 | isa => 'Str', | ||
| 26 | default => 'on', | ||
| 27 | ); | ||
| 28 | |||
| 29 | 1 | has 'trim_max_shift' => ( | |
| 30 | is => 'ro', | ||
| 31 | isa => 'Num', | ||
| 32 | default => 20000, | ||
| 33 | ); | ||
| 34 | |||
| 35 | 1 | has 'trim_extra_margin' => ( | |
| 36 | is => 'ro', | ||
| 37 | isa => 'Num', | ||
| 38 | default => 15, | ||
| 39 | ); | ||
| 40 | |||
| 41 | |||
| 42 | 1 | has 'bank_dir' => ( | |
| 43 | is => 'ro', | ||
| 44 | isa => 'Str', | ||
| 45 | required => 1, | ||
| 46 | ); | ||
| 47 | |||
| 48 | 1 | has 'orgs' => ( | |
| 49 | traits => ['Array'], | ||
| 50 | is => 'ro', | ||
| 51 | isa => 'ArrayRef[HashRef]', | ||
| 52 | required => 1, | ||
| 53 | handles => { | ||
| 54 | all_orgs => 'elements', | ||
| 55 | }, | ||
| 56 | ); | ||
| 57 | |||
| 58 | |||
| 59 | 1 | has 'infiles' => ( | |
| 60 | traits => ['Array'], | ||
| 61 | is => 'ro', | ||
| 62 | isa => 'ArrayRef[Str]', | ||
| 63 | required => 1, | ||
| 64 | handles => { | ||
| 65 | all_infiles => 'elements', | ||
| 66 | }, | ||
| 67 | ); | ||
| 68 | |||
| 69 | |||
| 70 | 1 | has 'out_suffix' => ( | |
| 71 | is => 'ro', | ||
| 72 | isa => 'Maybe[Str]', | ||
| 73 | # default provided in consuming classes | ||
| 74 | ); | ||
| 75 | |||
| 76 | |||
| 77 | 1 | has 'out_dir' => ( | |
| 78 | is => 'ro', | ||
| 79 | isa => 'Str', | ||
| 80 | default => q{}, | ||
| 81 | ); | ||
| 82 | |||
| 83 | |||
| 84 | 1 | has 'debug_mode' => ( | |
| 85 | is => 'ro', | ||
| 86 | isa => 'Bool', | ||
| 87 | default => 0, | ||
| 88 | ); | ||
| 89 | |||
| 90 | |||
| 91 | 1 | has 'threads' => ( | |
| 92 | is => 'ro', | ||
| 93 | isa => 'Num', | ||
| 94 | default => 1, | ||
| 95 | ); | ||
| 96 | |||
| 97 | |||
| 98 | 1 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 99 | 1 | 1; | |
| 100 | |||
| 101 | __END__ | ||