期刊:Nature Communications (2026-01-09) ·
DOI:10.1038/s41467-025-67965-1 ·
开源许可:CC-BY-NC (restricted)
上游仓库:https://github.com/loicchadoutaud/sCellST @ 503e37ac9cf9
# 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
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.
{"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).
{"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.
{"n_points": 1018, "n_genes_plotted": 2, "genes": ["G000", "G001"], "has_class_panel": true}


| 训练设置 | 平均 PCC | 平均 SCC | 平均 R2 |
|---|---|---|---|
| 3 epoch, lr 1e-4(冒烟设置) | 0.022 | 0.011 | -25.49 |
| 300 epoch, lr 1e-3 | 0.161 | 0.060 | -0.23 |