Bio::EnsEMBL::Mapper
Unit
Toolbar
Summary
Bio::EnsEMBL::Mapper::Unit - One side of a map pair
Package variables
No package variables defined.
Synopsis
Description
Two regions mapped between different coordinate systems are each
represented by a Bio::EnsEMBL::Mapper::Unit and joined together as a
Bio::EnsEMBL::Mapper::Pair.
Methods
Methods description
Arg 1 int $end the end coordinate of the mapped region which this object represents Function accessor method Returntype int Exceptions none Caller Bio::EnsEMBL::Mapper::Unit Status Stable |
Arg 1 int|char $id the id of the object (e.g. seq_region_name) which is mapped Function accessor method Returntype int|char Exceptions none Caller Bio::EnsEMBL::Mapper::Unit Status Stable |
Arg 1 int $start the start coordinate of the mapped region which this object represents Function accessor method Returntype int Exceptions none Caller Bio::EnsEMBL::Mapper::Unit Status Stable |
Methods code
sub end
{ my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'end'} = $value;
}
return $self->{'end'};
}
1; } |
sub id
{ my ( $self, $value ) = @_;
if ( defined($value) ) {
$self->{'id'} = $value;
}
return $self->{'id'}; } |
sub new
{ my ( $proto, $id, $start, $end ) = @_;
my $class = ref($proto) || $proto;
return
bless( { 'id' => $id, '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