Bio::EnsEMBL::IdMapping Entry
SummaryPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::IdMapping::Entry - object representing a ScoredMappingMatrix entry
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Exception qw ( throw warning )
Synopsis
Description
This object represents a ScoredMappingMatrix entry. It is defined by a
pair of a source and target object's internal Id and a score for this
mapping.
Methods
newDescriptionCode
new_fastDescriptionCode
scoreDescriptionCode
sourceDescriptionCode
targetDescriptionCode
to_stringDescriptionCode
Methods description
newcode    nextTop
  Example     : my $entry = Bio::EnsEMBL::IdMapping::Entry->new();
Description : Constructor. This is a no-argument constructor, so you need to
populate the object manually. Rarely used since in most cases
new_fast() is preferred.
Return type : a Bio::EnsEMBL::IdMapping::Entry object
Exceptions : none
Caller : general
Status : At Risk
: under development
new_fastcodeprevnextTop
  Arg[1]      : Arrayref $array_ref - the arrayref to bless into the Entry
object
Example : my $entry = Bio::EnsEMBL::IdMapping::Entry->new_fast([
$source_gene->id, $target_gene->id, 0.9]);
Description : Fast constructor.
Return type : a Bio::EnsEMBL::IdMapping::Entry object
Exceptions : none
Caller : general
Status : At Risk
: under development
scorecodeprevnextTop
  Arg[1]      : (optional) Float - a score
Description : Getter/setter for score for the mapping between source and
target object.
Return type : Float
Exceptions : none
Caller : general
Status : At Risk
: under development
sourcecodeprevnextTop
  Arg[1]      : (optional) Int - source object's internal Id
Description : Getter/setter for source object's internal Id.
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
targetcodeprevnextTop
  Arg[1]      : (optional) Int - target object's internal Id
Description : Getter/setter for target object's internal Id.
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
to_stringcodeprevnextTop
  Example     : print LOG $entry->to_string, "\n";
Description : Returns a string representation of the Entry object. Useful for
debugging and logging.
Return type : String
Exceptions : none
Caller : general
Status : At Risk
: under development
Methods code
newdescriptionprevnextTop
sub new {
  my $caller = shift;
  my $class = ref($caller) || $caller;

  my $self = [];
  bless ($self, $class);

  return $self;
}
new_fastdescriptionprevnextTop
sub new_fast {
  my $class = shift;
  my $array_ref = shift;
  return bless $array_ref, $class;
}
scoredescriptionprevnextTop
sub score {
  my $self = shift;
  $self->[2] = shift if (@_);
  return $self->[2];
}
sourcedescriptionprevnextTop
sub source {
  my $self = shift;
  $self->[0] = shift if (@_);
  return $self->[0];
}
targetdescriptionprevnextTop
sub target {
  my $self = shift;
  $self->[1] = shift if (@_);
  return $self->[1];
}
to_stringdescriptionprevnextTop
sub to_string {
  my $self = shift;
  return sprintf('%-10s%-10s%-5.6f', $self->source, $self->target, $self->score);
}


1;
}
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>.