lib/Bio/MUST/Drivers/Hmmer/Model/Database.pm

filter: Statementstmt 79.3% 23 / 29 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 1 totaltotal 72.5% 29 / 40 CC 2 SCAR 8.0
CC
2
Cov
74%
BUILD
6.0
__ANON__
2.0
BEGIN
1.0
CRAP 2.2
« script/cdhit-tax-filter.pl ↑ Summary lib/Bio/MUST/Provision/Blast.pm »
1 package Bio::MUST::Drivers::Hmmer::Model::Database;
2 # ABSTRACT: Internal class for HMMER3 driver
3 # CONTRIBUTOR: Loic MEUNIER <loic.meunier@doct.uliege.be>
4 5 $Bio::MUST::Drivers::Hmmer::Model::Database::VERSION = '0.252830';
5 5 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 ▶use autodie;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use feature qw(say);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 # use Smart::Comments;
12  
13 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 5 ▶use List::AllUtils;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 5 extends 'Bio::FastParsers::Base';
17  
18 5 with 'Bio::MUST::Drivers::Roles::Hmmerable' => {
19 -excludes => [ qw(search emit) ]
20 };
21  
22  
23 0 ▶sub BUILD {
Subroutine BUILD: not called CC=2 SCAR=17.9
Pod undocumented
24 0 my $self = shift;
25  
26 # check for existence of HMMER database
27 0 my $basename = $self->filename;
28 0 ▶ unless ( List::AllUtils::all { -e "$basename.h3$_" } qw(f i m p) ) {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (&List::AllUtils::all(sub { -e "$basename.h3$_"; } , "f", "i", "m", "p")) 0 0 0
29 0 croak "[BMD] Error: HMMER database not found at $basename; aborting!";
30 }
31  
32 0 return;
33 }
34  
35 5 __PACKAGE__->meta->make_immutable;
36 5 1;
37  
38 __END__
« script/cdhit-tax-filter.pl ↑ Summary lib/Bio/MUST/Provision/Blast.pm »