Bio::S...ucture(3pm)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Bio::SeqFeature::Gene::GeneStructure πŸ’–

okay bestie, welcome to Bio::SeqFeature::Gene::GeneStructure from the User Contributed Perl Documentation β€” she's giving Bioperl energy and she's literally the blueprint for a whole gene. no cap. 🧬✨


🌸 NAME 🌸

Bio::SeqFeature::Gene::GeneStructure β€” a feature representing an arbitrarily complex structure of a gene. yes, arbitrarily complex. she contains multitudes. πŸ‘‘


✨ SYNOPSIS ✨

# See documentation of methods.

that's it. that's the synopsis. the methods are down in the APPENDIX, girlie, scroll. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this is a feature that represents a gene structure. and rn β€” as of now β€” a gene structure is really just a collection of transcripts. that's the whole vibe.

for the deets on what those transcript objects can actually do, go peek at:

  • Bio::SeqFeature::Gene::TranscriptI β€” the interface πŸŽ€
  • Bio::SeqFeature::Gene::Transcript β€” the actual implementation 🌈

🫢 FEEDBACK 🫢

πŸ’Œ Mailing Lists

user feedback is literally an integral part of the evolution of this and every other Bioperl module. so send your comments and suggestions β€” preferably to one of the Bioperl mailing lists. your participation is so appreciated, fr fr. πŸ˜­πŸ’–

bioperl-l@bioperl.org                  - General discussion
http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

πŸ†˜ Support

pls pls pls direct your usage questions and support issues to the mailing list:

bioperl-l@bioperl.org

...rather than sliding into the module maintainer's DMs directly. πŸ™ˆ there are so many experienced and responsive experts who will be able to look at your problem and quickly address it. and bestie β€” if at all possible, include a thorough description of the problem with code and data examples. the more context, the better. 🫢

πŸ› Reporting Bugs

report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolutions. bug reports can be submitted via the web:

https://github.com/bioperl/bioperl-live/issues

πŸ‘‘ AUTHOR - Hilmar Lapp πŸ‘‘

Email hlapp-at-gmx.net ✨


πŸ“– APPENDIX πŸ“–

the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ β€” iykyk. πŸ’…

🌟 transcripts

  • Title β€” transcripts
  • Usage β€” @transcripts = $gene->transcripts();
  • Function β€” get the transcripts of this gene structure. many gene structures will have only one transcript.
  • Returns β€” an array of Bio::SeqFeature::Gene::TranscriptI implementing objects.
  • Args β€” (none)

🌟 add_transcript

  • Title β€” add_transcript()
  • Usage β€” $gene->add_transcript($transcript);
  • Function β€” add a transcript to this gene structure.
  • Returns β€” (nothing)
  • Args β€” a Bio::SeqFeature::Gene::TranscriptI implementing object.

🌟 flush_transcripts

  • Title β€” flush_transcripts()
  • Usage β€” $gene->flush_transcripts();
  • Function β€” remove all transcripts from this gene structure. gone. poof. πŸ’€
  • Returns β€” (nothing)
  • Args β€” (none)

🌟 add_transcript_as_features

  • Title β€” add_transcript_as_features
  • Usage β€” $gene->add_transcript_as_features(@featurelist);
  • Function β€” take a list of Bio::SeqFeatureI objects and turn them into a Bio::SeqFeature::Gene::Transcript object. then add that transcript to the gene. ✨
  • Returns β€” nothing
  • Args β€” a list of Bio::SeqFeatureI compliant objects

🌟 promoters

  • Title β€” promoters
  • Usage β€” @prom_sites = $gene->promoters();
  • Function β€” get the promoter features of this gene structure.

this method basically merges the promoters returned by transcripts.

⚠️ note that OO-modeling of regulatory elements is not stable yet. this means this method might change or even disappear in a future release. be aware of this if you use it, bestie. don't build your whole personality on it. 😭
  • Returns β€” an array of Bio::SeqFeatureI implementing objects.
  • Args β€” (none)

🌟 exons

  • Title β€” exons()
  • Usage β€”
@exons = $gene->exons();
@inital_exons = $gene->exons('Initial');
  • Function β€” get all exon features, or all exons of a specified type, of this gene structure.

exon type is treated as a case-insensitive regular expression and is optional. for consistency, use only the following types: initial, internal, terminal, utr, utr5prime, and utr3prime. a special and virtual type is 'coding', which refers to all types except utr. 🧚

this method basically merges the exons returned by transcripts.

  • Returns β€” an array of Bio::SeqFeature::Gene::ExonI implementing objects.
  • Args β€” an optional string specifying the type of exon.

🌟 introns

  • Title β€” introns()
  • Usage β€” @introns = $gene->introns();
  • Function β€” get all introns of this gene structure.
⚠️ note that this class currently generates these features on-the-fly β€” that is, it simply treats all regions between exons as introns. it assumes that the exons in the transcripts do not overlap. so like, don't come for her if your exons are messy. πŸ’€

this method basically merges the introns returned by transcripts.

  • Returns β€” an array of Bio::SeqFeatureI implementing objects.
  • Args β€” (none)

🌟 poly_A_sites

  • Title β€” poly_A_sites()
  • Usage β€” @polyAsites = $gene->poly_A_sites();
  • Function β€” get the poly-adenylation sites of this gene structure.

this method basically merges the poly-adenylation sites returned by transcripts.

  • Returns β€” an array of Bio::SeqFeatureI implementing objects.
  • Args β€” (none)

🌟 utrs

  • Title β€” utrs()
  • Usage β€”
@utr_sites = $gene->utrs('3prime');
@utr_sites = $gene->utrs('5prime');
@utr_sites = $gene->utrs();
  • Function β€” get the features representing untranslated regions (UTR) of this gene structure.

you may provide an argument specifying the type of UTR. currently the following types are recognized: 5prime and 3prime for UTR on the 5' and 3' end of the CDS, respectively. 🌸

this method basically merges the UTRs returned by transcripts.

  • Returns β€” an array of Bio::SeqFeature::Gene::ExonI implementing objects representing the UTR regions or sites.
  • Args β€” optionally, either 3prime, or 5prime for the the type of UTR feature.

🌟 sub_SeqFeature

  • Title β€” sub_SeqFeature
  • Usage β€” @feats = $gene->sub_SeqFeature();
  • Function β€” returns an array of all subfeatures.

this method is defined in Bio::SeqFeatureI. we override it here to include the transcripts. πŸ‘‘

  • Returns β€” an array of Bio::SeqFeatureI implementing objects.
  • Args β€” none

🌟 flush_sub_SeqFeature

  • Title β€” flush_sub_SeqFeature
  • Usage β€”
$gene->flush_sub_SeqFeature();
$gene->flush_sub_SeqFeature(1);
  • Function β€” removes all subfeatures.
⚠️ this method is overridden from Bio::SeqFeature::Generic to flush all additional subfeatures, i.e., transcripts β€” which is almost certainly not what you want. 😭 to remove only features added through $gene->add_sub_SeqFeature($feature), pass any argument evaluating to TRUE.
  • Example β€” (none given)
  • Returns β€” none
  • Args β€” optionally, an argument evaluating to TRUE will suppress flushing of all gene structure-specific subfeatures (transcripts).

perl v5.32.1 Β· 2021-08-15 Β· that's the whole page, bestie β€” go write some gene structures πŸ’–πŸ§¬βœ¨

πŸ“¦ where this page comes from