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
34 a group of miscellaneuos features.
41 1234, $adaptor,
'tilepath',
42 'Assembly Tiling Path',
43 'The tiling path of clones', 1e6
46 my $misc_feature->add_set($misc_set);
50 MiscSets represent classsifications or groupings of MiscFeatures.
51 Features are classified into sets essentially to define what they are
52 and how they may be used. Generally MiscFeatures are retrieved on
56 Note that MiscSets and MiscFeatures were formerly known as MapSets and
63 package Bio::EnsEMBL::MiscSet;
77 Arg [1] :
int $misc_set_id
78 The
internal identifier
for this misc set
79 Arg [2] :
string $code
80 The unique code which identifies
this set type
81 Arg [3] :
string $name
82 The human readable name of
this set
83 Arg [4] :
string $desc
84 The description of
this set
85 Arg [5] :
int $max_len
86 The maximum length of features of
this mapset
88 'Assembly Tiling Path',
89 'The tiling path of clones',
94 Caller : MiscFeatureAdaptor
102 my $class = ref($caller) || $caller;
104 my $self = $class->SUPER::new(@_);
106 my($code, $name, $desc, $max_len) =
107 rearrange([qw(CODE NAME DESCRIPTION LONGEST_FEATURE)], @_);
109 $self->{
'code'} = $code;
110 $self->{
'name'} = $name;
111 $self->{
'description'} = $desc;
112 $self->{
'longest_feature'} = $max_len;
119 Arg [1] :
string $newval (optional)
120 The
new value to set the code attribute to
121 Example : $code = $obj->code()
122 Description: Getter/Setter
for the code attribute
132 $self->{
'code'} = shift
if(@_);
133 return $self->{
'code'};
139 Arg [1] :
string $newval (optional)
140 The
new value to set the code attribute to
141 Example : $name = $obj->name()
142 Description: Getter/Setter
for the name attribute
152 $self->{
'name'} = shift
if(@_);
153 return $self->{
'name'};
159 Arg [1] :
string $newval (optional)
160 The
new value to set the description attribute to
161 Example : $description = $obj->description()
162 Description: Getter/Setter
for the description attribute
172 $self->{
'description'} = shift
if(@_);
173 return $self->{
'description'};
177 =head2 longest_feature
179 Arg [1] :
int $newval (optional)
180 The
new value to set the longest_feature attribute to
181 Example : $longest_feature = $obj->longest_feature()
182 Description: Getter/Setter
for the longest_feature attribute
192 $self->{
'longest_feature'} = shift
if(@_);
193 return $self->{
'longest_feature'};