Paper2MCP v2 Verified Deliverable

Distinct Cellular Phenotypes of Language and Executive Decline in Amyotrophic Lateral Sclerosis

期刊:Cell (2026-08-04) · DOI:10.1016/j.cell.2026.07.008 · 开源许可:BSD-3-Clause (allowed)

上游仓库:https://github.com/adaly/cSplotch @ 6d4f005a9ec2

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

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

# 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

二、已验证科学工具清单(5 个工具)

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.

Selftest Summary: Prepared cSplotch compositional inputs for 4 tissue sections, 1050 spots, 30 genes, 11 AARs, and 4 cell types.
Metrics: {"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.

Selftest Summary: Fitted cSplotch (SVI) across 6 genes and 1050 spots (100 posterior draws/gene).
Metrics: {"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.

Selftest Summary: Evaluated 120 (gene, AAR, cell_type) contrasts between G93A p120 and WT p120: 46 reached BF >= 5; top hit Gfap (Vent_Horn, BG).
Metrics: {"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.

Selftest Summary: Discovered 3 spatial co-expression gene modules across 30 genes and 1050 spots (submodules_computed=True).
Metrics: {"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.

Selftest Summary: Completed MCV (optimal PCs=4) and Noise2Self denoising (global optimal 6 PCs, k=8; local k mean=5.92) across 1050 spots x 30 genes.
Metrics: {"mcv_optimal_pcs": 4, "mcv_min_mse": 0.358658, "noise2self_optimal_pcs": 6, "noise2self_optimal_k": 8, "local_k_mean": 5.916}

三、实测复现结果图展示

csplotch_de_volcano_posteriors.png
csplotch_spatial_expression.png
scself_spatial_modules_mcv.png