Bio-MUST-Drivers

 view release on metacpan or  search on metacpan

lib/Bio/MUST/Drivers/Hmmer/Model/Database.pm  view on Meta::CPAN

package Bio::MUST::Drivers::Hmmer::Model::Database;
# ABSTRACT: Internal class for HMMER3 driver
# CONTRIBUTOR: Loic MEUNIER <loic.meunier@doct.uliege.be>
$Bio::MUST::Drivers::Hmmer::Model::Database::VERSION = '0.252830';
use Moose;
use namespace::autoclean;

use autodie;
use feature qw(say);

# use Smart::Comments;

use Carp;
use List::AllUtils;

extends 'Bio::FastParsers::Base';

with 'Bio::MUST::Drivers::Roles::Hmmerable' => {
    -excludes => [ qw(search emit) ]
};


sub BUILD {
    my $self = shift;

    # check for existence of HMMER database
    my $basename = $self->filename;
    unless ( List::AllUtils::all { -e "$basename.h3$_" } qw(f i m p) ) {
        croak "[BMD] Error: HMMER database not found at $basename; aborting!";
    }

    return;
}

__PACKAGE__->meta->make_immutable;
1;

__END__

=pod

=head1 NAME

Bio::MUST::Drivers::Hmmer::Model::Database - Internal class for HMMER3 driver

=head1 VERSION

version 0.252830

=head1 SYNOPSIS

    # TODO

=head1 DESCRIPTION

    # TODO

=head1 AUTHOR

Denis BAURAIN <denis.baurain@uliege.be>

=head1 CONTRIBUTOR

=for stopwords Loic MEUNIER

Loic MEUNIER <loic.meunier@doct.uliege.be>



( run in 0.892 second using v1.01-cache-2.11-cpan-39bf76dae61 )