module EnsemblREST::Taxonomy

Public Instance Methods

classification(id, options = {}) click to toggle source

Return the taxonomic classification of a taxon node

@param [String] id A taxon identifier. Can be a NCBI taxon id or a name @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/taxonomy_classification @return [JSON] the taxonomic classification

# File lib/ensemblrest/ontoandtaxo.rb, line 73
def classification(id, options = {})
        return EnsemblREST.get("taxonomy/classification/#{id}", {format: 'json'}.merge(options))
end
id(id, options = {}) click to toggle source

Search for a taxonomic term by its identifier or name

@param [String] id A taxon identifier. Can be a NCBI taxon id or a name @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/taxonomy_id @return [JSON] the taxonomic classification

# File lib/ensemblrest/ontoandtaxo.rb, line 82
def id(id, options = {})
        return EnsemblREST.get("taxonomy/id/#{id}", {format: 'json'}.merge(options))
end
name(name, options = {}) click to toggle source

Search for a taxonomic id by a non-scientific name

@param [String] name A non-scientific species name. Can include SQL wildcards @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/taxonomy_name @return [JSON] the taxonomic classification

# File lib/ensemblrest/ontoandtaxo.rb, line 91
def name(name, options = {})
        return EnsemblREST.get("taxonomy/name/#{URI.escape(name)}", {format: 'json'}.merge(options))
end