期刊:Nature Methods (2026-09-30) ·
DOI:10.1038/s41592-026-03224-5 ·
开源许可:MIT (allowed)
上游仓库:https://github.com/YosefLab/cytovi-reference-implementation @ 7b77adb0ec10
# 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
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.
{"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.
{"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.
{"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.
{"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}

