module EnsemblREST::Taxonomy
Public Instance Methods
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
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
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