Paper2MCP v2 Verified Deliverable

Subcellular mRNA localization patterns across tissues resolved with spatial transcriptomics

期刊:Nature Communications (2026-04-20) · DOI:10.1038/s41467-026-72156-7 · 开源许可:MIT (allowed)

上游仓库:https://github.com/roynov01/HiVis @ d8044e6cffbe

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

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

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

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

apical_basal_dge MCP Verified ✓

Apical-vs-basal mRNA localization ('apicome'): HiVis differential expression between apical and basal bins; log2fc > 0 = apical.

Selftest Summary: Apical/basal DGE on 1440 apical and 1440 basal bins: 24 apical-enriched and 19 basal-enriched genes at q<0.05 (200 tested).
Metrics: {"group1": "apical", "group2": "basal", "n_bins_group1": 1440, "n_bins_group2": 1440, "n_genes_tested": 200, "n_enriched_apical": 24, "n_enriched_basal": 19, "top_apical_genes": ["g001", "g009", "g002", "g008", "g005"], "top_basal_genes": ["g025", "g018", "g019", "g029", "g017"], "median_log2fc_significant": 0.20920300483703613}
nuclear_retention_dge MCP Verified ✓

Nuclear retention: HiVis differential expression between nucleus bins and cytoplasm bins (apical + basal merged); log2fc > 0 = nuclear.

Selftest Summary: Retention DGE on 720 nucleus and 2880 cytoplasm bins: 87 nuclear-retained and 45 cytoplasm-biased genes at q<0.05 (200 tested). Fisher tests on raw counts are sensitive to composition, so read log2fc together with q.
Metrics: {"group1": "nucleus", "group2": "cyto", "n_bins_group1": 720, "n_bins_group2": 2880, "n_genes_tested": 200, "n_enriched_nucleus": 87, "n_enriched_cyto": 45, "top_nucleus_genes": ["g041", "g038", "g043", "g030", "g042"], "top_cyto_genes": ["g056", "g053", "g047", "g058", "g049"], "median_log2fc_significant": 0.21143116056919098}
perinuclear_apical_dge MCP Verified ✓

Perinuclear vs luminal apical mRNAs: HiVis compute_distances to nucleus polygons splits apical bins, then DGE.

Selftest Summary: 108 perinuclear and 1332 luminal apical bins (threshold 4.0 um; 0 apical bins inside a nucleus excluded): 16 perinuclear-enriched and 22 luminal-enriched genes at q<0.05.
Metrics: {"group1": "perinuc", "group2": "luminal", "n_bins_group1": 108, "n_bins_group2": 1332, "n_genes_tested": 200, "n_enriched_perinuc": 16, "n_enriched_luminal": 22, "top_perinuc_genes": ["g069", "g063", "g071", "g060", "g072"], "top_luminal_genes": ["g120", "g187", "g006", "g145", "g102"], "median_log2fc_significant": -0.31237752735614777, "n_apical_bins_inside_nucleus_excluded": 0, "perinuclear_um": 4.0}
zone_localization_concordance MCP Verified ✓

Reproducibility of a localization pattern across tissue zones (paper: villus tip vs base): same DGE per zone, Spearman of log2fc.

Selftest Summary: apical_basal log2fc in Tip vs Base: Spearman r = 0.87 over 32 genes significant in both zones; sign agreement 100%.
Metrics: {"spearman_r": 0.8698680351906158, "spearman_p": 1.0208574967403677e-10, "n_genes_significant_in_both": 32, "sign_agreement": 1.0, "zone_a": "Tip", "zone_b": "Base", "contrast": "apical_basal"}

三、实测复现结果图展示

apicome_apical_vs_basal_MA.png
nuclear_retention_MA.png
perinuclear_vs_luminal_apical.png