module EnsemblREST::Ontology

Public Instance Methods

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

Reconstruct the entire ancestry of a term from is_a and part_of relationships

@param [String] id An ontology term identifier @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/ontology_ancestors @return [JSON] the entire ancestry of a term

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

Reconstruct the entire ancestry of a term from is_a and part_of relationships.

@param [String] id An ontology term identifier @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/ontology_ancestors_chart @return [JSON] the entire ancestry of a term

# File lib/ensemblrest/ontoandtaxo.rb, line 32
def ancestors_chart(id, options = {})
        return EnsemblREST.get("ontology/ancestors/chart/#{id}", {format: 'json'}.merge(options))
end
descendants(id, options = {}) click to toggle source

Find all the terms descended from a given term. By default searches are conducted within the namespace of the given identifier

@param [String] id An ontology term identifier @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/ontology_descendants @return [JSON] the terms descended from a given term

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

Search for an ontological term by its namespaced identifier

@param [String] name An ontology term identifier @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/ontology_id @return [JSON] an ontological term

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

Search for a list of ontological terms by their name

@param [String] name An ontology name. SQL wildcards are supported @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/ontology_name @return [JSON] a list of ontological terms

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