Bio::EnsEMBL::Compara::DBSQL
TaxonAdaptor
Toolbar
Summary
TaxonAdaptor - DESCRIPTION of Object
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
Description
Methods
Methods description
Title : fetch_by_Family_Member_source Args[0] : Bio::EnsEMBL::Compara::Family object Args[1] : string (member\'s source name) Usage : @taxonArray = @$taxonAdaptor->fetch_by_Family_Member_source($family, 'ENSEMBLGENE'); Function: fetches all the taxon in a family of specified member source Returns : reference to array of Bio::EnsEMBL::Compara::Taxon objects |
Title : fetch_by_dbID Usage : $taxonadaptor->fetch_by_dbID($id); Function: fetches a taxon given its internal database identifier (taxon_id) Example : $taxonadaptor->fetch_by_dbID(1) Returns : a Bio::EnsEMBL::Compara::Taxon object if found, undef otherwise Args : an integer |
Title : fetch_by_taxon_id Usage : $taxonadaptor->fetch_by_taxon_id($id); Function: fetches a taxon given its internal database identifier (taxon_id) Example : $taxonadaptor->fetch_by_taxon_id(1) Returns : a Bio::EnsEMBL::Compara::Taxon object if found, undef otherwise Args : an integer |
Title : store Usage : $memberadaptor->store($member) Function: Stores a taxon object only if it does not exists in the database Example : $memberadaptor->store($member) Returns : $member->dbID Args : An Bio::EnsEMBL::Compara::Taxon object |
Title : store_if_needed_if_needed Usage : $memberadaptor->store($taxon) Function: Stores a taxon object only if it does not exists in the database Example : $memberadaptor->store($member) Returns : $member->dbID Args : An Bio::EnsEMBL::Compara::Taxon object |
Methods code
sub fetch_by_Family_Member_source
{ my ($self, $family, $source_name) = @_;
deprecate("calling Bio::EnsEMBL::Compara::Family::get_all_taxa_by_member_source_name method instead.");
return $family->get_all_taxa_by_member_source_name($source_name); } |
sub fetch_by_dbID
{ my ($self,$taxon_id) = @_;
deprecate("calling Bio::EnsEMBL::Compara::NCBITaxonAdaptor::fetch_node_by_taxon_id method instead.");
my $ncbi_ta = $self->db->get_NCBITaxonAdaptor;
return $ncbi_ta->fetch_node_by_taxon_id($taxon_id); } |
sub fetch_by_taxon_id
{ my ($self,$taxon_id) = @_;
deprecate("calling Bio::EnsEMBL::Compara::NCBITaxonAdaptor::fetch_node_by_taxon_id method instead.");
my $ncbi_ta = $self->db->get_NCBITaxonAdaptor;
return $ncbi_ta->fetch_node_by_taxon_id($taxon_id); } |
sub store
{ my ($self,$taxon) = @_;
deprecate("Bio::EnsEMBL::Compara::NCBITaxonAdaptor is now the new adaptor.
It does not have store method subroutine. The taxonomy data is imported from NCBI Taxonomy database.
Please read ensembl-compara/scripts/taxonomy/README-taxonomy for more information.");
return undef; } |
sub store_if_needed
{ my ($self,$taxon) = @_;
deprecate("calling store method instead.");
return $self->store($taxon);
}
1; } |
General documentation