Bio::EnsEMBL::Mapper
Gap
Toolbar
Summary
Bio::EnsEMBL::Mapper::Gap
Package variables
No package variables defined.
Synopsis
Description
Representation of a gap in a sequence; returned from Mapper.pm when the
target region is in a gap.
Methods
Methods description
Arg [1] : (optional) int $newval The new value to set the end coordinate to Example : $end = $gap->end() Description: Getter/Setter for the end coordinate of the gap region Returntype : string Exceptions : none Caller : general Status : Stable |
Arg [1] : none Example : $len = $gap->length(); Description: Getter for the length of this gap region Returntype : int Exceptions : none Caller : general Status : Stable |
Arg [1] : int $start Arg [2] : int $end Example : $gap = Bio::EnsEMBL::Mapper::Gap($start, $end); Description: Creates a new Gap object. Returntype : Bio::EnsEMBL::Mapper::Gap Exceptions : none Caller : Bio::EnsEMBL::Mapper Status : Stable |
Arg [1] : (optional) int $start start coordinate of gap region Example : $start = $gap->start(); Description: Getter/Setter for the start attribute Returntype : int Exceptions : none Caller : general Status : Stable |
Methods code
sub end
{ my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'end'} = $value;
}
return $self->{'end'}; } |
sub length
{ my ($self) = @_;
return $self->{'end'} - $self->{'start'} + 1;
}
1; } |
sub new
{ my ( $proto, $start, $end ) = @_;
my $class = ref($proto) || $proto;
return bless( { 'start' => $start, 'end' => $end }, $class ); } |
sub start
{ my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'start'} = $value;
}
return $self->{'start'}; } |
General documentation
Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license.
For license details, please see
/info/about/code_licence.html