Bio::M...ceSite(3pm)

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

πŸ’– NAME πŸ’–

Bio::Matrix::PSM::InstanceSite β€” a PSM site occurrence. That's it, that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

okay bestie, here's how you actually get one of these:

use Bio::Matrix::PSM::InstanceSite;

#You can get an InstanceSite object either from a file:

my ($instances,$matrix)=$SomePSMFile->parse_next;

#or from memory

my %params=(seq=>'TATAAT',
  id=>"TATAbox1", accession=>'ENSG00000122304', mid=>'TB1',
  desc=>'TATA box, experimentally verified in PRM1 gene',
  -relpos=>-35, -anchor=>'CHR7', -start=>35000921, -end=>35000926);

#Last 2 arguments are passed to create a Bio::LocatableSeq object
#Anchor shows the coordinates system for the Bio::LocatableSeq object

like. either you pull it out of a file, or you build it in memory. both are valid. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So InstanceSite is the abstract interface to a PSM site occurrence β€” and by "PSM" we mean a PSM sequence match, iykyk. You use InstanceSite objects to describe a PSM match (and if you wanna know about the matrix side of things, go look at Bio::Matrix::PSM::SiteMatrix).

The usual deets that come with one of these matches are: sequence coordinates, score, sequence, and a sequence (gene) identifier β€” which could be an accession number or literally any other id. all of it, in one little object. 🫢

This object inherits from Bio::LocatableSeq, and that's the thing that actually defines the real sequence. On top of that, it might also hold a SiteMatrix object β€” either the one used to detect the CRE (that's a cis-regulatory element, bestie) or one that got created from this CRE.

⚠️ now the tea: the docs say the motif id + gene id (accession) combo should be unique. This is not entirely true. There can be more than one occurrence of the same cis-regulatory element in the upstream region of the same gene. So to build a really unique combo, you need relpos as the third element. three-part key, no cap. πŸ”‘

πŸŽ€ FEEDBACK πŸŽ€

πŸ’Œ Mailing Lists

User feedback is literally an integral part of the evolution of this module and all the other Bioperl modules, so don't be shy β€” send your comments and suggestions to one of the Bioperl mailing lists. Your participation is much appreciated. genuinely. πŸ₯Ή

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

πŸ«‚ Support

kay so for usage questions and support issues, please direct them to the mailing list:

bioperl-l@bioperl.org

...instead of going straight to the module maintainer. there are so many experienced and responsive experts hanging out there who'll look at your problem and address it fast. and please, pretty please, include a thorough description of the problem with code and data examples if at all possible. the more context, the faster the fix. πŸ’–

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

πŸ“ Description

Bio::Matrix::PSM::InstanceSiteI implementation. that's the whole note. ✨


πŸ‘‘ AUTHOR β€” Stefan Kirov πŸ‘‘

Email: skirov@utk.edu


🌈 APPENDIX 🌈

🧚 new

  • Title β€” new
  • Usage β€”
my $isntance=Bio::Matrix::PSM::InstanceSite->new
                        (-seq=>'TATAAT', -id=>"TATAbox1",
                         -accession_number='ENSG00000122304', -mid=>'TB1',
                         -desc=>'TATA box, experimentally verified in PRM1 gene',
                         -relpos=>-35, -anchor=>'CHR7', -start=>35000921, -end=>35000926, strand=>1)
  • Function β€” Creates an InstanceSite object from memory. yes, from memory, no file needed. 🧠✨
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” Bio::Matrix::PSM::InstanceSite object
  • Args β€” hash

🌟 mid

  • Title β€” mid
  • Usage β€” my $mid=$instance->mid;
  • Function β€” Get/Set the motif id
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” scalar
  • Args β€” scalar

πŸ”₯ score

  • Title β€” score
  • Usage β€” my $score=$instance->score;
  • Function β€” Get/Set the score (mismatches) between the instance and the attached (or initial) PSM
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” real number
  • Args β€” real number

βš“ anchor

  • Title β€” anchor
  • Usage β€” my $anchor=$instance->anchor;
  • Function β€” Get/Set the anchor, which shows what coordinate system start/end use
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” string
  • Args β€” string

🎯 start

  • Title β€” start
  • Usage β€” my $start=$instance->start;
  • Function β€” Get/Set the position of the instance on the sequence used
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” integer
  • Args β€” integer

πŸͺͺ minstance

  • Title β€” minstance
  • Usage β€” my $minstance=$misntance->score;
  • Function β€” Get/Set the unique identifier β€” sequence id / motif id, like PRM1_TATAbox for example. Not necessarily human readable, so don't come for it. πŸ™ˆ
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” string
  • Args β€” string

πŸ“ relpos

  • Title β€” relpos
  • Usage β€” my $seqpos=$instance->relpos;
  • Function β€” Get/Set the relative position of the instance with respect to the transcription start site (if known). Can be negative β€” and usually is. πŸ“‰
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” integer
  • Args β€” integer

🏷️ annotation

  • Title β€” annotation
  • Usage β€” $ann = $seq->annotation or $seq->annotation($annotation)
  • Function β€” Gets or sets the annotation
  • Returns β€” Bio::AnnotationCollectionI object
  • Args β€” None or Bio::AnnotationCollectionI object

See Bio::AnnotationCollectionI and Bio::Annotation::Collection for more information. πŸ’œ

🦠 species

  • Title β€” species
  • Usage β€” $species = $seq->species() or $seq->species($species)
  • Function β€” Gets or sets the species
  • Returns β€” Bio::Species object
  • Args β€” None or Bio::Species object

See Bio::Species for more information. πŸ’œ

πŸ–ΌοΈ frame

  • Title β€” frame
  • Usage β€” my $frane=$instance->frame;
  • Function β€” Get/Set the frame of a DNA instance with respect to a protein motif used. Returns undef if the motif was not protein or the DB is protein.
  • Throws β€” (nothing listed β€” left blank in the source)
  • Example β€” (nothing listed β€” left blank in the source)
  • Returns β€” integer
  • Args β€” integer (0, 1, 2)

🫢 and that's the whole page, bestie. every flag, every arg, every blank Throws field, all of it. no skips. periodt.

this absolute icon of a page is part of the User Contributed Perl Documentation, and it's sitting at perl v5.32.1, dated 2021-08-15. slay. πŸ’…βœ¨

πŸ“¦ where this page comes from