changes all issue tracking in preparation for switch to github issues
[bioperl-live.git] / Bio / Matrix / PSM / InstanceSiteI.pm
blob43d92ceef1fd3423bee5cab4d621596453c95352
2 =head1 NAME
4 Bio::Matrix::PSM::InstanceSiteI - InstanceSite interface, holds an instance of a PSM
6 =head1 SYNOPSIS
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;
11 #or from memory
12 my %params=(seq => 'TATAAT',
13 id => "TATAbox1",
14 accession => 'ENSG00000122304',
15 mid => 'TB1',
16 desc => 'TATA box, experimentally verified in PRM1 gene',
17 relpos => -35);
19 =head1 DESCRIPTION
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.
35 =head1 FEEDBACK
37 =head2 Mailing Lists
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
46 =head2 Support
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.
57 =head2 Reporting Bugs
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
61 web:
63 https://github.com/bioperl/bioperl-live/issues
65 =head1 AUTHOR - Stefan Kirov
67 Email skirov@utk.edu
69 =head1 SEE ALSO
71 L<Bio::Matrix::PSM::SiteMatrix>, L<Bio::Matrix::PSM::Psm>, L<Bio::Matrix::PSM::IO>
73 =head1 APPENDIX
75 =cut
78 # Let the code begin...
79 package Bio::Matrix::PSM::InstanceSiteI;
80 use strict;
82 use base qw(Bio::Root::RootI);
84 =head2 mid
86 Title : mid
87 Usage : my $mid=$instance->mid;
88 Function: Get/Set the motif id
89 Throws :
90 Returns : scalar
91 Args : scalar
94 =cut
96 sub mid {
97 my $self = shift;
98 $self->throw_not_implemented();
101 =head2 score
103 Title : score
104 Usage : my $score=$instance->score;
105 Function: Get/Set the score (mismatches) between the instance and the attached (or
106 initial) PSM
107 Throws :
108 Returns : real number
109 Args : real number
111 =cut
113 sub score {
114 my $self = shift;
115 $self->throw_not_implemented();
118 =head2 start
120 Title : start
121 Usage : my $start=$instance->start;
122 Function: Get/Set the position of the instance on the sequence used
123 Throws :
124 Returns : integer
125 Args : integer
127 =cut
129 sub start {
130 my $self = shift;
131 $self->throw_not_implemented();
134 =head2 relpos
136 Title : relpos
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.
140 Throws :
141 Returns : integer
142 Args : integer
144 =cut
146 sub relpos {
147 my $self = shift;
148 $self->throw_not_implemented();
152 =head2 minstance
154 Title : minstance
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.
158 Throws :
159 Returns : string
160 Args : string
162 =cut
164 sub minstance {
165 my $self = shift;
166 $self->throw_not_implemented();