Paper2MCP v2 Verified Deliverable

CytoVI: deep generative modeling of antibody-based single cell data

期刊:Nature Methods (2026-09-30) · DOI:10.1038/s41592-026-03224-5 · 开源许可:MIT (allowed)

上游仓库:https://github.com/YosefLab/cytovi-reference-implementation @ 7b77adb0ec10

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

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

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

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

cytovi_preprocess_cytometry MCP Verified ✓

Preprocess antibody-based single-cell cytometry AnnData using CytoVI arcsinh/logp transformation, min-max or standard scaling, optional multi-panel batch merging with NaN mask registration, and optional subsampling.

Selftest Summary: Preprocessed 120 cells x 20 markers using arcsinh + minmax scaling across 2 batch(es).
Metrics: {"n_cells": 120, "n_markers": 20, "n_batches": 2, "transform_method": "arcsinh", "scale_method": "minmax", "scaled_min": 9.999999999177334e-07, "scaled_max": 0.9999990000000002, "has_nan_mask": false}
cytovi_train_model MCP Verified ✓

Register preprocessed cytometry AnnData with CytoVI.setup_anndata and train a CytoVI variational autoencoder controlling for batch and sample covariates.

Selftest Summary: Trained CytoVI model (10D latent, normal likelihood) for 10 epochs on 120 cells x 20 markers.
Metrics: {"n_cells": 120, "n_markers": 20, "n_latent": 10, "epochs_trained": 10, "is_trained": true, "final_train_elbo": 14.633638381958008, "final_val_elbo": 14.815439224243164}
cytovi_get_latent_imputed MCP Verified ✓

Load a trained CytoVI model to extract batch-corrected latent representations (X_CytoVI), posterior-sampled imputed protein expression, and a Scanpy UMAP embedding.

Selftest Summary: Extracted 10D CytoVI latent representation and 20-marker imputed expression matrix for 120 cells.
Metrics: {"n_cells": 120, "n_markers": 20, "latent_dim": 10, "imputed_mean": 0.3432419002056122, "imputed_std": 0.19889050722122192, "umap_computed": true}
cytovi_differential_expression MCP Verified ✓

Perform Bayesian differential protein expression testing between cell groups and optional label-free differential abundance scoring using a trained CytoVI model.

Selftest Summary: Tested 20 DE rows (group_a vs group_b); identified 3 significant features (top: CD18, CD17, CD16, CD15, CD11).
Metrics: {"n_rows": 20, "n_significant": 3, "significant_markers": ["CD18", "CD17", "CD16"], "top_markers": ["CD18", "CD17", "CD16", "CD15", "CD11"], "max_bayes_factor": 3.310874469642843, "da_computed": true}

三、实测复现结果图展示

01_elbo_convergence.png
02_latent_umap_batch_celltype.png
03_differential_expression_volcano.png