Bio/SeqFeature/Gene/NC_Feature.pm

filter: Statementstmt 83.3% 15 / 18 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 3 / 3 totaltotal 83.3% 25 / 30 CC 3 SCAR 5.8
CC
3
Cov
82%
is_coding
2.3
new
2.0
cds
2.0
CRAP 1.8
« Bio/Ontology/OntologyI.pm ↑ Summary Bio/Search/Tiling/TilingI.pm »
1 #
2 # BioPerl module for Bio::SeqFeature::Gene::NC_Feature.pm
3 #
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
5 #
6 # Cared for by David Block <dblock@gene.pbi.nrc.ca>
7 #
8 # Copyright David Block
9 #
10 # You may distribute this module under the same terms as perl itself
11  
12 # POD documentation - main docs before the code
13  
14 =head1 NAME
15  
16 Bio::SeqFeature::Gene::NC_Feature.pm - superclass for non-coding features
17  
18 =head1 SYNOPSIS
19  
20 Give standard usage here
21  
22 =head1 DESCRIPTION
23  
24 Describe the object here
25  
26 =head1 FEEDBACK
27  
28 =head2 Mailing Lists
29  
30 User feedback is an integral part of the evolution of this and other
31 Bioperl modules. Send your comments and suggestions preferably to
32 the Bioperl mailing list. Your participation is much appreciated.
33  
34 bioperl-l@bioperl.org - General discussion
35 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
36  
37 =head2 Support
38  
39 Please direct usage questions or support issues to the mailing list:
40  
41 I<bioperl-l@bioperl.org>
42  
43 rather than to the module maintainer directly. Many experienced and
44 reponsive experts will be able look at the problem and quickly
45 address it. Please include a thorough description of the problem
46 with code and data examples if at all possible.
47  
48 =head2 Reporting Bugs
49  
50 Report bugs to the Bioperl bug tracking system to help us keep track
51 of the bugs and their resolution. Bug reports can be submitted via the
52 web:
53  
54 https://github.com/bioperl/bioperl-live/issues
55  
56 =head1 AUTHOR - David Block
57  
58 Email dblock@gnf.org
59  
60 =head1 APPENDIX
61  
62 The rest of the documentation details each of the object methods.
63 Internal methods are usually preceded with a _
64  
65 =cut
66  
67  
68 # Let the code begin...
69  
70 package Bio::SeqFeature::Gene::NC_Feature;
71 13 $Bio::SeqFeature::Gene::NC_Feature::VERSION = '1.7.8';
72 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
73  
74 # Object preamble - inherits from Bio::Root::Root
75  
76  
77 13 ▶use base qw(Bio::SeqFeature::Generic);
Subroutine BEGIN: called CC=1 SCAR=0.0
78  
79 5 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
80 5 my($class,@args) = @_;
81
82 5 my $self = $class->SUPER::new(@args);
83  
84 5 my ($is_coding) =
85 $self->_rearrange([qw(IS_CODING)],@args);
86 # default is non-coding
87 5 ▶ $self->is_coding(defined($is_coding) ? $is_coding : 0);
Branch: 1 branch
BranchTrueFalseTotal
defined $is_coding ? : 3 2 5
88  
89 5 return $self;
90 }
91  
92  
93  
94 =head2 is_coding
95  
96 Title : is_coding
97 Usage : if ($feature->is_coding()) {
98 #do something
99 }
100 Function: Whether or not the feature codes for amino acid.
101 Returns : FALSE
102 Args : none
103  
104 =cut
105  
106 5 ▶sub is_coding{
Subroutine is_coding: called CC=2 SCAR=8.1
Pod documented
107 5 my $self = shift;
108  
109 5 ▶ return $self->{'is_coding'} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 5 0 5
110 0 return $self->{'is_coding'};
111 }
112  
113 =head2 cds
114  
115 Title : cds
116 Usage : $cds=$feature->cds();
117 Function: get the coding sequence of this feature
118 Returns : undef
119 Args : none
120  
121  
122 =cut
123  
124 0 ▶sub cds {
Subroutine cds: not called CC=1 SCAR=6.9
Pod documented
125 0 my ($self,@args) = @_;
126 0 return;
127  
128 }
129  
130  
131 13 1;
« Bio/Ontology/OntologyI.pm ↑ Summary Bio/Search/Tiling/TilingI.pm »