Module: EnsemblREST::Taxonomy
- Defined in:
- lib/ensemblrest/ontoandtaxo.rb
Class Method Summary collapse
-
.classification(id, options = {}) ⇒ JSON
Return the taxonomic classification of a taxon node.
-
.id(id, options = {}) ⇒ JSON
Search for a taxonomic term by its identifier or name.
-
.name(name, options = {}) ⇒ JSON
Search for a taxonomic id by a non-scientific name.
Class Method Details
.classification(id, options = {}) ⇒ JSON
Return the taxonomic classification of a taxon node
73 74 75 |
# File 'lib/ensemblrest/ontoandtaxo.rb', line 73 def classification(id, = {}) return EnsemblREST.get("taxonomy/classification/#{id}", {format: 'json'}.merge()) end |
.id(id, options = {}) ⇒ JSON
Search for a taxonomic term by its identifier or name
82 83 84 |
# File 'lib/ensemblrest/ontoandtaxo.rb', line 82 def id(id, = {}) return EnsemblREST.get("taxonomy/id/#{id}", {format: 'json'}.merge()) end |
.name(name, options = {}) ⇒ JSON
Search for a taxonomic id by a non-scientific name
91 92 93 |
# File 'lib/ensemblrest/ontoandtaxo.rb', line 91 def name(name, = {}) return EnsemblREST.get("taxonomy/name/#{URI.escape(name)}", {format: 'json'}.merge()) end |