File Coverage

blib/lib/Bio/FastParsers/Roles/Targetable.pm
Criterion Covered Total %
statement 19 20 95.0
branch n/a
condition n/a
subroutine 7 8 87.5
pod 1 2 50.0
total 27 30 90.0


line stmt bran cond sub pod time code
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             $Bio::FastParsers::Roles::Targetable::VERSION = '0.213510';
5 7     7   6479 use Moose::Role;
  7         34  
  7         72  
6              
7 7     7   44390 use autodie;
  7         20  
  7         78  
8 7     7   41684 use feature qw(say);
  7         21  
  7         824  
9              
10 7     7   60 use Bio::FastParsers::Types;
  7         18  
  7         280  
11 7     7   52 use Bio::FastParsers::Constants qw(:files);
  7         20  
  7         2378  
12              
13              
14             has $_ => (
15             is => 'ro',
16             isa => 'Str',
17             required => 1,
18             ) for qw(target_name query_name);
19              
20             has $_ => (
21             is => 'ro',
22             isa => 'Maybe[Str]',
23             required => 1,
24             ) for qw(target_description);
25              
26             has $_ => (
27             is => 'ro',
28             isa => 'Num',
29             required => 1,
30             ) for qw(
31             evalue score bias
32             best_dom_evalue best_dom_score best_dom_bias
33             exp dom
34             );
35              
36              
37              
38             sub expect {
39 0     0 1 0 return shift->evalue;
40             }
41              
42             sub name {
43 15     15 0 621 return shift->target_name;
44             }
45              
46 7     7   66 no Moose::Role;
  7         17  
  7         82  
47             1;
48              
49             __END__
50              
51             =pod
52              
53             =head1 NAME
54              
55             Bio::FastParsers::Roles::Targetable - Target attrs common to HMMER Standard::Target and Table::Hit
56              
57             =head1 VERSION
58              
59             version 0.213510
60              
61             =head1 SYNOPSIS
62              
63             # TODO
64              
65             =head1 DESCRIPTION
66              
67             # TODO
68              
69             =head1 ALIASES
70              
71             =head2 expect
72              
73             Alias for C<evalue> method. For API consistency.
74              
75             =head1 AUTHOR
76              
77             Denis BAURAIN <denis.baurain@uliege.be>
78              
79             =head1 CONTRIBUTOR
80              
81             =for stopwords Arnaud DI FRANCO
82              
83             Arnaud DI FRANCO <arnaud.difranco@gmail.com>
84              
85             =head1 COPYRIGHT AND LICENSE
86              
87             This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.
88              
89             This is free software; you can redistribute it and/or modify it under
90             the same terms as the Perl 5 programming language system itself.
91              
92             =cut