Paper2MCP v2 Verified Deliverable

Multiscale multimodal integration of spatial omics through a deep generative model with CORAL.

期刊:Nature Genetics (2026-11-05) · DOI:10.1038/s41588-026-02821-6 · 开源许可:BSD-3-Clause (allowed)

上游仓库:https://github.com/zou-group/CORAL @ 97e1e9c4b3fb

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

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

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

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

coral_preprocess_subgraphs MCP Verified ✓

Align paired high-resolution and low-resolution spatial omics AnnData files and build local spatial subgraphs.

Selftest Summary: Preprocessed 240 high-res cells (51 features) and 143 low-res spots (80 features) into 240 local spatial subgraphs (mean 15.0 nodes, 28.0 edges).
Metrics: {"lowres_dim": 80, "hires_dim": 51, "lowres_size": 143, "hires_size": 240, "cell_type_dim": 6, "n_subgraphs": 240, "n_neighbors": 15, "mean_subgraph_nodes": 15.0, "mean_subgraph_edges": 28.0}
coral_train_model MCP Verified ✓

Create and train the CORAL GAT-VAE cross-attention multimodal integration and deconvolution model.

Selftest Summary: Trained CORAL model (157,088 parameters) for 4 epochs on cpu; loss changed from 152544.8198 to 70246.2091.
Metrics: {"epochs": 4, "initial_loss": 152544.8198, "final_loss": 70246.2091, "min_loss": 70246.2091, "device_used": "cpu", "num_parameters": 157088, "latent_dim": 32, "hidden_channels": 64}
coral_infer_and_deconvolve MCP Verified ✓

Infer CORAL joint embeddings, super-resolved low-res expression profiles, spatial domains, and cell-cell attention weights.

Selftest Summary: Generated CORAL integration for 240 cells: 32D joint latent space, 80-gene deconvolved profiles, 9 Leiden spatial domains, and 1929 unique cell-cell attention edges.
Metrics: {"n_cells": 240, "latent_dim": 32, "generated_expr_dim": 80, "n_coral_clusters": 9, "n_unique_attention_edges": 1929, "mean_attention_weight": 0.35199, "max_attention_weight": 0.49981}
coral_evaluate_and_visualize MCP Verified ✓

Evaluate CORAL spatial domain agreement and expression reconstruction and generate summary plots.

Selftest Summary: Evaluated CORAL integration over 240 cells and 6 domains: MI=0.3538, ARI=0.0871, lowres_r=0.7829
Metrics: {"n_cells": 240, "n_clusters": 6, "mutual_info_score": 0.3538, "adjusted_rand_score": 0.0871, "lowres_mean_pearson_r": 0.7829, "lowres_mean_spearman_r": 0.6972, "hires_mean_pearson_r": 0.87, "hires_cosine_similarity": 0.905, "n_attention_edges": 1929, "mean_attention_weight": 0.35208}

三、实测复现结果图展示

imputation_and_attention.png
latent_umap_and_training.png
spatial_domains.png