3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
23 Please email comments or questions to the
public Ensembl
24 developers list at <http:
26 Questions may also be sent to the Ensembl help desk at
31 package Bio::EnsEMBL::RepeatConsensus;
44 Arg [NAME] : string (optional)
45 The name of
this repeat consensus
46 Arg [LENGTH]: int (optional)
47 The length of the repeat consensus sequence
48 Arg [REPEAT_CLASS]: string (optional)
49 The type of repeat consensus
50 Arg [REPEAT_CONSENSUS]: string (optional)
51 The sequence of
this repeat consensus
52 Arg [REPEAT_TYPE]:
string
53 Its like
class only more general
54 Arg [...]: Named arguments to superclass constructor
55 (see Bio::EnsEMBL::Storable)
57 (-REPEAT_CONSENSUS => 'AATG'
59 -REPEAT_CLASS => 'Simple_repeat',
62 -ADAPTOR => $rc_adaptor);
66 Caller : RepeatFeatureAdaptors
74 my $class = ref($caller) || $caller;
76 my $self = $class->SUPER::new(@_);
78 my ($name, $length, $repeat_class, $repeat_consensus, $repeat_type ) =
79 rearrange([
'NAME',
'LENGTH',
'REPEAT_CLASS',
'REPEAT_CONSENSUS',
'REPEAT_TYPE'], @_);
81 $self->{
'name'} = $name;
82 $self->{
'length'} = $length;
83 $self->{
'repeat_class'} = $repeat_class;
84 $self->{
'repeat_consensus'} = $repeat_consensus;
85 $self->{
'repeat_type'} = $repeat_type;
93 Arg [1] :
string $name (optional)
94 Example : $name = $repeat_consensus->name()
95 Description: Getter/Setter
for the name of
this repeat_consensus
105 $self->{
'name'} = shift
if(@_);
106 return $self->{
'name'};
112 Arg [1] :
int $length (optional)
113 Example : $length = $repeat_consensus->length()
114 Description: Getter/Setter
for the length of
this repeat_consensus
124 $self->{
'length'} = shift
if(@_);
125 return $self->{
'length'};
131 Arg [1] :
string $class (optional)
133 Example : $class = $repeat_consensus->repeat_class()
134 Description: Getter/Setter for the class of this repeat_consensus
144 $self->{
'repeat_class'} = shift
if(@_);
145 return $self->{
'repeat_class'};
150 Arg [1] :
string $type (optional)
151 The type of the consensus
152 Example : $type = $repeat_consensus->repeat_type()
153 Description: Getter/Setter
for the type of
this repeat_consensus
162 $self->{
'repeat_type'} = shift
if(@_);
163 return $self->{
'repeat_type'};
170 Example : $desc = $repeat_consensus->desc()
171 Description: Getter
for the description of
this repeat consensus as extracted
172 from the repeat_class. This method is probably useless.
182 my $class = $self->repeat_class or
return;
183 return "class=$class";
188 =head2 repeat_consensus
190 Arg [1] :
string $consensus_seq (optional)
191 The sequence of
this repeat consensus
192 Example : $consensus = $repeat_consensus->repeat_consensus();
193 Description: Getter/Setter
for the sequence of
this repeat_consensus.
200 sub repeat_consensus {
202 $self->{
'repeat_consensus'} = shift
if(@_);
203 return $self->{
'repeat_consensus'};
212 Description: Returns the repeat consensus. This method is useless - Use
213 repeat_consensus() instead.
223 return $self->repeat_consensus;
234 This
object represents an entry in the
235 repeat_consensus table.
237 It can contain the consensus sequence
for a
238 repeat such as a particular Alu, or
"cag" for a
239 simple triplet repeat.