2 # BioPerl module for Bio::SeqFeature::Gene::NC_Feature.pm
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by David Block <dblock@gene.pbi.nrc.ca>
8 # Copyright David Block
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
16 Bio::SeqFeature::Gene::NC_Feature.pm - superclass for non-coding features
20 Give standard usage here
24 Describe the object here
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.
34 bioperl-l@bioperl.org - General discussion
35 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
39 Please direct usage questions or support issues to the mailing list:
41 I<bioperl-l@bioperl.org>
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.
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
54 https://github.com/bioperl/bioperl-live/issues
56 =head1 AUTHOR - David Block
62 The rest of the documentation details each of the object methods.
63 Internal methods are usually preceded with a _
68 # Let the code begin...
70 package Bio
::SeqFeature
::Gene
::NC_Feature
;
73 # Object preamble - inherits from Bio::Root::Root
76 use base
qw(Bio::SeqFeature::Generic);
79 my($class,@args) = @_;
81 my $self = $class->SUPER::new
(@args);
84 $self->_rearrange([qw(IS_CODING)],@args);
85 # default is non-coding
86 $self->is_coding(defined($is_coding) ?
$is_coding : 0);
96 Usage : if ($feature->is_coding()) {
99 Function: Whether or not the feature codes for amino acid.
108 return $self->{'is_coding'} = shift if @_;
109 return $self->{'is_coding'};
115 Usage : $cds=$feature->cds();
116 Function: get the coding sequence of this feature
124 my ($self,@args) = @_;