Paper2MCP v2 Verified Deliverable

sCellST predicts single-cell gene expression from H& E images

期刊:Nature Communications (2026-01-09) · DOI:10.1038/s41467-025-67965-1 · 开源许可:CC-BY-NC (restricted)

上游仓库:https://github.com/loicchadoutaud/sCellST @ 503e37ac9cf9

Pytest: passed MCP Stdio Selftest: passed Relocated Fresh Install: passed
请先读这段:本页所有数字与图片都来自一份合成的 Visium 风格数据(固定随机种子,200 个 spot、1018 个细胞、60 个基因)。论文使用的 HEST 基准数据为受限数据集,我们无法获取,因此没有复现论文中的任何结果。下列“通过”仅表示:工具调用上游代码可正常训练、预测、绘图,并能在全新目录与全新环境中安装运行。

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

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

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

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

train_gene_predictor 调用通过(合成数据)

Train an sCellST multiple-instance-learning model that predicts single-cell gene expression from cell embeddings, supervised by spot-level spatial transcriptomics.

Selftest Summary: Trained sCellST predictor on 1 slide(s), 20 genes, 2 epoch(s) run (max 2).
Metrics: {"n_genes": 20, "epochs_run": 2, "best_val_loss": 24.381145477294922, "final_callback_metrics": {"lr-AdamW": 9.999999747378752e-05, "val_loss": 24.381145477294922, "val/mse/G000": 26.1710205078125, "val/mse/G001": 23.467723846435547, "val/mse/G002": 24.20292854309082, "val/mse/G003": 24.977584838867188, "val/mse/G004": 23.93865203857422, "val/mse/G005": 26.297138214111328, "val/mse/G006": 24.287044525146484, "val/mse/G007": 23.70563316345215, "val/mse/G008": 23.459224700927734, "val/mse/G009": 22.864322662353516, "val/mse/G010": 26.31440544128418, "val/mse/G011": 23.084688186645508, "val/mse/G012": 25.220069885253906, "val/mse/G013": 25.203121185302734, "val/mse/G014": 25.251781463623047, "val/mse/G015": 23.662609100341797, "val/mse/G016": 23.848844528198242, "val/mse/G017": 25.064443588256836, "val/mse/G018": 23.005062103271484, "val/mse/G019": 23.596599578857422, "val/pcc/G000": -0.14942719042301178, "val/pcc/G001": 0.11408210545778275, "val/pcc/G002": 0.30245906114578247, "val/pcc/G003": 0.06317439675331116, "val/pcc/G004": 0.4065314531326294, "val/pcc/G005": 0.3084171712398529, "val/pcc/G006": -0.1679566204547882, "val/pcc/G007": -0.39127910137176514, "val/pcc/G008": -0.11561719328165054, "val/pcc/G009": -0.1276603639125824, "val/pcc/G010": -0.1323082596063614, "val/pcc/G011": -0.5184972882270813, "val/pcc/G012": 0.0015485223848372698, "val/pcc/G013": 0.200810968875885, "val/pcc/G014": 0.09971710294485092, "val/pcc/G015": 0.010407059453427792, "val/pcc/G016": 0.034634627401828766, "val/pcc/G017": 0.16120050847530365, "val/pcc/G018": -0.19141072034835815, "val/pcc/G019": -0.45034047961235046, "train_loss": 24.2812557220459}}
predict_gene_expression 调用通过(合成数据)

Predict gene expression with a trained sCellST model: per spot (bag, can be scored against measured counts) or per cell (inference).

Selftest Summary: Predicted 195 x 20 (bag) for slide SYN1.
Metrics: {"mean_pcc": 0.022410168079659343, "mean_scc": 0.010983825732572148, "mean_r2": -25.487509298324586, "n_predicted_obs": 195, "n_genes": 20, "n_aligned_obs": 195}
plot_spatial_expression 调用通过(合成数据)

Plot predicted gene expression over tissue coordinates from the h5ad written by predict_gene_expression, with a cell-class panel for cell-level predictions.

Selftest Summary: Plotted 2 gene(s) over 1018 points.
Metrics: {"n_points": 1018, "n_genes_plotted": 2, "genes": ["G000", "G001"], "has_class_panel": true}

三、合成数据上的流程演示图(非论文结果)

repro_1_pcc_3_vs_300_epochs.png
repro_2_spatial_expression_bag.png
repro_3_cell_level_spatial.png

四、实际数字与局限

训练设置平均 PCC平均 SCC平均 R2
3 epoch, lr 1e-4(冒烟设置)0.0220.011-25.49
300 epoch, lr 1e-30.1610.060-0.23