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 indel in a sequence; returned from
Mapper.pm when
40 the target region is in a deletion.
46 package Bio::EnsEMBL::Mapper::IndelCoordinate;
70 my ( $proto, $gap, $coordinate ) = @_;
72 my $class = ref($proto) || $proto;
75 bless( {
'start' => $coordinate->start(),
76 'end' => $coordinate->end(),
77 'strand' => $coordinate->strand(),
78 'id' => $coordinate->id(),
79 'coord_system' => $coordinate->coord_system(),
80 'gap_start' => $gap->start(),
81 'gap_end' => $gap->end()
88 Arg[1] : (optional)
int $gap_start
89 Example : $gap_start = $ic->gap_start()
90 Description : Getter/Setter
for the start of the
Gap region
98 my ( $self, $value ) = @_;
100 if ( defined($value) ) {
101 $self->{
'gap_start'} = $value;
104 return $self->{
'gap_start'};
109 Arg[1] : (optional)
int $gap_end
110 Example : $gap_end = $ic->gap_end()
111 Description : Getter/Setter
for the end of the Gap region
119 my ( $self, $value ) = @_;
121 if ( defined($value) ) {
122 $self->{
'gap_end'} = $value;
125 return $self->{
'gap_end'};
131 Example : $gap_length = $ic->gap_length()
132 Description : Getter
for the length of the Gap region
142 return $self->{
'gap_end'} - $self->{
'gap_start'} + 1;