Bio::V...SeqDiff(3pm)

πŸ’– NAME πŸ’–

Bio::V...SeqDiff(3pm) β€” straight outta the User Contributed Perl Documentation, bestie β€” this is the container class for mutation/variant descriptions. It's giving "I hold all your variant lore in one place" energy, fr fr.

✨ SYNOPSIS ✨

$seqDiff = Bio::Variation::SeqDiff->new (
                                         -id => $M20132,
                                         -alphabet => 'rna',
                                         -gene_symbol => 'AR'
                                         -chromosome => 'X',
                                         -numbering => 'coding'
                                        );
# get a DNAMutation object somehow
$seqDiff->add_Variant($dnamut);
print  $seqDiff->sys_name(), "\n";

Like, yes, the -gene_symbol => 'AR' line is missing its comma, and no, I'm not fixing it, because that's literally what the page says and we respect the source material in this house. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so SeqDiff stores Bio::Variation::VariantI object references plus all the descriptive info that's common to every change in a sequence. Mutations here are understood to mean any kind of sequence markers, and they're expected to occur in the same chromosome. If you want the details on that, go peek at Bio::Variation::VariantI β€” it ate, no cap.

The methods of SeqDiff are geared towards describing mutations in human genes, using a gene-based coordinate system where the 'A' of the initiator codon has number 1 and the one before it is -1. That's just the conventions of human genetics, so like, respect the rules of the land. πŸ‘‘

There's gonna be a class Bio::Variation::Genotype to describe markers in different chromosomes and diploid genototypes. Not here yet, but the vibes are immaculate and it's coming.

The classes that implement the Bio::Variation::VariantI interface are Bio::Variation::DNAMutation, Bio::Variation::RNAChange, and Bio::Variation::AAChange. For more info, hit up Bio::Variation::VariantI, Bio::Variation::DNAMutation, Bio::Variation::RNAChange, and Bio::Variation::AAChange β€” they're all iconic in their own right. 🌈

So how do variant objects get in? Two ways, bestie:

  • an array passed to the constructor, or
  • individual Variant objects added one at a time with the add_Variant method.

Pick your fighter. 🫢


πŸ’Œ FEEDBACK πŸ’Œ

πŸ“¬ Mailing Lists πŸ“¬

User feedback is an integral part of the evolution of this and other Bioperl modules β€” like, the glow-up is literally powered by you. Send your comments and suggestions preferably to the Bioperl mailing lists. Your participation is much appreciated. πŸ₯Ή

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. Why? Because so many experienced and reponsive experts will be able look at the problem and quickly address it β€” that's the group chat advantage, bestie. πŸ’… Please include a thorough description of the problem with code and data examples if at all possible. The more receipts, the faster the fix. 🧚

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

Do it for the culture. 🌸


πŸ‘‘ AUTHOR - Heikki Lehvaslaiho πŸ‘‘

Email: heikki-at-bioperl-dot-org

(Yes, that's the actual format the page uses. Written exactly like that. We love a legend who formats their own email like a captcha. πŸ’€)

🌟 CONTRIBUTORS 🌟

Eckhard Lehmann, ecky@e-lehmann.de

Shoutout to Eckhard, fr fr. πŸŽ€

✨ APPENDIX ✨

okay bestie, this is the deep-lore part πŸ’… every single object method gets its own lil breakdown. heads up: internal methods are usually the ones that start with an underscore (_) β€” that's the secret handshake, iykyk πŸ”‘


πŸ’– new

  • Title β€” new
  • Usage β€” $seqDiff = Bio::Variation::SeqDiff->new;
  • Function β€” spawns a brand new Bio::Variation::SeqDiff, no cap 🌱
  • Returns β€” a reference to a fresh object of class SeqDiff
  • Args β€” (none specified)

πŸŽ€ id

  • Title β€” id
  • Usage β€” $obj->id(H0001); $id = $obj->id();
  • Function β€” sets or returns the id of the seqDiff. this is the one you use to hand the whole collection of variants a UID without any semantic associations attached. it's giving ✨pure vibes only✨
  • Example β€” (none given)
  • Returns β€” value of id, a scalar
  • Args β€” newvalue (optional)

πŸ¦‹ sysname

  • Title β€” sysname
  • Usage β€” $obj->sysname('5C>G'); $sysname = $obj->sysname();
  • Function β€” sets or returns the systematic name of the seqDiff. this name should follow the HUGO Mutation Database Initiative approved nomenclature, we respect the rules here. and if you call it without setting the value first, it will generate the name for you out of the Bio::Variation::DNAMutation objects attached. it literally does the work itself, main character energy fr fr πŸ‘‘
  • Example β€” (none given)
  • Returns β€” value of sysname, a scalar
  • Args β€” newvalue (optional)

🌸 trivname

  • Title β€” trivname
  • Usage β€” $obj->trivname('[A2G;T56G]'); $trivname = $obj->trivname();
  • Function β€” sets or returns the trivial name of the seqDiff. also supposed to follow the HUGO Mutation Database Initiative approved nomenclature. and same deal: if you never set it, it'll build it for you from the Bio::Variation::AAChange objects attached 🧚
  • Example β€” (none given)
  • Returns β€” value of trivname, a scalar
  • Args β€” newvalue (optional)

🌈 chromosome

  • Title β€” chromosome
  • Usage β€” $obj->chromosome('X'); $chromosome = $obj->chromosome();
  • Function β€” sets or returns the chromosome (the "linkage group") of the seqDiff 🧬
  • Example β€” (none given)
  • Returns β€” value of chromosome, a scalar
  • Args β€” newvalue (optional)

⭐ gene_symbol

  • Title β€” gene_symbol
  • Usage β€” $obj->gene_symbol('FOS'); $gene_symbol = $obj->gene_symbol;
  • Function β€” sets or returns the gene symbol for the CDS you're studying πŸ“–
  • Example β€” (none given)
  • Returns β€” value of gene_symbol, a scalar
  • Args β€” newvalue (optional)

πŸ’œ description

  • Title β€” description
  • Usage β€” $obj->description('short description'); $descr = $obj->description();
  • Function β€” sets or returns the short description of the seqDiff. keep it snappy bestie ✍️
  • Example β€” (none given)
  • Returns β€” value of description, a scalar
  • Args β€” newvalue (optional)

πŸ“ alphabet

  • Title β€” alphabet
  • Usage β€” if( $obj->alphabet eq 'dna' ) { /Do Something/ }
  • Function β€” returns the type of primary reference sequence, which is one of 'dna', 'rna' or 'protein'. this is case sensitive, so don't get cute with the capitals 🚨
  • Returns β€” a string, either 'dna','rna','protein'.
  • Args β€” none

🧚 numbering

  • Title β€” numbering
  • Usage β€” $obj->numbering('coding'); $numbering = $obj->numbering();
  • Function β€” sets or returns the string that gives the numbering schema used to describe the variants πŸ”’
  • Example β€” (none given)
  • Returns β€” value of numbering, a scalar
  • Args β€” newvalue (optional)

πŸŽ€ offset

  • Title β€” offset
  • Usage β€” $obj->offset(124); $offset = $obj->offset();
  • Function β€” sets or returns the offset from the beginning of the DNA sequence to the coordinate start used to describe variants. typically that's the beginning of the coding region of the gene. and listen: the cds_start should be 1 + offset βž•
  • Example β€” (none given)
  • Returns β€” value of offset, a scalar
  • Args β€” newvalue (optional)

πŸ”₯ cds_start

  • Title β€” cds_start
  • Usage β€” $obj->cds_start(123); $cds_start = $obj->cds_start();
  • Function β€” sets or returns the cds_start from the beginning of the DNA sequence to the coordinate start used to describe variants. typically the beginning of the coding region of the gene. it needs to be 1 + offset and that's literally how it's implemented, no cap 🫢
  • Example β€” (none given)
  • Returns β€” value of cds_start, a scalar
  • Args β€” newvalue (optional)

πŸ’… cds_end

  • Title β€” cds_end
  • Usage β€” $obj->cds_end(321); $cds_end = $obj->cds_end();
  • Function β€” sets or returns the position of the last nucleotide of the termination codon. the coordinate system starts from cds_start πŸ“
  • Example β€” (none given)
  • Returns β€” value of cds_end, a scalar
  • Args β€” newvalue (optional)

πŸ¦‹ rna_offset

  • Title β€” rna_offset
  • Usage β€” $obj->rna_offset(124); $rna_offset = $obj->rna_offset();
  • Function β€” sets or returns the rna_offset from the beginning of the RNA sequence to the coordinate start used to describe variants. typically the beginning of the coding region of the gene 🧬
  • Example β€” (none given)
  • Returns β€” value of rna_offset, a scalar
  • Args β€” newvalue (optional)

🌸 rna_id

  • Title β€” rna_id
  • Usage β€” $obj->rna_id('transcript#3'); $rna_id = $obj->rna_id();
  • Function β€” sets or returns the ID for the original RNA sequence of the seqDiff 🏷️
  • Example β€” (none given)
  • Returns β€” value of rna_id, a scalar
  • Args β€” newvalue (optional)

✨ add_Variant

  • Title β€” add_Variant
  • Usage β€” $obj->add_Variant($variant)
  • Function β€” pushes one Bio::Variation::Variant into the list of variants. and at the same time, it creates a link from the Variant back to SeqDiff using its SeqDiff method. mutuals 🫢
  • Example β€” (none given)
  • Returns β€” 1 when it succeeds, 0 for failure.
  • Args β€” Variant object

🌈 each_Variant

  • Title β€” each_Variant
  • Usage β€” $obj->each_Variant();
  • Function β€” returns a list of Variants πŸ“‹
  • Example β€” (none given)
  • Returns β€” list of Variants
  • Args β€” none

πŸ‘‘ add_Gene

  • Title β€” add_Gene
  • Usage β€” $obj->add_Gene($gene)
  • Function β€” pushes one Bio::LiveSeq::Gene into the list of genes 🧬
  • Example β€” (none given)
  • Returns β€” 1 when it succeeds, 0 for failure.
  • Args β€” Bio::LiveSeq::Gene object
see Bio::LiveSeq::Gene for more information πŸ“š

πŸŽ€ each_Gene

  • Title β€” each_Gene
  • Usage β€” $obj->each_Gene();
  • Function β€” returns a list of Bio::LiveSeq::Genes πŸ“‹
  • Example β€” (none given)
  • Returns β€” list of Genes
  • Args β€” none

πŸ“ dna_ori

  • Title β€” dna_ori
  • Usage β€” $obj->dna_ori('atgctgctgctgct'); $dna_ori = $obj->dna_ori();
  • Function β€” sets or returns the original DNA sequence string of the seqDiff 🧬
  • Example β€” (none given)
  • Returns β€” value of dna_ori, a scalar
  • Args β€” newvalue (optional)

πŸ’œ dna_mut

  • Title β€” dna_mut
  • Usage β€” $obj->dna_mut('atgctggtgctgct'); $dna_mut = $obj->dna_mut();
  • Function β€” sets or returns the mutated DNA sequence of the seqDiff. and if the sequence hasn't been set, it generates it from the original sequence plus the DNA mutations ✨
  • Example β€” (none given)
  • Returns β€” value of dna_mut, a scalar
  • Args β€” newvalue (optional)

🧚 rna_ori

  • Title β€” rna_ori
  • Usage β€” $obj->rna_ori('atgctgctgctgct'); $rna_ori = $obj->rna_ori();
  • Function β€” sets or returns the original RNA sequence of the seqDiff 🌸
  • Example β€” (none given)
  • Returns β€” value of rna_ori, a scalar
  • Args β€” newvalue (optional)

⭐ rna_mut

  • Title β€” rna_mut
  • Usage β€” $obj->rna_mut('atgctggtgctgct'); $rna_mut = $obj->rna_mut();
  • Function β€” sets or returns the mutated RNA sequence of the seqDiff πŸ’«
  • Example β€” (none given)
  • Returns β€” value of rna_mut, a scalar
  • Args β€” newvalue (optional)

πŸ¦‹ aa_ori

  • Title β€” aa_ori
  • Usage β€” $obj->aa_ori('MAGVLL*'); $aa_ori = $obj->aa_ori();
  • Function β€” sets or returns the original protein sequence of the seqDiff πŸ₯š
  • Example β€” (none given)
  • Returns β€” value of aa_ori, a scalar
  • Args β€” newvalue (optional)

πŸ”₯ aa_mut

  • Title β€” aa_mut
  • Usage β€” $obj->aa_mut('MA*'); $aa_mut = $obj->aa_mut();
  • Function β€” sets or returns the mutated protein sequence of the seqDiff 🐣
  • Example β€” (none given)
  • Returns β€” value of aa_mut, a scalar
  • Args β€” newvalue (optional)

🌈 seqobj

  • Title β€” seqobj
  • Usage β€” $dnaobj = $obj->seqobj('dna_mut');
  • Function β€” returns any original or mutated sequence as a Bio::PrimarySeq object. it's giving object-oriented glow-up ✨
  • Example β€” (none given)
  • Returns β€” Bio::PrimarySeq object for the requested sequence
  • Args β€” string, method name for the sequence requested
see Bio::PrimarySeq for more information πŸ“š

πŸ’… alignment

  • Title β€” alignment
  • Usage β€” $obj->alignment
  • Function β€” returns a pretty RNA/AA sequence alignment from the linked objects. under construction 🚧 only simple coding region point mutations work.
  • Example β€” (none given)
  • Returns β€” (none given)
  • Args β€” none

and that's the whole appendix bestie, you ate that 🫢✨

this page came from perl v5.32.1, dated 2021-12-02, and it lives under the name Bio::V...SeqDiff(3pm) β€” so if you ever forget where you read all this, that's the vibe check πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from