2 # BioPerl module for Bio::SeqFeature::Gene::TranscriptI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Hilmar Lapp <hlapp@gmx.net>
8 # Copyright Hilmar Lapp
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::TranscriptI - Interface for a feature representing a
17 transcript of exons, promoter(s), UTR, and a poly-adenylation site.
25 A feature representing a transcript.
31 User feedback is an integral part of the evolution of this
32 and other Bioperl modules. Send your comments and suggestions preferably
33 to one of the Bioperl mailing lists.
34 Your participation is much appreciated.
36 bioperl-l@bioperl.org - General discussion
37 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
41 Please direct usage questions or support issues to the mailing list:
43 I<bioperl-l@bioperl.org>
45 rather than to the module maintainer directly. Many experienced and
46 reponsive experts will be able look at the problem and quickly
47 address it. Please include a thorough description of the problem
48 with code and data examples if at all possible.
52 Report bugs to the Bioperl bug tracking system to help us keep track
53 the bugs and their resolution. Bug reports can be submitted via the
56 https://github.com/bioperl/bioperl-live/issues
58 =head1 AUTHOR - Hilmar Lapp
64 The rest of the documentation details each of the object methods.
65 Internal methods are usually preceded with a _
70 # Let the code begin...
73 package Bio
::SeqFeature
::Gene
::TranscriptI
;
78 use base
qw(Bio::SeqFeatureI);
83 Usage : @proms = $transcript->promoters();
84 Function: Get the promoter features of this transcript.
86 Note that OO-modeling of regulatory elements is not stable yet.
87 This means that this method might change or even disappear in a
88 future release. Be aware of this if you use it.
90 Returns : An array of Bio::SeqFeatureI implementing objects representing the
91 promoter regions or sites.
98 $self->throw_not_implemented();
104 Usage : @exons = $transcript->exons();
105 @inital = $transcript->exons('Initial');
106 Function: Get the individual exons this transcript comprises of, or all exons
109 Refer to the documentation of the class that produced this
110 transcript object for information about the possible types.
112 See Bio::SeqFeature::Gene::ExonI for properties of the
115 Returns : An array of Bio::SeqFeature::Gene::ExonI implementing objects
116 Args : An optional string specifying the type of the exon.
121 my ($self, $type) = @_;
122 $self->throw_not_implemented();
128 Usage : @introns = $transcript->introns();
129 Function: Get all introns this transcript comprises of.
130 Returns : An array of Bio::SeqFeatureI implementing objects representing the
139 $self->throw_not_implemented();
144 Title : poly_A_site()
145 Usage : $polyAsite = $transcript->poly_A_site();
146 Function: Get the poly-adenylation site of this transcript.
147 Returns : A Bio::SeqFeatureI implementing object.
155 $self->throw_not_implemented();
161 Usage : @utr_sites = $transcript->utrs();
162 Function: Get the UTR regions this transcript comprises of.
164 See Bio::SeqFeature::Gene::ExonI for properties of the
167 Returns : An array of Bio::SeqFeature::Gene::ExonI implementing objects
175 $self->throw_not_implemented();
181 Usage : $mrna = $transcript->mrna();
182 Function: Get the mRNA of the transcript as a sequence object.
184 Returns : A Bio::PrimarySeqI implementing object.
192 $self->throw_not_implemented();
198 Usage : $cds = $transcript->cds();
199 Function: Get the CDS (coding sequence) of the transcript as a sequence
202 Returns : A Bio::PrimarySeqI implementing object.
210 $self->throw_not_implemented();
216 Usage : $protein = $transcript->protein();
217 Function: Get the protein encoded by the transcript as a sequence object.
219 Returns : A Bio::PrimarySeqI implementing object.
227 $self->throw_not_implemented();
233 Usage : $obj->parent($newval)
234 Function: get the parent gene of the transcript
235 Returns : value of parent - a Bio::SeqFeature::Gene::GeneStructureI-compliant object
236 Args : a Bio::SeqFeature::Gene::GeneStructureI-compliant object (optional)
245 # I really mean ! defined $value -
246 # we will allow re-setting the parent to undef
247 if (! defined $value ||
248 $value->isa("Bio::SeqFeature::Gene::GeneStructureI")) {
249 $self->{'_parent'} = $value;
251 $self->throw("$value must be a Bio::SeqFeature::Gene::GeneStructureI")
254 return $self->{'_parent'};