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
« Drivers/Blast/Database/Temporary.pm ↑ Summary 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.210160';
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 sub BUILD {
24 0 ▶ my $self = shift;
Subroutine BUILD: not called CC=2 SCAR=17.9
Pod undocumented
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__
39  
40 =pod
41  
42 =head1 NAME
43  
44 Bio::MUST::Drivers::Hmmer::Model::Database - Internal class for HMMER3 driver
45  
46 =head1 VERSION
47  
48 version 0.210160
49  
50 =head1 SYNOPSIS
51  
52 # TODO
53  
54 =head1 DESCRIPTION
55  
56 # TODO
57  
58 =head1 AUTHOR
59  
60 Denis BAURAIN <denis.baurain@uliege.be>
61  
62 =head1 CONTRIBUTOR
63  
64 =for stopwords Loic MEUNIER
65  
66 Loic MEUNIER <loic.meunier@doct.uliege.be>
67  
68 =head1 COPYRIGHT AND LICENSE
69  
70 This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.
71  
72 This is free software; you can redistribute it and/or modify it under
73 the same terms as the Perl 5 programming language system itself.
74  
75 =cut
« Drivers/Blast/Database/Temporary.pm ↑ Summary Provision/Blast.pm »