| 1 | package Bio::FastParsers::Roles::Targetable; | ||
| 2 | # ABSTRACT: Target attrs common to HMMER Standard::Target and Table::Hit | ||
| 3 | # CONTRIBUTOR: Arnaud DI FRANCO <arnaud.difranco@gmail.com> | ||
| 4 | 7 | $Bio::FastParsers::Roles::Targetable::VERSION = '0.221230'; | |
| 5 | 7 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 7 | ▶ | use autodie; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 7 | ▶ | use feature qw(say); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 7 | ▶ | use Bio::FastParsers::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 7 | ▶ | use Bio::FastParsers::Constants qw(:files); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | |||
| 14 | has $_ => ( | ||
| 15 | is => 'ro', | ||
| 16 | isa => 'Str', | ||
| 17 | required => 1, | ||
| 18 | 7 | ) for qw(target_name query_name); | |
| 19 | |||
| 20 | has $_ => ( | ||
| 21 | is => 'ro', | ||
| 22 | isa => 'Maybe[Str]', | ||
| 23 | required => 1, | ||
| 24 | 7 | ) for qw(target_description); | |
| 25 | |||
| 26 | has $_ => ( | ||
| 27 | is => 'ro', | ||
| 28 | isa => 'Num', | ||
| 29 | required => 1, | ||
| 30 | 7 | ) for qw( | |
| 31 | evalue score bias | ||
| 32 | best_dom_evalue best_dom_score best_dom_bias | ||
| 33 | exp dom | ||
| 34 | ); | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | 0 | ▶ | sub expect { |
|
Subroutine
expect: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | 0 | return shift->evalue; | |
| 40 | } | ||
| 41 | |||
| 42 | 15 | ▶ | sub name { |
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 43 | 15 | return shift->target_name; | |
| 44 | } | ||
| 45 | |||
| 46 | 7 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | 7 | 1; | |
| 48 | |||
| 49 | __END__ | ||