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
37 This
object isn
't instantiated. See objects which inherit from it
38 (TinyGene, TinyTranscript, etc.) for examples.
42 This is the base class for the lightweight feature objects used by the
43 stable Id maping application. For performance reasons, these objects
44 are instantiated using a new_fast() method. The internal implementation
45 is an arrayref (rather than the more common hashref), which optimises
48 There are no adaptors to fetch TinyFeatures from the database. You
49 rather use the normal feature adaptors and then create the TinyFeatures
50 from the heavy objects you get. The memory saving will therefore mainly
51 take effect when serialising and reloading these objects.
53 Also note that TinyFeatures don't have a slice attached to them - all
54 location information (where required) is stored on the feature
object
69 package Bio::EnsEMBL::IdMapping::TinyFeature;
71 # internal data structure (array indices):
79 # other instance variables differ by subclass implementation, so look there.
84 no warnings
'uninitialized';
91 Arg[1] : Arrayref $array_ref - the arrayref to bless into the
new object
92 Description : Constructor.
103 my $array_ref = shift;
104 return bless $array_ref, $class;
110 Arg[1] : (optional) Int - the feature
's internal Id ("dbID")
111 Description : Getter/setter for the feature's
internal Id.
122 $self->[0] = shift if (@_);
129 Arg[1] : (optional) String - the feature
's stable Id
130 Description : Getter/setter for the feature's stable Id.
141 $self->[1] = shift if (@_);
148 Arg[1] : (optional) Int - the feature
's stable Id version
149 Description : Getter/setter for the feature's stable Id version.
160 $self->[2] = shift if (@_);
167 Arg[1] : (optional) String - the feature
's stable Id creation date
168 Description : Getter/setter for the feature's stable Id creation date.
179 $self->[3] = shift if (@_);
186 Arg[1] : (optional) String - the feature
's stable Id modification date
187 Description : Getter/setter for the feature's stable Id modification date.
198 $self->[4] = shift if (@_);
205 Example : print LOG
"Created ", $f->to_string,
"\n";
206 Description : Prints a
string representation of the feature
for debug
218 return $self->id.
':'.$self->stable_id.
'.'.$self->version;