Promoter/Base.pm

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« Promoter/Annotations/CG.pm ↑ Summary Promoter/SaveTypes/Text.pm »
1 package BioX::SeqUtils::Promoter::Base;
2 ####################################################################
3 # Charles Stephen Embry #
4 # MidSouth Bioinformatics Center #
5 # University of Arkansas Little Rock #
6 ####################################################################
7 0 ▶use Class::Std;
Subroutine BEGIN: called CC=1 SCAR=2.6
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<attribute> :set<attribute> :default<''> :init_arg<attribute> );
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__
« Promoter/Annotations/CG.pm ↑ Summary Promoter/SaveTypes/Text.pm »