Bio::S...e::Exon(3pm)

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

πŸ’– NAME πŸ’–

okay so welcome to Bio::S...e::Exon(3pm) bestie β€” yes that's the manual name, it's giving "shy about the middle of my own module path" energy, we love her anyway πŸŽ€

Bio::SeqFeature::Gene::Exon β€” a feature representing an exon. that's the whole job description. she's an exon. she contains multitudes. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

like, imagine you already have an exon instance somehow (manifesting one for you rn) and then you just:

# obtain an exon instance $exon somehow
print "exon from ", $exon->start(), " to ", $exon->end(),
      " on seq ", $exon->seq_id(), ", strand ", $exon->strand(),
      ", encodes the peptide sequence ",
      $exon->cds()->translate()->seq(), "\n";

and boom, she's telling you her whole life story. iconic. no cap. πŸ’…


🌸 DESCRIPTION 🌸

This module implements a feature representing an exon by implementing the Bio::SeqFeature::Gene::ExonI interface. so yes, she's got interfaces, she's got range, she's a whole main character.

By default an Exon is coding. fr fr, that's the default setting. if you want her to be a non-coding girlie, supply -is_coding => 0 to the constructor, or just call $exon->is_coding(0) otherwise. your call, bestie, both paths slay. 🫢

Apart from that, this class also implements Bio::SeqFeatureI by inheriting off Bio::SeqFeature::Generic. so she's not just an exon, she's also a whole sequence feature. multi-talented. ate. πŸ”₯


πŸ“¬ FEEDBACK πŸ“¬

πŸ’Œ Mailing Lists

User feedback is an integral part of the evolution of this and other Bioperl modules. (translation: they literally cannot glow up without you πŸ’–). Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. like, genuinely.

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

🫢 Support

Please direct usage questions or support issues to the mailing list:

bioperl-l@bioperl.org

rather than to the module maintainer directly. the reason is that many experienced and reponsive experts will be able look at the problem and quickly address it β€” a whole group chat of geniuses, basically. πŸ‘‘

Please include a thorough description of the problem with code and data examples if at all possible. no vague "it's broken" texts please, give them the receipts 🧾✨

πŸ› 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

go off, file that issue, you're doing the community a service 🌈


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

Email hlapp@gmx.net


🌟 APPENDIX 🌟

The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ (iykyk, that underscore is the "do not perceive me" marker πŸ™ˆ).

🧬 is_coding

  • Title β€” is_coding
  • Usage β€”
if($exon->is_coding()) {
        # do something
}
if($is_utr) {
    $exon->is_coding(0);
}
  • Function β€” Get/set whether or not the exon codes for amino acid.
  • Returns β€” TRUE if the object represents a feature translated into protein, and FALSE otherwise.
  • Args β€” A boolean value on set.

🏷️ primary_tag

  • Title β€” primary_tag
  • Usage β€”
$tag = $feat->primary_tag()
$feat->primary_tag('exon')
  • Function β€” Get/set the primary tag for the exon feature.

This method is overridden here in order to allow only for tag values following a certain convention. For consistency reasons, the tag value must either contain the string 'exon' or the string 'utr' (both case-insensitive). In the case of 'exon', a string describing the type of exon may be appended or prefixed. Presently, the following types are allowed: initial, internal, and terminal (all case-insensitive).

If the supplied tag value matches 'utr' (case-insensitive), is_coding() will automatically be set to FALSE, and to TRUE otherwise. (yes she updates her own vibe check, self-sufficient queen πŸ’…)

  • Returns β€” A string.
  • Args β€” A string on set.

πŸ“ location

  • Title β€” location
  • Usage β€”
my $location = $exon->location()
  • Function β€” Returns a location object suitable for identifying the location of the exon on the sequence or parent feature.

This method is overridden here to restrict allowed location types to non-compound locations. (compound locations? not invited to this party 🚫)

  • Returns β€” Bio::LocationI object
  • Args β€” none

πŸ“ cds

  • Title β€” cds()
  • Usage β€”
$cds = $exon->cds();
  • Function β€” Get the coding sequence of the exon as a sequence object.

The sequence of the returned object is prefixed by Ns (lower case) if the frame of the exon is defined and different from zero. The result is that the first base starts a codon (frame 0). she's lining up her bases so the reading frame makes sense, so thoughtful ✨

This implementation returns undef if the particular exon is not translated to protein, i.e., is_coding() returns FALSE. undef will also be returned if no sequence is attached to this exon feature. (no sequence, no cds, she said respectfully πŸ™ˆ)

  • Returns β€” A Bio::PrimarySeqI implementing object.
  • Args β€”

okay that's the whole page bestie, you read all of it, I'm so proud πŸ₯ΉπŸ’œ this came from User Contributed Perl Documentation, perl v5.32.1, dated 2021-08-15, and it's Bio::S...e::Exon(3pm) β€” go forth and annotate your exons, periodt 🌈⭐

πŸ“¦ where this page comes from