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
39 Represents a marker feature in the
EnsEMBL database. A marker feature
40 is a marker which has been mapped to the genome by ePCR. Each marker
41 has one marker feature per mapped location.
47 package Bio::EnsEMBL::Map::MarkerFeature;
60 Arg [1] : (optional)
int $dbID
61 Arg [2] : (optional) Bio::EnsEMBL::Adaptor $adaptor
62 Arg [3] : (optional)
int $start
63 Arg [4] : (optional)
int $end
66 Arg [7] : (optional)
int $marker_id
67 Arg [8] : (optional)
int $map_weight
81 my ($caller, $dbID, $adaptor, $start, $end, $slice, $analysis,
82 $marker_id, $map_weight, $marker) = @_;
84 my $class = ref($caller) || $caller;
92 'analysis' => $analysis,
93 'marker_id' => $marker_id,
95 'map_weight' => $map_weight }, $class);
105 Arg [1] : (optional)
int $marker_id
107 Description: PRIVATE Getter/Setter
for the
internal identifier of the marker
108 associated with
this marker feature
120 $self->{
'marker_id'} = shift;
123 return $self->{
'marker_id'};
131 Example : $marker = $marker_feature->marker;
132 Description: Getter/Setter
for the marker associated with
this marker feature
133 If the marker has not been set and the database is available
134 the marker will automatically be retrieved (lazy-loaded).
146 $self->{
'marker'} = shift;
147 } elsif(!$self->{
'marker'} && $self->adaptor && $self->{
'marker_id'}) {
148 #lazy load the marker if it is not already loaded
149 my $ma = $self->
adaptor->
db->get_MarkerAdaptor;
150 $self->{
'marker'} = $ma->fetch_by_dbID($self->{
'marker_id'});
153 return $self->{
'marker'};
160 Arg [1] : (optional)
int $map_weight
161 Example : $map_weight = $marker_feature->map_weight;
162 Description: Getter/Setter
for the
map weight of
this marker. This is the
163 number of times that
this marker has been mapped to the genome.
164 E.g. a marker iwth
map weight 3 has been mapped to 3 locations
177 $self->{
'map_weight'} = shift;
180 return $self->{
'map_weight'};
188 Example : print $mf->display_id();
189 Description: This method returns a
string that is considered to be
190 the
'display' identifier. For marker features
this is the
191 name of the display synonym or
'' if it is not defined.
194 Caller : web drawing code
201 my $marker = $self->{
'marker'};
203 return '' if(!$marker);
204 my $ms = $marker->display_MarkerSynonym();
206 return $ms->name() ||
'';