Paper2MCP v2 Verified Deliverable

Interpretable spatial multi-omics data integration and dimensionality reduction with SpaMV

期刊:Nature Communications (2026-07-01) · DOI:10.1038/s41467-026-74718-1 · 开源许可:MIT (declared) (allowed)

上游仓库:https://github.com/ericcombiolab/SpaMV @ d7105ef70e92

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

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

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

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

spamv_preprocess_multimodal MCP Verified ✓

Align and preprocess spatial multi-omics AnnData files for SpaMV clustering or interpretable topic modeling.

Selftest Summary: Preprocessed 2 spatial omics modalities in 'clustering' mode (324 aligned spots).
Metrics: {"mode": "clustering", "n_spots_aligned": 324, "n_modalities": 2, "shapes": {"Transcriptomics": [324, 25], "Proteomics": [324, 25]}}
spamv_spatial_clustering MCP Verified ✓

Train SpaMV (interpretable=False) to learn shared and omics-private latent embeddings and identify spatial domains.

Selftest Summary: SpaMV spatial clustering finished on 324 spots into 5 domains (Moran's I full=0.500, shared=0.456).
Metrics: {"n_spots": 324, "n_clusters": 5, "zs_dim": 16, "total_embedding_dim": 48, "clustering_method": "gmm", "moran_i_full": 0.5000886635988671, "moran_i_shared": 0.45597843932135734, "supervised_full": {"ARI": 0.4771992444447237, "MI": 0.8923724428323045, "NMI": 0.5964639364882106, "AMI": 0.5894407450341761, "HOM": 0.6268962777099188, "VME": 0.5964639364882107, "Average": 0.6298060971662575}, "supervised_shared": {"ARI": 0.41288273956996097, "MI": 0.7576521910086179, "NMI": 0.5077891842022462, "AMI": 0.49920231947914706, "HOM": 0.532254600819541, "VME": 0.5077891842022461, "Average": 0.5362617032136265}, "ari_full": 0.4771992444447237, "nmi_full": 0.5964639364882106, "ari_shared": 0.41288273956996097, "nmi_shared": 0.5077891842022462}
spamv_topic_modeling MCP Verified ✓

Train SpaMV (interpretable=True) to decompose spatial multi-omics into shared and modality-private topics.

Selftest Summary: SpaMV topic modeling discovered 5 active topics (1 shared, 4 omics-private) across 324 spots.
Metrics: {"n_spots": 324, "n_active_topics": 5, "n_shared_topics": 1, "private_topic_counts": {"Transcriptomics": 3, "Proteomics": 1}, "topic_names": ["Shared topic 4", "Transcriptomics private topic 1", "Transcriptomics private topic 2", "Transcriptomics private topic 8", "Proteomics private topic 7"], "topic_coherence": {"Transcriptomics": 0.2390401936942892, "Proteomics": 0.46159122944856135}, "topic_diversity": {"Transcriptomics": 0.9767529371428365, "Proteomics": 1.0}}
spamv_biomarker_correlation MCP Verified ✓

Identify omics-specific and shared topic-associated biomarkers via Pearson correlation and topic quality metrics.

Selftest Summary: Computed feature-topic Pearson correlations for 200 Transcriptomics features across 7 topics (mean top-1 r=0.498).
Metrics: {"omics_name": "Transcriptomics", "n_spots": 324, "n_features_analyzed": 200, "n_topics": 7, "top_biomarkers_count": 70, "mean_top1_correlation": 0.49815796374635996, "topic_coherence": 0.1725419744785846, "topic_diversity": 0.7734829644040171}
spamv_evaluate_integration MCP Verified ✓

Benchmark SpaMV full and shared embeddings/domains using Moran's I, Jaccard similarity, and ARI/NMI.

Selftest Summary: Evaluated 2 SpaMV representations across 324 spots.
Metrics: {"n_spots": 324, "ground_truth_available": true, "k_jaccard": 25, "metrics_by_representation": {"SpaMV": {"MoranI": 0.556852048582329, "ARI": 0.5745923127252209, "MI": 0.9713111167445465, "NMI": 0.6533249542308496, "AMI": 0.6472427126335515, "HOM": 0.682351106285616, "VME": 0.6533249542308495, "Average": 0.6970245261417723, "Jaccard": 0.253849644004691}, "SpaMV_shared": {"MoranI": 0.4721434132074246, "ARI": 0.48182673406515397, "MI": 0.8013445938249332, "NMI": 0.5523724535817965, "AMI": 0.5442859774684924, "HOM": 0.5629487408165307, "VME": 0.5523724535817965, "Average": 0.5825251588897838, "Jaccard": 0.1912867968303806}}}

三、实测复现结果图展示

spamv_interpretable_topics_sim1.png
spamv_spatial_clustering_sim1.png
spamv_topic_similarity_and_metrics.png