bc_get_efo_id_by_disease_name
Retrieve EFO/Mondo/HP IDs for a specified disease name using the Ontology Lookup Service (OLS). Ideal for linking disease names to IDs for API integration, such as Open Targets.
Instructions
Query the Ontology Lookup Service (OLS) for EFO/Mondo/HP IDs related to a disease name.
This function searches for EFO IDs associated with a given disease name using the OLS API. Always use this function if you need EFO IDs, e.g., for use in the Open Targets API.
Args: disease_name (str): The name of the disease to search for (e.g., "SIDS"). size (int): Maximum number of results to return (default: 5). exact_match (bool): Whether to perform an exact match search (default: False).
Returns: dict: Dictionary containing EFO IDs and information or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
disease_name | Yes | The name of the disease to search for (e.g., 'choledocholithiasis') | |
exact_match | No | Whether to perform an exact match search | |
size | No | The maximum number of results to return |