Agent skill · research science · google-deepmind

opentargets-database

Query Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeutic target identification.

Why this skill is useful

Provides a Python script that automates querying the Open Targets Platform API, handling retries and formatting, which the AI wouldn't generate on its own.

What it needs

Requires uv installed locally. Requires opentargets account access. About 5k tokens when loaded. Last updated 2026-07-07. 2,648 stars on the source repository.

What this skill does

Open Targets Database Skill Overview This skill provides access to the Open Targets Platform GraphQL API. It aggregates multi-modal evidence from genetics (GWAS/eQTL), pathways, animal models, and clinical trials to rank target-disease associations and identify druggable genes. Prerequisites 1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. 2. User Notification: If .licenses/opentargetsdatabaseLICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://platform-docs.opentargets.org/licence, then (2) create the file recording the notification text and timestamp. Core Rules Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly. The scripts automatically enforce fair use and implement retry logic. Output Flag: The --output flag is always required as output can be very large. Use jq or write your own code to process this JSON file. Notification: If this skill is used, ensure this is mentioned in the output. Quick Reference Always use the provided Python script scripts/queryopentargets.py to quickly query the database. It handles API communication, retries, formatting, and automatically truncates overly large responses. NEVER write your own curl or similar requests. Usage: Common Options: --output PATH: Required. Path to write the JSON output file. --limit N: Limit the number of items returned in arrays (default is 50). Use a smaller number like 10 when doing preliminary exploration. --page-size N: Set the API pagination size (default is 200). Increase if you need more results (e.g., a study with many credible sets). Available Commands: get-gwas-studies diseaseid: Fetches all GWAS studies associated with a specific disease ID (e.g. MONDO0008383 for Rheumatoid Arthritis). get-study-credible-sets studyid: Fetches all credible sets for a given study ID (e.g. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills google-deepmind/opentargets_database

View the source on GitHub

Browse the @skills marketplace