| 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
| |||||||||||
| 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__ | ||||||||||