Bio::EnsEMBL::Map MapLocation
SummaryPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::Map::MapLocation
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Exception qw ( deprecate )
Synopsis
Description
Represents a location on a genetic map, yac map, radition hybrid map,
etc.
Methods
chromosomeDescriptionCode
chromosome_nameDescriptionCode
lod_scoreDescriptionCode
map_nameDescriptionCode
nameDescriptionCode
newDescriptionCode
positionDescriptionCode
Methods description
chromosomecode    nextTop
  Description: DEPRECATED use chromosome_name() instead
chromosome_namecodeprevnextTop
  Arg [1]    : (optional) string $chromosome_name
Example : $chr_name = $map_location->chromosome_name;
$map_location->chromosome_name('X');
Description: The name of the chromosome associated with this map location
Returntype : string
Exceptions : none
Caller : general
Status : stable
lod_scorecodeprevnextTop
  Arg [1]    : (optional) float $lod
Example : $lod = $map_location->lod_score;
Description: Getter/Setter for lod score of this map location
Returntype : float
Exceptions : none
Caller : general
Status : stable
map_namecodeprevnextTop
  Arg [1]    : string $map_name
Example : $map_name = $map_location->map_name;
Description: Getter/Setter for the map name
Returntype : string
Exceptions : none
Caller : general
Status : stable
namecodeprevnextTop
  Arg [1]    : (optional) string $name
Example : $name = $map_location->name;
Description: A name associated with the marker at this position. For
example if this is a genethon map location the name will be
the synonym of source genethon.
Returntype : string
Exceptions : none
Caller : general
Status : stable
newcodeprevnextTop
  Arg [1]    : (optional) string $name
Arg [2] : (optional) string $map_name
Arg [3] : (optional) string $chromosome_name
Arg [4] : (optional) string $position
Arg [5] : (optional) float $lod_score
Example : $map_location = Bio::EnsEMBL::Map::MapLocation('DS1234',
'genethon',
'X',
'12.39',
50.12);
Description: Creates a new MapLocation
Returntype : Bio::EnsEMBL::Map::MapLocation
Exceptions : none
Caller : general
Status : stable
positioncodeprevnextTop
  Arg [1]    : (optional) string $position
Example : $pos = $map_location->position;
Description: Getter/Setter for the position of this map location
Returntype : string
Exceptions : none
Caller : general
Status : stable
Methods code
chromosomedescriptionprevnextTop
sub chromosome {
  my $self = shift;
  deprecate('use chromosome_name instead');

  if(@_) {
    my $chr = shift;
    if(ref($chr)) {
      $self->chromosome_name($chr->seq_region_name());
    } else {
      $self->chromosome_name($chr);
    }
  }

  #this object has no way to talk to db and thus no way to
#get a chromosome object
return $self->chromosome_name(); } 1;
}
chromosome_namedescriptionprevnextTop
sub chromosome_name {
  my $self = shift;
  $self->{'chromosome_name'} = shift if(@_);
  return $self->{'chromosome_name'};
}
lod_scoredescriptionprevnextTop
sub lod_score {
  my $self = shift;
  $self->{'lod_score'} = shift if(@_);
  return $self->{'lod_score'};
}
map_namedescriptionprevnextTop
sub map_name {
  my $self = shift;
  $self->{'map_name'} = shift if(@_);
  return $self->{'map_name'};
}
namedescriptionprevnextTop
sub name {
  my $self = shift;
  $self->{'name'} = shift if(@_);
  return $self->{'name'};
}
newdescriptionprevnextTop
sub new {
  my ($caller, $name, $map_name, $chromosome_name, $position, $lod_score) = @_;

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

  return bless( {'map_name'        => $map_name,
                 'name'            => $name,
                 'chromosome_name' => $chromosome_name,
                 'position'        => $position,
                 'lod_score'       => $lod_score}, $class );
}
positiondescriptionprevnextTop
sub position {
  my $self = shift;
  $self->{'position'} = shift if(@_);
  return $self->{'position'};
}
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>.