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 Representation of a mapped region in a sequence; returned from
Mapper.pm
40 when the target region maps on to valid sequence.
46 package Bio::EnsEMBL::Mapper::Coordinate;
52 Arg [1]
char|
int id of
object in mapped region
53 Arg [2]
int start of region
54 Arg [3]
int end of region
55 Arg [4]
int strand
if region
65 my ( $proto, $id, $start, $end, $strand, $coord_system, $rank ) = @_;
67 my $class = ref($proto) || $proto;
74 'coord_system' => $coord_system,
84 start coordinate of
object in mapped region
85 Function getter/setter method
94 my ( $self, $value ) = @_;
96 if ( defined($value) ) {
97 $self->{
'start'} = $value;
100 return $self->{
'start'};
107 end coordinate of
object in mapped region
108 Function getter/setter method
117 my ( $self, $value ) = @_;
119 if ( defined($value) ) {
120 $self->{
'end'} = $value;
123 return $self->{
'end'};
129 strand of
object in mapped region
130 Function getter/setter method
139 my ( $self, $value ) = @_;
141 if ( defined($value) ) {
142 $self->{
'strand'} = $value;
145 return $self->{
'strand'};
151 id of
object in mapped region
153 Function getter/setter method
162 my ( $self, $value ) = @_;
164 if ( defined($value) ) {
165 $self->{
'id'} = $value;
168 return $self->{
'id'};
174 name of
object in mapped region
176 Function getter/setter method
185 my ( $self, $value ) = @_;
187 if ( defined($value) ) {
188 $self->{
'name'} = $value;
191 return $self->{
'name'};
197 Function getter/setter method
206 my ( $self, $value ) = @_;
208 if ( defined($value) ) {
209 $self->{
'coord_system'} = $value;
212 return $self->{
'coord_system'};
217 Function getter method
228 return $self->{
'end'} - $self->{
'start'} + 1;
232 my ( $self, $value ) = @_;
234 if ( defined($value) ) {
235 $self->{
'rank'} = $value;
238 return $self->{
'rank'};