| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package BioX::SeqUtils::Promoter::Base; |
|
2
|
|
|
|
|
|
|
#################################################################### |
|
3
|
|
|
|
|
|
|
# Charles Stephen Embry # |
|
4
|
|
|
|
|
|
|
# MidSouth Bioinformatics Center # |
|
5
|
|
|
|
|
|
|
# University of Arkansas Little Rock # |
|
6
|
|
|
|
|
|
|
#################################################################### |
|
7
|
3
|
|
|
3
|
|
24630
|
use Class::Std; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Class::Std::Utils; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use warnings; |
|
11
|
|
|
|
|
|
|
use strict; |
|
12
|
|
|
|
|
|
|
use Carp; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use version; our $VERSION = qv('0.1.1'); |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $motifs = ['ATCGATA', 'CCGTTA', 'TATATGG' ]; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
{ |
|
19
|
|
|
|
|
|
|
my %attribute_of :ATTR( :get :set :default<''> :init_arg ); |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub BUILD { |
|
22
|
|
|
|
|
|
|
my ($self, $ident, $arg_ref) = @_; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
return; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub get_default_motifs { return $motifs; } |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub START { |
|
31
|
|
|
|
|
|
|
my ($self, $ident, $arg_ref) = @_; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
return; |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub length { |
|
38
|
|
|
|
|
|
|
my ($self, $arg_ref) = @_; |
|
39
|
|
|
|
|
|
|
my $string = defined $arg_ref->{string} ? $arg_ref->{string} : ''; |
|
40
|
|
|
|
|
|
|
my @letters = split('', $string); |
|
41
|
|
|
|
|
|
|
#tells howlong a sequence is, important for other objects in Promoter module |
|
42
|
|
|
|
|
|
|
return scalar(@letters); |
|
43
|
|
|
|
|
|
|
} |
|
44
|
|
|
|
|
|
|
} |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
|
47
|
|
|
|
|
|
|
__END__ |