期刊:Nature Methods (2026-09-24) ·
DOI:10.1038/s41592-026-03212-9 ·
开源许可:BSD-3-Clause (allowed)
上游仓库:https://github.com/scverse/scvi-tools @ a93ecf42647c
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip resolvi-mcp.zip && cd resolvi-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add resolvi -- "$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
resolvi_train_embed
MCP Verified ✓
Construct spatial k-NN graph, compute dataset-dependent priors, train unsupervised or semisupervised RESOLVI VAE, and generate latent representations, clusters, and UMAP/spatial plots.
{"n_cells": 600, "n_genes": 248, "n_latent": 10, "semisupervised": true, "max_epochs": 5, "final_elbo": 1292070.125, "background_ratio_prior": 0.0021837581880390644, "median_distance_prior": 2229.762430231003, "n_leiden_clusters": 8, "train_label_accuracy": 0.8317}resolvi_correct_expression
MCP Verified ✓
Sample posterior denoised gene expression from model_corrected and decompose per-cell true, diffusion, and background proportions from model_residuals.
{"n_cells": 600, "n_genes": 248, "quantile": 0.5, "mean_true_proportion": 0.8651, "mean_diffusion_proportion": 0.1468, "mean_background_proportion": 0.0011, "raw_contamination_mean": 6.6364, "corrected_contamination_mean": 8.1002, "contamination_reduction_pct": -22.06, "raw_marker_mean": 11.7727, "corrected_marker_mean": 1.0896}resolvi_differential_analysis
MCP Verified ✓
Perform Bayesian differential expression on denoised true rates and spatial differential niche abundance testing between cell populations.
{"groupby": "predicted_celltype", "group1": "Excitatory Neurons Thalamus", "group2": "Astrocytes", "analysis_type": "both", "n_genes_tested": 248, "n_de_significant": 168, "top_de_genes": ["Parm1", "Slc39a12", "Lyz2", "Tle4", "Trbc2"], "n_niche_celltypes_tested": 6, "top_niche_celltypes": ["Astrocytes", "Endothelial Cells", "Oligodendrocyte"]}resolvi_transfer_query
MCP Verified ✓
Transfer cell-type annotations and latent space from a semisupervised reference RESOLVI model onto a new spatial query dataset using scArches.
{"n_query_cells": 250, "n_predicted_types": 6, "mean_prediction_confidence": 0.8016, "max_epochs": 5, "transfer_accuracy": 0.916}

