NAME
Bio::SeqFeature::Gene::Transcript - A feature representing a transcript
SYNOPSIS
# See documentation of methods.
DESCRIPTION
A feature representing a transcript.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Hilmar Lapp
Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
promoters
Title : promoters()Usage : @proms = $transcript->promoters();Function: Get the promoter features/sites of this transcript.Note that OO-modeling of regulatory elements is not stable yet.This means that this method might change or even disappear in afuture release. Be aware of this if you use it.Returns : An array of Bio::SeqFeatureI implementing objects representing thepromoter regions or sites.Args :
add_promoter
Title : add_promoter()Usage : $transcript->add_promoter($feature);Function: Add a promoter feature/site to this transcript.Note that OO-modeling of regulatory elements is not stable yet.This means that this method might change or even disappear in afuture release. Be aware of this if you use it.Returns :Args : A Bio::SeqFeatureI implementing object.
flush_promoters
Title : flush_promoters()Usage : $transcript->flush_promoters();Function: Remove all promoter features/sites from this transcript.Note that OO-modeling of regulatory elements is not stable yet.This means that this method might change or even disappear in afuture release. Be aware of this if you use it.Returns : the removed features as a listArgs : none
exons
Title : exons()Usage : @exons = $gene->exons();($inital_exon) = $gene->exons('Initial');Function: Get all exon features or all exons of specified type of thistranscript.Exon type is treated as a case-insensitive regular expression andis optional. For consistency, use only the following types:initial, internal, terminal.Returns : An array of Bio::SeqFeature::Gene::ExonI implementing objects.Args : An optional string specifying the primary_tag of the feature.
exons_ordered
Title : exons_orderedUsage : @exons = $gene->exons_ordered();@exons = $gene->exons_ordered("Internal");Function: Get an ordered list of all exon features or all exons of specifiedtype of this transcript.Exon type is treated as a case-insensitive regular expression andis optional. For consistency, use only the following types:Returns : An array of Bio::SeqFeature::Gene::ExonI implementing objects.Args : An optional string specifying the primary_tag of the feature.
add_exon
Title : add_exon()Usage : $transcript->add_exon($exon,'initial');Function: Add a exon feature to this transcript.The second argument denotes the type of exon. Mixing exons with andwithout a type is likely to cause trouble in exons(). Eitherleave out the type for all exons or for none.Presently, the following types are known: initial, internal,terminal, utr, utr5prime, and utr3prime (all case-insensitive).UTR should better be added through utrs()/add_utr().If you wish to use other or additional types, you will almostcertainly have to call exon_type_sortorder() in order to replacethe default sort order, or mrna(), cds(), protein(), and exons()may yield unexpected results.Returns :Args : A Bio::SeqFeature::Gene::ExonI implementing object.A string indicating the type of the exon (optional).
flush_exons
Title : flush_exons()Usage : $transcript->flush_exons();$transcript->flush_exons('terminal');Function: Remove all or a certain type of exon features from this transcript.See add_exon() for documentation about types.Calling without a type will not flush UTRs. Call flush_utrs() forthis purpose.Returns : the deleted features as a listArgs : A string indicating the type of the exon (optional).
introns
Title : introns()Usage : @introns = $gene->introns();Function: Get all intron features this gene structure.Note that this implementation generates these featureson-the-fly, that is, it simply treats all regions betweenexons as introns, assuming that exons do not overlap. Aconsequence is that a consistent correspondence between theelements in the returned array and the array that exons()returns will exist only if the exons are properly sortedwithin their types (forward for plus- strand and reversefor minus-strand transcripts). To ensure correctness theelements in the array returned will always be sorted.Returns : An array of Bio::SeqFeature::Gene::Intron objects representingthe intron regions.Args :
poly_A_site
Title : poly_A_site()Usage : $polyAsite = $transcript->poly_A_site();Function: Get/set the poly-adenylation feature/site of this transcript.Returns : A Bio::SeqFeatureI implementing object representing thepoly-adenylation region.Args : A Bio::SeqFeatureI implementing object on set, or FALSE to flusha previously set object.
utrs
Title : utrs()Usage : @utr_sites = $transcript->utrs('utr3prime');@utr_sites = $transcript->utrs('utr5prime');@utr_sites = $transcript->utrs();Function: Get the features representing untranslated regions (UTR) of thistranscript.You may provide an argument specifying the type of UTR. Currentlythe following types are recognized: utr5prime utr3prime for UTR on the5' and 3' end of the CDS, respectively.Returns : An array of Bio::SeqFeature::Gene::UTR objectsrepresenting the UTR regions or sites.Args : Optionally, either utr3prime, or utr5prime for the the type of UTRfeature.
add_utr
Title : add_utr()Usage : $transcript->add_utr($utrobj, 'utr3prime');$transcript->add_utr($utrobj);Function: Add a UTR feature/site to this transcript.The second parameter is optional and denotes the type of the UTRfeature. Presently recognized types include 'utr5prime' and 'utr3prime'for UTR on the 5' and 3' end of a gene, respectively.Calling this method is the same as callingadd_exon($utrobj, 'utr'.$type). In this sense a UTR object is aspecial exon object, which is transcribed, not spliced out, butnot translated.Note that the object supplied should return FALSE for is_coding().Otherwise cds() and friends will become confused.Returns :Args : A Bio::SeqFeature::Gene::UTR implementing object.
flush_utrs
Title : flush_utrs()Usage : $transcript->flush_utrs();$transcript->flush_utrs('utr3prime');Function: Remove all or a specific type of UTR features/sites from thistranscript.Cf. add_utr() for documentation about recognized types.Returns : a list of the removed featuresArgs : Optionally a string denoting the type of UTR feature.
sub_SeqFeature
Title : sub_SeqFeatureUsage : @feats = $transcript->sub_SeqFeature();Function: Returns an array of all subfeatures.This method is defined in Bio::SeqFeatureI. We override this hereto include the exon etc features.Returns : An array Bio::SeqFeatureI implementing objects.Args : none
flush_sub_SeqFeature
Title : flush_sub_SeqFeatureUsage : $transcript->flush_sub_SeqFeature();$transcript->flush_sub_SeqFeature(1);Function: Removes all subfeatures.This method is overridden from Bio::SeqFeature::Generic to flushall additional subfeatures like exons, promoters, etc., which isalmost certainly not what you want. To remove only features addedthrough $transcript->add_sub_SeqFeature($feature) pass anyargument evaluating to TRUE.Example :Returns : noneArgs : Optionally, an argument evaluating to TRUE will suppress flushingof all transcript-specific subfeatures (exons etc.).
cds
Title : cdsUsage : $seq = $transcript->cds();Function: Returns the CDS (coding sequence) as defined by the exonsof this transcript and the attached sequence.If no sequence is attached this method will return false.Note that the implementation provided here returns aconcatenation of all coding exons, thereby assuming thatexons do not overlap.Note also that you cannot set the CDS via this method. Seta single CDS feature as a single exon, or derive your ownclass if you want to store a predicted CDS.Example :Returns : A Bio::PrimarySeqI implementing object.Args :
protein
Title : protein()Usage : $protein = $transcript->protein();Function: Get the protein encoded by the transcript as a sequence object.The implementation provided here simply calls translate() on theobject returned by cds().Returns : A Bio::PrimarySeqI implementing object.Args :
mrna
Title : mrna()Usage : $mrna = $transcript->mrna();Function: Get the mRNA of the transcript as a sequence object.The difference to cds() is that the sequence object returned bythis methods will also include UTR and the poly-adenylation site,but not promoter sequence (TBD).HL: do we really need this method?Returns : A Bio::PrimarySeqI implementing object.Args :
features
Title : featuresUsage : my @features=$transcript->features;Function: returns all the features associated with this transcriptReturns : a list of SeqFeatureI implementing objectsArgs : none
features_ordered
Title : features_orderedUsage : my @features=$transcript->features_ordered;Function: returns all the features associated with this transcript,in order by feature start, according to strandReturns : a list of SeqFeatureI implementing objectsArgs : none