OpenParable
Skip to content
← Back to skills

Open Targets Platform

Research
open-targets-platform

Open Targets Platform is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Query the Open Targets Platform for drug-target-disease associations. Use whenever the user asks about drug targets, gene-disease associations, drug indications, clinical trial phases, or wants to look up any entity (Ensembl gene ID, ChEMBL drug ID, or free-text gene/drug name) in Open Targets. Also trigger when the user mentions Open Targets, ENSG IDs, CHEMBL IDs, or asks about target prioritization for diseases.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/open_targets/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/open-targets-platform, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Open Targets Platform Query Skill

Query the Open Targets GraphQL API for drug, target, and disease association data. No API key required.

Entity Auto-Detection

Input PatternDetected AsExample
ENSG00000...Target (Ensembl gene ID)ENSG00000146648 (EGFR)
CHEMBL...Drug (ChEMBL ID)CHEMBL941 (Imatinib)
anything elseFree-text searchBRCA1, aspirin

API

FunctionInputReturns
query(entity)single entity stringdict with type, name, associations
query_batch(entities)list of entity stringslist[dict]
summarize(result)query result dictcompact one-line text
get_target_info(ensembl_id)Ensembl ID stringraw GraphQL response
get_drug_info(chembl_id)ChEMBL ID stringraw GraphQL response
search_entities(term)free-text stringraw GraphQL response

Return Format

Target result:

{"entity": "ENSG00000146648", "type": "target", "found": true,
 "symbol": "EGFR", "name": "epidermal growth factor receptor",
 "biotype": "protein_coding",
 "top_diseases": [{"disease": "lung carcinoma", "score": 0.78}]}

Drug result:

{"entity": "CHEMBL941", "type": "drug", "found": true,
 "name": "IMATINIB", "drug_type": "Small molecule",
 "max_phase": 4,
 "indications": [{"disease": "chronic myeloid leukemia", "phase": 4}]}

Search result:

{"entity": "BRCA1", "type": "search", "found": true,
 "hits": [{"id": "ENSG00000012048", "name": "BRCA1", "entity_type": "target"}]}

Usage

See if __name__ == "__main__" block in 12_Open_Targets_Platform.py for runnable examples covering: single target/drug/search query, batch query, and JSON output.

Source