| 1 | package BioX::SeqUtils::Promoter::Annotations; | ||
| 2 | #################################################################### | ||
| 3 | # Charles Stephen Embry # | ||
| 4 | # MidSouth Bioinformatics Center # | ||
| 5 | # University of Arkansas Little Rock # | ||
| 6 | #################################################################### | ||
| 7 | 1 | ▶ | use base qw(BioX::SeqUtils::Promoter::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | use Class::Std; | ||
| 9 | use BioX::SeqUtils::Promoter::Sequence; | ||
| 10 | use BioX::SeqUtils::Promoter::Sequences; | ||
| 11 | use Class::Std::Utils; | ||
| 12 | use Module::Runtime qw(use_module); | ||
| 13 | |||
| 14 | |||
| 15 | use warnings; | ||
| 16 | use strict; | ||
| 17 | use Carp; | ||
| 18 | |||
| 19 | use version; our $VERSION = qv('0.1.1'); | ||
| 20 | |||
| 21 | { | ||
| 22 | no warnings 'redefine'; | ||
| 23 | sub new { | ||
| 24 | my ($self, $arg_ref) = @_; | ||
| 25 | my $type = defined $arg_ref->{type} ? $arg_ref->{type} : ''; | ||
| 26 | return use_module('BioX::SeqUtils::Promoter::Annotations::' . $type, 0.1.1)->new( $arg_ref ); | ||
| 27 | } | ||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | 1; # Magic true value required at end of module | ||
| 35 | __END__ | ||