Bio::M...ceSite(3pm)
π 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::InstanceSiteobject - 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/enduse - 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_TATAboxfor 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::AnnotationCollectionIobject - Args β None or
Bio::AnnotationCollectionIobject
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::Speciesobject - Args β None or
Bio::Speciesobject
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
undefif 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
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms