4 Bio::Matrix::PSM::InstanceSiteI - InstanceSite interface, holds an instance of a PSM
8 use Bio::Matrix::PSM::InstanceSite;
9 #Y ou can get an InstanceSite object either from a file:
10 my ($instances,$matrix)=$SomePSMFile->parse_next;
12 my %params=(seq => 'TATAAT',
14 accession => 'ENSG00000122304',
16 desc => 'TATA box, experimentally verified in PRM1 gene',
21 Abstract interface to PSM site occurrence (PSM sequence
22 match). InstanceSite objects may be used to describe a PSM (See
23 Bio::Matrix::PSM::SiteMatrix) sequence matches. The usual
24 characteristic of such a match is sequence coordinates, score,
25 sequence and sequence (gene) identifier- accession number or other
26 id. This object inherits from Bio::LocatableSeq (which defines the
27 real sequence) and might hold a SiteMatrix object, used to detect the
28 CRE (cis-regulatory element), or created from this CRE. While the
29 documentation states that the motif id and gene id (accession)
30 combination should be unique, this is not entirely true- there might
31 be more than one occurrence of the same cis-regulatory element in the
32 upstream region of the same gene. Therefore relpos would be the third
33 element to create a really unique combination.
39 User feedback is an integral part of the evolution of this and other
40 Bioperl modules. Send your comments and suggestions preferably to one
41 of the Bioperl mailing lists. Your participation is much appreciated.
43 bioperl-l@bioperl.org - General discussion
44 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
48 Please direct usage questions or support issues to the mailing list:
50 I<bioperl-l@bioperl.org>
52 rather than to the module maintainer directly. Many experienced and
53 reponsive experts will be able look at the problem and quickly
54 address it. Please include a thorough description of the problem
55 with code and data examples if at all possible.
59 Report bugs to the Bioperl bug tracking system to help us keep track
60 the bugs and their resolution. Bug reports can be submitted via the
63 https://github.com/bioperl/bioperl-live/issues
65 =head1 AUTHOR - Stefan Kirov
71 L<Bio::Matrix::PSM::SiteMatrix>, L<Bio::Matrix::PSM::Psm>, L<Bio::Matrix::PSM::IO>
78 # Let the code begin...
79 package Bio
::Matrix
::PSM
::InstanceSiteI
;
82 use base
qw(Bio::Root::RootI);
87 Usage : my $mid=$instance->mid;
88 Function: Get/Set the motif id
98 $self->throw_not_implemented();
104 Usage : my $score=$instance->score;
105 Function: Get/Set the score (mismatches) between the instance and the attached (or
108 Returns : real number
115 $self->throw_not_implemented();
121 Usage : my $start=$instance->start;
122 Function: Get/Set the position of the instance on the sequence used
131 $self->throw_not_implemented();
137 Usage : my $seqpos=$instance->relpos;
138 Function: Get/Set the relative position of the instance with respect to the transcription start
139 site (if known). Can and usually is negative.
148 $self->throw_not_implemented();
155 Usage : my $minstance=$misntance->score;
156 Function: Get/Set the unique identifier- sequence id/motif id, for example PRM1_TATAbox.
157 Not necessarily human readable.
166 $self->throw_not_implemented();