Bio::EnsEMBL::Mapper IndelCoordinate
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::Mapper::IndelCoordinate
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Mapper::Coordinate
Bio::EnsEMBL::Mapper::Gap
Inherit
Bio::EnsEMBL::Mapper::Coordinate Bio::EnsEMBL::Mapper::Gap
Synopsis
Description
Representation of a indel in a sequence; returned from Mapper.pm when
the target region is in a deletion.
Methods
gap_endDescriptionCode
gap_lengthDescriptionCode
gap_startDescriptionCode
newDescriptionCode
Methods description
gap_endcode    nextTop
  Arg[1]      : (optional) int $gap_end
Example : $gap_end = $ic->gap_end()
Description : Getter/Setter for the end of the Gap region
ReturnType : int
Exceptions : none
Caller : general
gap_lengthcodeprevnextTop
  Args        : None
Example : $gap_length = $ic->gap_length()
Description : Getter for the length of the Gap region
ReturnType : int
Exceptions : none
Caller : general
gap_startcodeprevnextTop
  Arg[1]      : (optional) int $gap_start
Example : $gap_start = $ic->gap_start()
Description : Getter/Setter for the start of the Gap region
ReturnType : int
Exceptions : none
Caller : general
newcodeprevnextTop
  Arg [1]    : Bio::EnsEMBL::Mapper::Gap $gap
Arg [2] : Bio::EnsEMBL::Mapper::Coordinate $coordinate
Example : $indelCoord = Bio::EnsEMBL::Mapper::IndelCoordinate($gap, $coordinate);
Description: Creates a new IndelCoordinate object.
Returntype : Bio::EnsEMBL::Mapper::IndelCoordinate
Exceptions : none
Caller : Bio::EnsEMBL::Mapper
Methods code
gap_enddescriptionprevnextTop
sub gap_end {
  my ( $self, $value ) = @_;

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

  return $self->{'gap_end'};
}
gap_lengthdescriptionprevnextTop
sub gap_length {
  my ($self) = @_;

  return $self->{'gap_end'} - $self->{'gap_start'} + 1;
}

1;
}
gap_startdescriptionprevnextTop
sub gap_start {
  my ( $self, $value ) = @_;

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

  return $self->{'gap_start'};
}
newdescriptionprevnextTop
sub new {
  my ( $proto, $gap, $coordinate ) = @_;

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

  return
    bless( { 'start'        => $coordinate->start(),
             'end'          => $coordinate->end(),
             'strand'       => $coordinate->strand(),
             'id'           => $coordinate->id(),
             'coord_system' => $coordinate->coord_system(),
             'gap_start'    => $gap->start(),
             'gap_end'      => $gap->end()
           },
           $class );
}
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>.