Bio::EnsEMBL::ExternalData::Family Taxon
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Taxon - DESCRIPTION of Object
Package variables
No package variables defined.
Included modules
Bio::Species
Inherit
Bio::Species
Synopsis
Description
Methods
adaptorDescriptionCode
dbIDDescriptionCode
ncbi_taxidDescriptionCode
taxon_idDescriptionCode
Methods description
adaptorcode    nextTop
 Title   : adaptor
Usage :
Function: give the adaptor if known
Example :
Returns :
Args :
dbIDcodeprevnextTop
 Title   : dbID
Usage :
Function: get/set the dbID (taxon_id) of the taxon
Example :
Returns :
Args :
ncbi_taxidcodeprevnextTop
 Title   : ncbi_taxid
Usage :
Function: get/set the ncbi_taxid of the taxon
Example :
Returns : An integer
Args :
taxon_idcodeprevnextTop
 Title   : taxon_id
Usage :
Function: get/set the taxon_id of the taxon
Example :
Returns : An integer
Args :
Methods code
adaptordescriptionprevnextTop
sub adaptor {
   my ($self, $value) = @_;

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

   return $self->{'_adaptor'};
}
dbIDdescriptionprevnextTop
sub dbID {
  my ($self,$value) = @_;

  return $self->taxon_id($value);
}
ncbi_taxiddescriptionprevnextTop
sub ncbi_taxid {
  my ($self,$value) = @_;
  
  # tricks for bioperl-07/bioperl-1-0-0 compliancy
bless $self, "Bio::Species"; if ($self->can("ncbi_taxid")) { # when using bioperl-1-0-0 and later
if (defined $value) { $self->ncbi_taxid($value); $self->{'_ncbi_taxid'} = $self->ncbi_taxid; } } else { # when using bioperl-07
if (defined $value) { $self->{'_ncbi_taxid'} = $value; } } bless $self, "Bio::EnsEMBL::ExternalData::Family::Taxon"; return $self->{'_ncbi_taxid'}; } 1;
}
taxon_iddescriptionprevnextTop
sub taxon_id {
  my ($self,$value) = @_;
  
  $self->warn("Taxon->taxon_id is a deprecated method!
Calling Taxon->ncbi_taxid instead!");

  if (defined $value) {
    return $self->ncbi_taxid($value);
  }

  return $self->ncbi_taxid;
}
General documentation
CONTACTTop
 Abel Ureta-Vidal <abel@ebi.ac.uk>
APPENDIXTop
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _