tooluniverse.gene_ontology_tool module

class tooluniverse.gene_ontology_tool.GeneOntologyTool[source]

Bases: BaseTool

A general-purpose tool for calling the Gene Ontology (GO) API. It is configured via a dictionary that defines the specific API endpoint.

__init__(tool_config)[source]

Initializes the tool with a configuration.

Parameters:

tool_config (Dict) – A dictionary containing ‘fields’ with an ‘endpoint’.

run(arguments=None)[source]

Executes the API call and returns the data.

Parameters:

arguments (Dict[str, Any]) – Parameters for the API call.

Returns:

The JSON data from the API or an error dictionary.

Return type:

Any

search_terms(query)[source]
get_term_details(id)[source]
get_genes_for_term(id, taxon=None, rows=None)[source]
get_terms_for_gene(id)[source]