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 Two regions mapped between different coordinate systems are each
48 package Bio::EnsEMBL::Mapper::Unit;
53 my ( $proto, $id, $start, $end ) = @_;
55 my $class = ref($proto) || $proto;
58 bless( {
'id' => $id,
'start' => $start,
'end' => $end }, $class );
64 the
id of the object (e.g. seq_region_name) which is mapped
65 Function accessor method
74 my ( $self, $value ) = @_;
76 if ( defined($value) ) {
77 $self->{
'id'} = $value;
86 the start coordinate of the mapped
87 region which
this object represents
88 Function accessor method
97 my ( $self, $value ) = @_;
99 if ( defined($value) ) {
100 $self->{
'start'} = $value;
103 return $self->{
'start'};
109 the end coordinate of the mapped
110 region which
this object represents
111 Function accessor method
120 my ( $self, $value ) = @_;
122 if ( defined($value) ) {
123 $self->{
'end'} = $value;
126 return $self->{
'end'};