jpskill.com
🛠️ 開発・MCP コミュニティ

reactome-database

Query Reactome REST API for pathway analysis, enrichment, gene-pathway mapping, disease pathways, molecular interactions, expression analysis, for systems biology studies.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o reactome-database.zip https://jpskill.com/download/18513.zip && unzip -o reactome-database.zip && rm reactome-database.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18513.zip -OutFile "$d\reactome-database.zip"; Expand-Archive "$d\reactome-database.zip" -DestinationPath $d -Force; ri "$d\reactome-database.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して reactome-database.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → reactome-database フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
3

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Reactome Database

概要

Reactome は、2,825 以上のヒトパスウェイを持つ、無料のオープンソースのキュレーションされたパスウェイデータベースです。生物学的パスウェイのクエリ、過剰発現および発現解析の実行、遺伝子のパスウェイへのマッピング、システム生物学研究のための REST API および Python クライアントを介した分子間相互作用の探索を行います。

この Skill を使用する場面

この Skill は、以下の場合に使用する必要があります。

  • 遺伝子またはタンパク質リストに対するパスウェイエンリッチメント解析の実行
  • 関連する生物学的パスウェイを特定するための遺伝子発現データの解析
  • 特定のパスウェイ情報、反応、または分子間相互作用のクエリ
  • 遺伝子またはタンパク質の生物学的パスウェイおよびプロセスへのマッピング
  • 疾患関連パスウェイおよびメカニズムの探索
  • Reactome Pathway Browser での解析結果の可視化
  • 種を越えた比較パスウェイ解析の実施

主要な機能

Reactome は、2 つの主要な API サービスと Python クライアントライブラリを提供します。

1. Content Service - データ取得

生物学的パスウェイデータ、分子間相互作用、およびエンティティ情報のクエリと取得を行います。

一般的な操作:

  • パスウェイ情報と階層の取得
  • 特定のエンティティ (タンパク質、反応、複合体) のクエリ
  • パスウェイ内の参加分子の取得
  • データベースのバージョンとメタデータへのアクセス
  • パスウェイのコンパートメントと場所の探索

API Base URL: https://reactome.org/ContentService

2. Analysis Service - パスウェイ解析

遺伝子リストおよび発現データに対する計算解析を実行します。

解析の種類:

  • Overrepresentation Analysis: 遺伝子/タンパク質リストから統計的に有意なパスウェイを特定します
  • Expression Data Analysis: 遺伝子発現データセットを解析して、関連するパスウェイを見つけます
  • Species Comparison: 異なる生物間でのパスウェイデータの比較

API Base URL: https://reactome.org/AnalysisService

3. reactome2py Python Package

より簡単なプログラムによるアクセスを可能にするために、Reactome API 呼び出しをラップする Python クライアントライブラリです。

インストール:

uv pip install reactome2py

注: reactome2py パッケージ (バージョン 3.0.0、2021 年 1 月リリース) は機能しますが、積極的にメンテナンスされていません。最新の機能については、直接 REST API 呼び出しを使用することを検討してください。

パスウェイデータのクエリ

Content Service REST API の使用

Content Service は REST プロトコルを使用し、JSON またはプレーンテキスト形式でデータを返します。

データベースバージョンの取得:

import requests

response = requests.get("https://reactome.org/ContentService/data/database/version")
version = response.text
print(f"Reactome version: {version}")

特定のエンティティのクエリ:

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()

パスウェイ内の参加分子の取得:

import requests

event_id = "R-HSA-69278"
response = requests.get(
    f"https://reactome.org/ContentService/data/event/{event_id}/participatingPhysicalEntities"
)
molecules = response.json()

reactome2py Package の使用

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()

詳細な API エンドポイントとパラメータについては、この Skill の references/api_reference.md を参照してください。

パスウェイ解析の実行

Overrepresentation Analysis

エンリッチされたパスウェイを見つけるために、遺伝子/タンパク質識別子のリストを送信します。

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']})")

トークンによる解析の取得:

# Token is valid for 7 days
response = requests.get(f"https://reactome.org/AnalysisService/token/{token}")
results = response.json()

Expression Data Analysis

定量的な値を持つ遺伝子発現データセットを解析します。

入力形式 (先頭が # のヘッダーを持つ TSV):

#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

発現データの送信:

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()

Species Projection

/projection/ エンドポイントを使用して、識別子をヒトパスウェイのみにマッピングします。

response = requests.post(
    "https://reactome.org/AnalysisService/identifiers/projection/",
    headers={"Content-Type": "text/plain"},
    data=data
)

結果の可視化

解析結果は、解析トークンを使用して URL を構築することにより、Reactome Pathway Browser で可視化できます。

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}")

解析トークンの操作

  • 解析トークンは 7 日間 有効です
  • トークンを使用すると、再送信せずに以前に計算された結果を取得できます
  • セッション間で結果にアクセスするためにトークンを保存します
  • 結果を取得するには、GET /token/{TOKEN} エンドポイントを使用します

データ形式と識別子

サポートされている識別子の種類

Reactome は、さまざまな識別子形式を受け入れます。

  • UniProt アクセッション (例: P04637)
  • 遺伝子シンボル (例: TP53)
  • Ensembl ID (例: ENSG00000141510)
  • EntrezGene ID (例: 7157)
  • 低分子の ChEBI ID

システムは識別子の種類を自動的に検出します。

入力形式

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Reactome Database

Overview

Reactome is a free, open-source, curated pathway database with 2,825+ 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.

When to Use This Skill

This skill should be used when:

  • Performing pathway enrichment analysis on gene or protein lists
  • Analyzing gene expression data to identify relevant biological pathways
  • Querying specific pathway information, reactions, or molecular interactions
  • Mapping genes or proteins to biological pathways and processes
  • Exploring disease-related pathways and mechanisms
  • Visualizing analysis results in the Reactome Pathway Browser
  • Conducting comparative pathway analysis across species

Core Capabilities

Reactome provides two main API services and a Python client library:

1. Content Service - Data Retrieval

Query and retrieve biological pathway data, molecular interactions, and entity information.

Common operations:

  • Retrieve pathway information and hierarchies
  • Query specific entities (proteins, reactions, complexes)
  • Get participating molecules in pathways
  • Access database version and metadata
  • Explore pathway compartments and locations

API Base URL: https://reactome.org/ContentService

2. Analysis Service - Pathway Analysis

Perform computational analysis on gene lists and expression data.

Analysis types:

  • Overrepresentation Analysis: Identify statistically significant pathways from gene/protein lists
  • Expression Data Analysis: Analyze gene expression datasets to find relevant pathways
  • Species Comparison: Compare pathway data across different organisms

API Base URL: https://reactome.org/AnalysisService

3. reactome2py Python Package

Python client library that wraps Reactome API calls for easier programmatic access.

Installation:

uv pip install reactome2py

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.

Querying Pathway Data

Using Content Service REST API

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

event_id = "R-HSA-69278"
response = requests.get(
    f"https://reactome.org/ContentService/data/event/{event_id}/participatingPhysicalEntities"
)
molecules = response.json()

Using reactome2py Package

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.

Performing Pathway Analysis

Overrepresentation Analysis

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()

Expression Data Analysis

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()

Species Projection

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
)

Visualizing Results

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}")

Working with Analysis Tokens

  • Analysis tokens are valid for 7 days
  • Tokens allow retrieval of previously computed results without re-submission
  • Store tokens to access results across sessions
  • Use GET /token/{TOKEN} endpoint to retrieve results

Data Formats and Identifiers

Supported Identifier Types

Reactome accepts various identifier formats:

  • UniProt accessions (e.g., P04637)
  • Gene symbols (e.g., TP53)
  • Ensembl IDs (e.g., ENSG00000141510)
  • EntrezGene IDs (e.g., 7157)
  • ChEBI IDs for small molecules

The system automatically detects identifier types.

Input Format Requirements

For overrepresentation analysis:

  • Plain text list of identifiers (one per line)
  • OR single column in TSV format

For expression analysis:

  • TSV format with mandatory header row starting with "#"
  • Column 1: identifiers
  • Columns 2+: numeric expression values
  • Use period (.) as decimal separator

Output Format

All API responses return JSON containing:

  • pathways: Array of enriched pathways with statistical metrics
  • summary: Analysis metadata and token
  • entities: Matched and unmapped identifiers
  • Statistical values: pValue, FDR (false discovery rate)

Helper Scripts

This 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

# Perform overrepresentation analysis
python scripts/reactome_query.py analyze gene_list.txt

# Get database version
python scripts/reactome_query.py version

Additional Resources

For comprehensive API endpoint documentation, see references/api_reference.md in this skill.

Current Database Statistics (Version 94, September 2025)

  • 2,825 human pathways
  • 16,002 reactions
  • 11,630 proteins
  • 2,176 small molecules
  • 1,070 drugs
  • 41,373 literature references

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。