bc_get_go_terms_by_gene
Retrieve Gene Ontology (GO) terms linked to a specific gene name using the Ontology Lookup Service. Input a gene name to access structured vocabularies and attributes for gene-related research and analysis.
Instructions
Query the Ontology Lookup Service (OLS) for Gene Ontology (GO) terms related to a gene name.
This function searches for GO terms associated with a given gene name using the OLS API. Gene Ontology provides structured vocabularies for gene and gene product attributes.
Args: gene_name (str): The gene name or symbol to search for (e.g., "TP53"). size (int): Maximum number of results to return (default: 10). exact_match (bool): Whether to perform an exact match search (default: False).
Returns: dict: Dictionary containing GO terms and information or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exact_match | No | Whether to perform an exact match search | |
gene_name | Yes | The gene name or symbol to search for (e.g., 'TP53', 'BRCA1') | |
size | No | The maximum number of results to return |