Queries the Open Targets Platform GraphQL API for target-disease associations, tractability/safety data, genetics/omics evidence, and known drugs. Use for therapeutic target discovery, prioritization, and drug repurposing.
The Open Targets Platform is a comprehensive resource for systematic identification and prioritization of potential therapeutic drug targets. It integrates publicly available datasets including human genetics, omics, literature, and chemical data to build and score target-disease associations.
Key capabilities:
Data access: The platform provides a GraphQL API, web interface, data downloads, and Google BigQuery access. This skill focuses on the GraphQL API for programmatic access.
This skill should be used when:
| Scenario | Use Instead |
|---|---|
| Raw curated SNP-trait associations or GWAS study metadata | alterlab-gwas |
| Compound bioactivity (IC50/Ki) and assay data | alterlab-chembl |
| Drug pharmacology, interactions, dosing, and label details | alterlab-drugbank |
| Searching trial registrations (status, eligibility, endpoints) | alterlab-clinicaltrials |
| CRISPR/RNAi cancer cell-line dependency scores | alterlab-depmap |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-gwas) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Start by finding the identifiers for targets, diseases, or drugs of interest.
For targets (genes):
from scripts.query_opentargets import search_entities
# Search by gene symbol or name
results = search_entities("BRCA1", entity_types=["target"])
# Returns: [{"id": "ENSG00000012048", "name": "BRCA1", ...}]
For diseases:
# Search by disease name
results = search_entities("alzheimer", entity_types=["disease"])
# Returns: [{"id": "MONDO_0004975", "name": "Alzheimer disease", ...}]
Always resolve the ID via search rather than hardcoding it — Open Targets has
migrated many diseases from EFO to MONDO IDs (e.g. Alzheimer disease is now
MONDO_0004975, not the older EFO_0000249).
For drugs:
# Search by drug name
results = search_entities("aspirin", entity_types=["drug"])
# Returns: [{"id": "CHEMBL25", "name": "ASPIRIN", ...}]
Identifiers used:
ENSG00000157764 = BRAF, ENSG00000012048 = BRCA1)MONDO_0004975 = Alzheimer disease). The disease(efoId:) argument accepts any of these.CHEMBL25 = aspirin)Retrieve comprehensive target annotations to assess druggability and biology.
from scripts.query_opentargets import get_target_info
target_info = get_target_info("ENSG00000157764", include_diseases=True)
# Access key fields:
# - approvedSymbol: HGNC gene symbol
# - approvedName: Full gene name
# - tractability: Druggability assessments across modalities
# - safetyLiabilities: Known safety concerns
# - geneticConstraint: Constraint scores from gnomAD
# - associatedDiseases: Top disease associations with scores
Key annotations to review:
Refer to references/target_annotations.md for detailed information about all target features.
Get disease details and associated targets/drugs.
from scripts.query_opentargets import get_disease_info
disease_info = get_disease_info("MONDO_0004975", include_targets=True)
# Access fields:
# - name: Disease name
# - description: Disease description
# - therapeuticAreas: High-level disease categories
# - associatedTargets: Top targets with association scores
Get detailed evidence supporting a target-disease association.
from scripts.query_opentargets import get_target_disease_evidence
# Get all evidence
evidence = get_target_disease_evidence(
ensembl_id="ENSG00000157764",
efo_id="MONDO_0004975"
)
# The API filters by data SOURCE, not broad data type. To narrow to genetic
# evidence, pass its sources (or fetch all rows and filter on datatypeId).
genetic_evidence = get_target_disease_evidence(
ensembl_id="ENSG00000157764",
efo_id="MONDO_0004975",
datasource_ids=["gwas_catalog", "clinvar", "gene_burden"]
)
# Each evidence record contains:
# - datasourceId: Specific data source (e.g., "gwas_catalog", "chembl")
# - datatypeId: Evidence category (e.g., "genetic_association", "known_drug")
# - score: Evidence strength (0-1)
# - studyId: Original study identifier
# - literature: Associated publications
Major evidence types:
Refer to references/evidence_types.md for detailed descriptions of all evidence types and interpretation guidelines.
Identify drugs used for a disease and their targets.
from scripts.query_opentargets import get_known_drugs_for_disease
drugs = get_known_drugs_for_disease("MONDO_0004975")
# Helper queries the `drugAndClinicalCandidates` field (the former `knownDrugs`
# field was removed). It returns:
# - count: Total number of drug-indication records
# - rows: List of records, each with:
# - maxClinicalStage: Max stage reached for this disease (enum string)
# - drug: {id, name, drugType, maximumClinicalStage, mechanismsOfAction{rows{actionType, mechanismOfAction, targets}}}
# - clinicalReports: [{trialPhase, clinicalStage, trialOverallStatus}]
Clinical stage is an enum string (not an integer):
APPROVAL: Approved drug (the former Phase 4)PHASE_3, PHASE_2_3: Late-stage clinical trialsPHASE_2, PHASE_1_2: Mid-stage trialsPHASE_1, EARLY_PHASE_1: Early safety trialsIND, PRECLINICAL: Pre-clinical / investigational new drugUNKNOWN: Stage not recordedRetrieve detailed drug information including mechanisms and indications.
from scripts.query_opentargets import get_drug_info
drug_info = get_drug_info("CHEMBL25")
# Access:
# - name; synonyms: list of {label, source} objects (since release 26.06)
# - drugType: Small molecule, antibody, etc.
# - maximumClinicalStage: Development stage (enum string, e.g. "APPROVAL")
# - mechanismsOfAction.rows: Target(s) and action type
# - indications.rows: Diseases with maxClinicalStage per indication
# - drugWarnings: Toxicity/withdrawal warnings (toxicityClass, description, country, year)
Find all diseases associated with a target, optionally filtering by score.
from scripts.query_opentargets import get_target_associations
# Get associations with score >= 0.5
associations = get_target_associations(
ensembl_id="ENSG00000157764",
min_score=0.5
)
# Each association contains:
# - disease: {id, name}
# - score: Overall association score (0-1)
# - datatypeScores: Breakdown by evidence type
Association scores:
For custom queries beyond the provided helper functions, use the GraphQL API directly or modify scripts/query_opentargets.py.
Key information:
https://api.platform.opentargets.org/api/v4/graphqlhttps://api.platform.opentargets.org/api/v4/graphql/browserpage: {index: M, size: N} — both index and size are required (non-null)Refer to references/api_reference.md for:
When prioritizing drug targets:
Strong evidence indicators:
Caution flags:
Score interpretation:
Workflow 1: Target Discovery for a Disease
include_targets=TrueWorkflow 2: Target Validation
Workflow 3: Drug Repurposing
Workflow 4: Competitive Intelligence
scripts/query_opentargets.py Helper functions for common API operations:
search_entities() - Search for targets, diseases, or drugsget_target_info() - Retrieve target annotationsget_disease_info() - Retrieve disease informationget_target_disease_evidence() - Get supporting evidenceget_known_drugs_for_disease() - Find drugs for a diseaseget_drug_info() - Retrieve drug detailsget_target_associations() - Get all associations for a targetexecute_query() - Execute custom GraphQL queriesreferences/api_reference.md Complete GraphQL API documentation including:
references/evidence_types.md Comprehensive guide to evidence types and data sources:
references/target_annotations.md Complete target annotation reference:
The Open Targets Platform is updated periodically with new data releases. The
GraphQL schema changes between releases — field names and argument names move
(this skill's queries were verified against data version 26.03). If a field
errors, introspect the live schema via the GraphQL browser. Confirm the running
version with the meta { apiVersion { x y z } dataVersion { year month } } query.
Release information: Check https://platform-docs.opentargets.org/release-notes for the latest updates.
Citation: When using Open Targets data, cite: Ochoa, D. et al. (2025) Open Targets Platform: facilitating therapeutic hypotheses building in drug discovery. Nucleic Acids Research, 53(D1):D1467-D1477.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.Other plugins' skills for the same job