Queries the Reactome REST API for pathway enrichment, gene-to-pathway mapping, disease pathways, and molecular interactions. Use for over-representation analysis on gene lists or exploring curated biological pathways.
Reactome is a free, open-source, curated pathway database (thousands of human pathways). Query biological pathways, perform overrepresentation and expression analysis, map genes to pathways, explore molecular interactions via REST API and Python client for systems biology research.
This skill should be used when:
| Scenario | Use Instead |
|---|---|
| KEGG pathway maps, KO orthology, KEGG compound/drug IDs | alterlab-kegg |
| Protein-protein interaction networks and STRING functional enrichment | alterlab-string-db |
| Genome-scale metabolic models and flux balance analysis | alterlab-cobrapy |
| Differential expression statistics from RNA-seq counts | alterlab-pydeseq2 |
| Target-disease evidence scoring for drug discovery | alterlab-opentargets |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-kegg) 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.
Reactome provides two main API services and a Python client library:
Query and retrieve biological pathway data, molecular interactions, and entity information.
Common operations:
API Base URL: https://reactome.org/ContentService
Perform computational analysis on gene lists and expression data.
Analysis types:
API Base URL: https://reactome.org/AnalysisService
Python client library that wraps Reactome API calls for easier programmatic access.
Installation:
uv run --with reactome2py python my_script.py # install-free; no pip step
Note: The reactome2py package (version 3.0.0, released January 2021) is functional but not actively maintained. For the most up-to-date functionality, consider using direct REST API calls.
The Content Service uses REST protocol and returns data in JSON or plain text formats.
Get database version:
import requests
response = requests.get("https://reactome.org/ContentService/data/database/version")
version = response.text
print(f"Reactome version: {version}")
Query a specific entity:
import requests
entity_id = "R-HSA-69278" # Example pathway ID
response = requests.get(f"https://reactome.org/ContentService/data/query/{entity_id}")
data = response.json()
Get participating molecules in a pathway:
import requests
# NOTE: the path is /data/participants/{id}/... (NOT /data/event/{id}/...);
# the older /data/event/.../participatingPhysicalEntities now returns 404.
pathway_id = "R-HSA-69278"
response = requests.get(
f"https://reactome.org/ContentService/data/participants/{pathway_id}/participatingPhysicalEntities"
)
molecules = response.json()
Map a gene/protein to the pathways it participates in:
import requests
# /data/mapping/{resource}/{id}/pathways — resource = UniProt, Ensembl, etc.
response = requests.get(
"https://reactome.org/ContentService/data/mapping/UniProt/P04637/pathways",
params={"species": "9606"}, # taxId; 9606 = Homo sapiens
)
pathways = response.json() # list of {stId, displayName, ...}
Use a UniProt accession (e.g. P04637) or an Ensembl gene ID for the mapping
endpoint. To start from a gene symbol (e.g. TP53), either resolve it to a
UniProt/Ensembl ID first, or submit it through the Analysis Service
(/identifiers/), which auto-detects symbols and returns the matched pathways.
Search for an entity by name (when you don't have a stable ID):
response = requests.get(
"https://reactome.org/ContentService/search/query",
params={"query": "glycolysis", "species": "Homo sapiens", "types": "Pathway"},
)
hits = response.json()["results"] # grouped result clusters
import reactome2py
from reactome2py import content
# Query pathway information
pathway_info = content.query_by_id("R-HSA-69278")
# Get database version
version = content.get_database_version()
For detailed API endpoints and parameters, refer to references/api_reference.md in this skill.
Submit a list of gene/protein identifiers to find enriched pathways.
Using REST API:
import requests
# Prepare identifier list
identifiers = ["TP53", "BRCA1", "EGFR", "MYC"]
data = "\n".join(identifiers)
# Submit analysis
response = requests.post(
"https://reactome.org/AnalysisService/identifiers/",
headers={"Content-Type": "text/plain"},
data=data
)
result = response.json()
token = result["summary"]["token"] # Save token to retrieve results later
# Access pathways
for pathway in result["pathways"]:
print(f"{pathway['stId']}: {pathway['name']} (p-value: {pathway['entities']['pValue']})")
Retrieve analysis by token:
# Token is valid for 7 days
response = requests.get(f"https://reactome.org/AnalysisService/token/{token}")
results = response.json()
Analyze gene expression datasets with quantitative values.
Input format (TSV with header starting with #):
#Gene Sample1 Sample2 Sample3
TP53 2.5 3.1 2.8
BRCA1 1.2 1.5 1.3
EGFR 4.5 4.2 4.8
Submit expression data:
import requests
# Read TSV file
with open("expression_data.tsv", "r") as f:
data = f.read()
response = requests.post(
"https://reactome.org/AnalysisService/identifiers/",
headers={"Content-Type": "text/plain"},
data=data
)
result = response.json()
Map identifiers to human pathways exclusively using the /projection/ endpoint:
response = requests.post(
"https://reactome.org/AnalysisService/identifiers/projection/",
headers={"Content-Type": "text/plain"},
data=data
)
Analysis results can be visualized in the Reactome Pathway Browser by constructing URLs with the analysis token:
token = result["summary"]["token"]
pathway_id = "R-HSA-69278"
url = f"https://reactome.org/PathwayBrowser/#{pathway_id}&DTAB=AN&ANALYSIS={token}"
print(f"View results: {url}")
GET /token/{TOKEN} endpoint to retrieve resultsReactome accepts various identifier formats:
The system automatically detects identifier types.
For overrepresentation analysis:
For expression analysis:
All API responses return JSON containing:
pathways: Array of enriched pathways with statistical metricssummary: Analysis metadata and tokenentities: Matched and unmapped identifiersThis skill includes scripts/reactome_query.py, a helper script for common Reactome operations:
# Query pathway information
python scripts/reactome_query.py query R-HSA-69278
# List participating molecules in a pathway
python scripts/reactome_query.py entities R-HSA-69278
# Search for a pathway by name
python scripts/reactome_query.py search "cell cycle"
# Perform overrepresentation analysis (one identifier per line)
python scripts/reactome_query.py analyze gene_list.txt
# Expression analysis: a '#'-headed TSV (#Gene<TAB>sample1<TAB>sample2...) is posted as-is;
# prints expression columns, per-pathway mean values and the unmapped-ID count
python scripts/reactome_query.py analyze expression.tsv
# Get database version
python scripts/reactome_query.py version
The script depends only on requests; run it with uv run --with requests python scripts/reactome_query.py ...
when requests is not installed. It retries 429/5xx and the Cloudflare 520-526 errors reactome.org
intermittently returns, and writes results next to the input as <name>_results.json.
For comprehensive API endpoint documentation, see references/api_reference.md in this skill.
Reactome ships quarterly releases; the live version (97 as of 2026-09, verified via the API) is the source of truth — don't hardcode counts that go stale. Fetch the current release and per-type statistics at query time:
curl -s https://reactome.org/ContentService/data/database/version
Release-level content statistics are summarised at https://reactome.org/about/statistics.
What SKILL.md sets; muted values are Claude Code's defaults
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-tools241 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.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job