blib/lib/Bio/Gonzales/Tools/SeqStats.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
count_residues
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #Copyright (c) 2010 Joachim Bargsten <code at bargsten dot org>. All rights reserved.
2  
3 package Bio::Gonzales::Tools::SeqStats;
4  
5 use warnings;
6 use strict;
7 use Carp;
8  
9 use Mouse;
10  
11 use Bio::Gonzales::Util::Text qw/character_count/;
12 use MouseX::Foreign 'Bio::Root::Root';
13  
14 with 'Bio::Gonzales::Role::BioPerl::Constructor';
15  
16 use 5.010;
17 our $VERSION = '0.062'; # VERSION
18  
19 has seq => ( is => 'rw' );
20  
21 sub count_residues {
22 my ($self) = @_;
23
24 return character_count($self->seq->seq);
25 }
26  
27 1;
28