Paper2MCP v2 Verified Deliverable

Advancing spatial cellular communication inference with ligand diffusion and transport model

期刊:Communications Biology (2026-01-07) · DOI:10.1038/s42003-025-09413-w · 开源许可:MIT (allowed)

上游仓库:https://github.com/jiatingyu-amss/SCILD @ 683515043df1

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

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

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

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

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

build_lr_database MCP Verified ✓

Build the binary ligand x receptor database SCILD needs, from CellChat or CellPhoneDB, keeping pairs expressed in enough spots of a spatial AnnData.

Selftest Summary: Built CellChat (human) ligand-receptor database: 19 ligands x 29 receptors, 44 pairs expressed in at least 5.0% of 100 spots.
Metrics: {"n_ligands": 19, "n_receptors": 29, "n_lr_pairs": 44, "n_spots": 100, "database": "CellChat", "species": "human", "min_cell_pct": 0.05}
run_scild_inference MCP Verified ✓

Run SCILD (ligand diffusion plus optimal transport) and export, per spot and per ligand-receptor pair, the total signal sent (S) and received (R). Uses a sparse aggregation instead of the upstream dense tensor.

Selftest Summary: SCILD solved 100 spots x 19 ligands x 29 receptors (44 LR pairs) in 5 iterations (relative error 0.12929358039054717); wrote a 100 x 88 sent/received signal table.
Metrics: {"n_spots": 100, "n_ligands": 19, "n_receptors": 29, "n_lr_pairs": 44, "n_signal_columns": 88, "transport_plan_nnz": 440000, "final_relative_error": 0.12929358039054717, "iterations": 5, "total_transported_signal": 30.060592620142174}
rank_spatial_lr_signals MCP Verified ✓

Rank SCILD signals by spatial autocorrelation (Moran I) on a KNN spatial graph, for sent, received or both directions.

Selftest Summary: Computed Moran I for 88 signals (both); 30 are significant (p<0.05). Most spatially structured: PRSS2->PARD3 (S) (Moran I = 0.739).
Metrics: {"n_signals_tested": 88, "n_valid": 88, "n_significant_p05": 30, "top_signals": [["PRSS2->PARD3 (S)", 0.7386377566762554], ["MIF->CD74 (R)", 0.7064830558127722], ["PRSS1->PARD3 (S)", 0.6380216641694152], ["C3->ITGAX (S)", 0.592061014141195], ["SPP1->ITGB1 (S)", 0.5244481751918527], ["SPP1->ITGB6 (S)", 0.3946232609188659], ["C3->ITGB2 (S)", 0.30981089774689485], ["MDK->ITGA6 (R)", 0.30060807091766184], ["INS->INSR (S)", 0.2826366979650144], ["SPP1->ITGAV (S)", 0.28071638566266505]]}
plot_spatial_lr_signal MCP Verified ✓

Plot one SCILD signal over the tissue next to a cell annotation, as in the SCILD PDAC tutorial.

Selftest Summary: Plotted C3->ITGB2 (S) over 100 spots (min 4.58e-25, max 0.153).
Metrics: {"signal": "C3->ITGB2 (S)", "n_spots": 100, "signal_min": 4.584086763620215e-25, "signal_max": 0.1529750204962382, "signal_mean": 0.0319034533736249, "annotation_column": "cell_type"}

三、实测复现结果图展示

repro_01_tutorial_signal_map.png
repro_02_top_spatial_signals.png
repro_03_top_moran_signal_map.png