alphafold_database_fet…
Retrieve and analyze AlphaFold predicted structures for a protein. Use when the user provides…
Query Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeutic target identification.
$ npx -y skills add google-deepmind/science-skills --skill opentargets_database --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/opentargets_databaseContext preview
The summary Claude sees to decide when to auto-load this skill.
Query Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeutic target identification.
name: opentargets-database description: > Query Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeutic target identification.
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.
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure `uv` is installed and on PATH. 2. **User Notification**: If .licenses/opentargets_database_LICENSE.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.
database rather than accessing the database directly. The scripts automatically enforce fair use and implement retry logic.
very large. Use `jq` or write your own code to process this JSON file.
output.
Always use the provided Python script `scripts/query_opentargets.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:**
uv run scripts/query_opentargets.py --output /tmp/opentargets_results.json [OPTIONS] COMMAND [ARGS]...
**Common Options:**
Use a smaller number like 10 when doing preliminary exploration.
you need more results (e.g., a study with many credible sets).
**Available Commands:**
with a specific disease ID (e.g. `MONDO_0008383` for Rheumatoid Arthritis).
given study ID (e.g. `FINNGEN_R12_RX_CROHN_2NDLINE`). Returns confidence, finemapping method, variant, and p-value info.
a specific variant ID (e.g. `19_44908822_C_T`).
predictions/scores for a locus to identify the most likely causal gene. Only `variant_id` is required; use `--study-id` to filter to a specific study. Accepts `chr` prefix (e.g. `chr1_113834946_A_G`).
(small molecule, antibody, etc.) and clinical trial safety info for a gene/target.
associated with a specific disease ID (EFO or MONDO).
and clinical candidates associated with a disease. Use `--min-stage` to filter (e.g., `PHASE_3` for Phase III or Approved).
with a specific target Ensembl ID.
its ID and other metadata.
credible sets for a target and filters them to those within a genomic window around the target. Useful for finding variants "nearby" a gene.
any other Open Targets data.
The `get-l2g` command has two modes:
**all credible sets across all studies** where that variant is the lead variant. This can return a large number of results (e.g., hundreds). Use this when the user wants a broad view of which gene is most likely causal at a locus, or when no specific study is mentioned.
L2G predictions only for credible sets from that specific study. Use this when the user asks about a specific GWAS study or when you need to narrow down the results.
> **Incomplete results warning:** The variant-only mode can return hundreds of > credible sets. The default `--page-size` is 200, so if the API reports a > `count` higher than the number of `rows` returned, **you are seeing incomplete > results**. Always compare `count` to the actual number of rows. If they > differ, either increase `--page-size` or inform the user that only a subset > was retrieved.
To find studies with variants "nearby" a gene, use `get-credible-sets-near-target`, which improves upon the base API by performing a flexible search based on genomic position: `uv run scripts/query_opentargets.py --output /tmp/results.json get-credible-sets-near-target ENSG00000156515 --window 500000`
Note that the Open Targets GraphQL schema includes a `regions` parameter for `credibleSets`, however it performs an exact match against pre-computed region strings (e.g., `chr10:68769984-69903496`) and there is some missing data. Use get-credible-sets-near-target as it allows a genomic range overlap search.
This fetches credible sets associated with the target and filters them in Python based on the variant's genomic position.
A collection of agent skills for scientific research tasks, spanning genomics, structural biology, cheminformatics, literature search, and more.
Retrieve and analyze AlphaFold predicted structures for a protein. Use when the user provides…
Constructs deep-links and URLs for the AlphaGenome Atlas website. Supports generating…
Analyzes genetic variant effects on gene expression (RNA-seq), chromatin accessibility…
Score, annotate, and analyze the functional impact of genetic variants using AlphaGenome…
Query the ChEMBL database for bioactive molecules, drug targets, bioactivity data, approved…
Query ClinicalTrials.gov via APIv2. Use when you want to search for trials by condition,…