Bio::EnsEMBL::Mapper Gap
SummaryPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
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
endDescriptionCode
lengthDescriptionCode
newDescriptionCode
startDescriptionCode
Methods description
endcode    nextTop
  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
lengthcodeprevnextTop
  Arg [1]    : none
Example : $len = $gap->length();
Description: Getter for the length of this gap region
Returntype : int
Exceptions : none
Caller : general
Status : Stable
newcodeprevnextTop
  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
startcodeprevnextTop
  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
enddescriptionprevnextTop
sub end {
  my ( $self, $value ) = @_;

  if ( defined($value) ) {
    $self->{'end'} = $value;
  }

  return $self->{'end'};
}
lengthdescriptionprevnextTop
sub length {
  my ($self) = @_;

  return $self->{'end'} - $self->{'start'} + 1;
}

1;
}
newdescriptionprevnextTop
sub new {
  my ( $proto, $start, $end ) = @_;

  my $class = ref($proto) || $proto;

  return bless( { 'start' => $start, 'end' => $end }, $class );
}
startdescriptionprevnextTop
sub start {
  my ( $self, $value ) = @_;

  if ( defined($value) ) {
    $self->{'start'} = $value;
  }

  return $self->{'start'};
}
General documentation
LICENSETop
  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
CONTACTTop
  Please email comments or questions to the public Ensembl
developers list at <ensembl-dev@ebi.ac.uk>.
Questions may also be sent to the Ensembl help desk at <helpdesk@ensembl.org>.