Paper2MCP v2 Verified Deliverable

Interpretable, flexible and spatially aware integration of multiple spatial transcriptomics datasets from diverse sources

期刊:Nature Genetics (2026-04-27) · DOI:10.1038/s41588-026-02579-x · 开源许可:none (restricted)

上游仓库:https://github.com/jiazhao97/INSPIRE @ 1d7e7a695410

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

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

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

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add inspire -- "$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

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

inspire_integrate_sections MCP Verified ✓

Integrate multiple spatial transcriptomics sections with INSPIRE (graph attention variant): shared latent space plus interpretable spatial factors and gene loadings.

Selftest Summary: INSPIRE integrated 2 sections (1152 spots, 158 shared HVGs) into a 32-d latent space with 4 spatial factors after 60 steps. Section-mixing ASW = 0.022 (near 0 or below means sections are well mixed).
Metrics: {"n_sections": 2, "n_spots": 1152, "n_shared_hvgs": 158, "n_spatial_factors": 4, "latent_dim": 32, "n_training_steps": 60, "asw_section_mixing": 0.0215}
inspire_evaluate_integration MCP Verified ✓

Cluster the INSPIRE latent space and score it against known domain labels with the repository's ASW, ARI and NMI metrics.

Selftest Summary: k-means (k=4) on the INSPIRE latent space vs 'domain': ARI=0.998, NMI=0.996, label ASW=0.700.
Metrics: {"n_spots": 1152, "n_clusters": 4, "ARI": 0.9977, "NMI": 0.9958, "ASW_label": 0.7003, "ASW_section_mixing": 0.0004}
inspire_extract_gene_programs MCP Verified ✓

List the top genes of each spatial factor and score gene programs with factor diversity and NPMI coherence.

Selftest Summary: Extracted the top 10 genes for 6 spatial factors; factor diversity = 0.867, NPMI coherence = 0.031.
Metrics: {"n_factors": 6, "n_genes": 249, "n_top_genes": 10, "factor_diversity": 0.8667, "factor_coherence_npmi": 0.0308}
inspire_plot_spatial_factors MCP Verified ✓

Map spatial-factor proportions and the dominant factor onto tissue coordinates across all sections.

Selftest Summary: Plotted 3 of 6 spatial factors over 1152 spots; dominant-factor spot counts: {1: 288, 2: 1, 3: 1, 4: 264, 5: 287, 6: 311}.
Metrics: {"n_factors_total": 6, "n_factors_plotted": 3, "n_spots": 1152, "dominant_factor_counts": {"1": 288, "2": 1, "3": 1, "4": 264, "5": 287, "6": 311}}

三、实测复现结果图展示

01_latent_umap.png
02_spatial_domains.png
03_spatial_factors.png