期刊:Cell (2026-08-04) ·
DOI:10.1016/j.cell.2026.07.008 ·
开源许可:BSD-3-Clause (allowed)
上游仓库:https://github.com/adaly/cSplotch @ 6d4f005a9ec2
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip csplotch-mcp.zip && cd csplotch-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add csplotch -- "$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
prepare_csplotch_inputs
MCP Verified ✓
Assemble hierarchical spatial transcriptomics count tables, anatomical region annotations, spot cell-type compositions, CAR spatial adjacency graphs, and optional snRNA-seq beta priors into cSplotch inputs.
{"n_tissues": 4, "n_spots": 1050, "n_genes": 30, "n_aars": 11, "n_celltypes": 4, "median_depth": 163.0}fit_csplotch_bayesian
MCP Verified ✓
Fit the hierarchical compositional cSplotch Bayesian spatial transcriptomics model (CAR spatial random effect + cell-type composition deconvolution + zero-inflated Poisson) via batched NumPyro SVI or NUTS HMC.
{"n_genes": 6, "n_spots": 1050, "n_posterior_samples": 100, "mean_final_elbo": 3878.972, "method": "svi"}differential_expression_bayes
MCP Verified ✓
Compute cell-type and anatomical-region differential expression log2 fold-changes and Savage-Dickey Bayes factors between two Level-1 conditions.
{"n_contrasts": 120, "n_significant": 46, "bf_threshold": 5.0, "top_hits": [{"gene": "Gfap", "aar": "Vent_Horn", "cell_type": "BG", "log2_fc": 3.211, "bayes_factor": "inf"}, {"gene": "Nefl", "aar": "Vent_Horn", "cell_type": "BG", "log2_fc": 3.441, "bayes_factor": "inf"}, {"gene": "Nefl", "aar": "Vent_Horn", "cell_type": "MN", "log2_fc": -4.223, "bayes_factor": "inf"}, {"gene": "Slc1a2", "aar": "Vent_Horn", "cell_type": "BG", "log2_fc": -3.087, "bayes_factor": "inf"}, {"gene": "Aqp4", "aar": "Vent_Horn", "cell_type": "BG", "log2_fc": -7.336, "bayes_factor": "inf"}]}discover_spatial_modules
MCP Verified ✓
Discover spatially co-expressed gene modules and submodules from denoised expression using Pearson correlation k-NN graphs, Leiden clustering, and TruncMinMaxScaler spot module scoring.
{"n_modules": 3, "module_sizes": {"M0": 12, "M1": 7, "M2": 11}, "submodules_computed": true, "n_spots": 1050, "n_genes": 30}self_supervised_denoise_mcv
MCP Verified ✓
Select optimal PCA dimensionality via Molecular Cross-Validation (MCV) and denoise spatial count matrices using Noise2Self adaptive k-NN smoothing.
{"mcv_optimal_pcs": 4, "mcv_min_mse": 0.358658, "noise2self_optimal_pcs": 6, "noise2self_optimal_k": 8, "local_k_mean": 5.916}

