Paper2MCP v2 Verified Deliverable

The dual-enhanced graph learning framework DePass allows paired data integration in single-cell and spatial multiomics.

期刊:Nature Cell Biology (2026-09-24) · DOI:10.1038/s41556-026-02067-8 · 开源许可:MIT (allowed)

上游仓库:https://github.com/zhanglabNKU/DePass @ 9922b01b3629

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

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

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

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

depass_preprocess_multiomics MCP Verified ✓

Preprocess paired single-cell or spatial multi-omics AnnData (.h5ad) modalities (RNA, protein/ADT, ATAC, metabolite) via DePass.utils.preprocess_data and populate standardized obsm['input_feat'] matrices.

Selftest Summary: Preprocessed 2 paired modalities (rna=183d, protein=21d) across 240 cells/spots using DePass.utils.preprocess_data.
Metrics: {"n_obs": 240, "n_modalities": 2, "modalities": ["rna", "protein"], "input_feat_dims": {"1_rna": 183, "2_protein": 21}}
depass_integrate_and_enhance MCP Verified ✓

Train the DePass dual-enhanced graph autoencoder (DePassAE / DePassAE_va) on >=2 paired spatial or single-cell modalities to jointly learn L2-normalized embeddings, cross-modality attention weights, and denoised omics profiles.

Selftest Summary: Trained DePass (spatial, 2 modalities: ['rna', 'protein'], 30 epochs on cpu) across 240 cells/spots; generated 128-d embedding and enhanced omics matrices (mean attention weights: {'weight_1_rna': 0.3884, 'weight_2_protein': 0.6116}).
Metrics: {"n_obs": 240, "n_modalities": 2, "data_type": "spatial", "epochs": 30, "device_used": "cpu", "embedding_dim": 128, "enhanced_shapes": {"x1_enh_rna": [240, 183], "x2_enh_protein": [240, 21]}, "mean_modality_weights": {"weight_1_rna": 0.3884, "weight_2_protein": 0.6116}}
depass_cluster_and_evaluate MCP Verified ✓

Identify spatial domains or single-cell clusters from DePass embeddings, evaluate clustering quality (ASW, DBI, and optional supervised ARI/NMI/AMI/Homogeneity), and plot spatial/UMAP domains plus cross-modality attention violin distributions.

Selftest Summary: Clustered 240 cells/spots into 3 groups via DePass.utils.clustering (method='kmeans'; metrics={'n_clusters_requested': 3, 'n_clusters_found': 3, 'ASW': 0.658809, 'DBI': 1.259215}).
Metrics: {"n_obs": 240, "method": "kmeans", "n_clusters_requested": 3, "n_clusters_found": 3, "ASW": 0.658809, "DBI": 1.259215}
depass_evaluate_enhancement MCP Verified ✓

Compare raw/baseline vs. DePass-enhanced omics profiles via differential expression LogFC (rank_genes_groups, get_top_degs_df, get_logfc), spatial/UMAP marker comparison plots (plot_marker_comparison_with_logFC), and optional cross-omics Pearson correlations.

Selftest Summary: Evaluated DePass enhancement across 3 groups (21 features): CD3@2 LogFC 1.382 -> 2.071 (mean top-marker LogFC 0.936 -> 1.347).
Metrics: {"n_obs": 240, "n_features": 21, "n_groups": 3, "selected_marker": "CD3", "selected_group": "2", "selected_marker_logfc_raw": 1.3819, "selected_marker_logfc_enhanced": 2.0707, "mean_top_logfc_raw": 0.9356, "mean_top_logfc_enhanced": 1.3468}

三、实测复现结果图展示

fig1_spleen_spatial_domains_and_attention.png
fig2_spleen_marker_enhancement_logfc.png
fig3_pbmc3k_multiome_integration_benchmark.png