Paper2MCP v2 Verified Deliverable

Charting spatial ligand-target activity using Renoir

期刊:Nature Communications (2026-05-05) · DOI:10.1038/s41467-026-72388-7 · 开源许可:none (restricted)

上游仓库:https://github.com/Zafar-Lab/Renoir @ 2ea1c987ae52

Pytest: passed MCP Stdio Selftest: passed Relocated Fresh Install: passed

一、一键安装与 MCP 接入(本地 / 远程统一接口)

# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip renoir-mcp.zip && cd renoir-mcp
bash install.sh
.venv/bin/python selftest.py

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add renoir -- "$PWD/.venv/bin/python" "$PWD/server.py"

# 3. 或启动远程 Streamable HTTP MCP 服务端供团队/网页直接调用
.venv/bin/python server.py --transport http --host 0.0.0.0 --port 8000

二、已验证科学工具清单(5 个工具)

score_spatial_ligand_target MCP Verified ✓

Compute spatial neighborhood activity scores for curated ligand-target pairs across Visium spots or single-cell spatial coordinates using Renoir.

Selftest Summary: Scored 20 ligand-target pairs across 144 spatial spots; top active pair is VEGFA:KDR (mean=3.8354).
Metrics: {"n_spots": 144, "n_lt_pairs_scored": 20, "mean_activity": 2.661825, "max_activity": 11.311264, "top_lt_pair": "VEGFA:KDR", "top_lt_pairs": ["VEGFA:KDR", "TGFB1:PTGS2", "IL6:STAT3", "IL6:EPCAM", "COL18A1:FOXO1"]}
cluster_lt_pathways MCP Verified ✓

Group scored ligand-target pairs into pathway-guided sets (MSigDB) or de novo co-activity modules (DHC/HDBSCAN).

Selftest Summary: Constructed 4 ligand-target clusters covering 19 unique pairs (method=pathway, largest=HALLMARK_ANGIOGENESIS_ONCOFETAL with 6 pairs).
Metrics: {"method": "pathway", "n_clusters": 4, "n_total_pairs_assigned": 19, "largest_cluster": "HALLMARK_ANGIOGENESIS_ONCOFETAL", "largest_cluster_size": 6}
discover_communication_domains MCP Verified ✓

Compute pathway-level SVD activity scores and delineate spatial communication domains via Leiden clustering.

Selftest Summary: Identified 4 spatial communication domains across 144 spots using 4 pathway modules (resolution=0.2).
Metrics: {"n_spots": 144, "n_domains": 4, "domain_counts": {"0": 55, "1": 42, "2": 30, "3": 17}, "n_pathways": 4, "top_pathway_per_domain": {"0": "HALLMARK_TGF_BETA_SIGNALING", "1": "HALLMARK_ANGIOGENESIS_ONCOFETAL", "2": "WP_HEPATOCYTE_MACROPHAGE_AXIS", "3": "HALLMARK_TGF_BETA_SIGNALING"}}
analyze_celltype_crosstalk MCP Verified ✓

Correlate spot-level cell-type abundances with ligand-target activity and rank domain-specific ligands by downstream target impact.

Selftest Summary: Completed spot_v_spot crosstalk analysis and ligand_ranking for Domain 0 (55 spots; top cell types: Bipotent_Hep, TAM_FOLR2, CAF_POSTN).
Metrics: {"target_domain": "0", "n_spots_in_domain": 55, "n_celltypes": 5, "dominant_celltypes_in_domain": {"Bipotent_Hep": 0.4469, "TAM_FOLR2": 0.3671, "CAF_POSTN": 0.0844}}
plot_communication_sankey MCP Verified ✓

Generate an interactive Sankey diagram linking sender cell types, ligands, targets, receiver cell types, and communication domains.

Selftest Summary: Generated Renoir Sankey communication flow diagram for 3 ligand-target pairs across 4 domains (19 nodes, 39 links).
Metrics: {"n_lt_pairs": 3, "lt_pairs": ["VEGFA:KDR", "IL6:PTGS2", "PLG:MARCO"], "n_nodes": 19, "n_links": 39, "n_domains": 4}

三、实测复现结果图展示

repro_ligand_ranking_domain.png
repro_pathway_crosstalk_heatmap.png
repro_spatial_domains_and_lt_activity.png