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_Variantmethod.
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::DNAMutationobjects 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::AAChangeobjects 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_startshould be1 + 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_startfrom 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 be1 + offsetand 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_offsetfrom 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::Variantinto the list of variants. and at the same time, it creates a link from the Variant back to SeqDiff using itsSeqDiffmethod. mutuals π«Ά - Example β (none given)
- Returns β
1when it succeeds,0for 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::Geneinto the list of genes 𧬠- Example β (none given)
- Returns β
1when it succeeds,0for failure. - Args β
Bio::LiveSeq::Geneobject
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::PrimarySeqobject. it's giving object-oriented glow-up β¨ - Example β (none given)
- Returns β
Bio::PrimarySeqobject 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
- debian bookworm: libbio-variation-perl 1.7.5-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbio-variation-perl 1.7.5-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libbio-variation-perl 1.7.5-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbio-variation-perl 1.7.5-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbio-variation-perl 1.7.5-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbio-variation-perl 1.7.5-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms