Paper2MCP v2 Verified Deliverable

Decoding cell state transitions driven by dynamic cell-cell communication in spatial transcriptomics.

期刊:Nature Computational Science (2026-01-05) · DOI:10.1038/s43588-025-00934-2 · 开源许可:Apache-2.0 (allowed)

上游仓库:https://github.com/SunXQlab/CCCvelo @ 19236fafa0f3

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

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

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

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add cccvelo-pinn-cell -- "$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_ccc_multilayer_network MCP Verified ✓

Construct sender-receiver multilayer CCC networks (Lig-Rec-TF-TG) and compute spatial diffusion/contact LR-TF signaling scores.

Selftest Summary: Constructed multilayer CCC network for 3 receiver clusters (90 receiver cells): 5 ligands, 8 receptors, 5 TFs, 8 TGs.
Metrics: {"n_cells_total": 120, "n_receiver_cells": 90, "n_ligands": 5, "n_receptors": 8, "n_tfs": 5, "n_tgs": 8, "n_lr_links": 864, "n_tftg_links": 864}
train_cccvelo_pinn MCP Verified ✓

Identify root cell and train the SpatialVelocity physics-informed neural network to infer RNA velocity and latent time.

Selftest Summary: Trained SpatialVelocity PINN for 25 epochs on 90 cells (8 TGs, 5 TFs, 8 LR pairs); loss reduced from 4.4653 to 2.3947.
Metrics: {"n_receiver_cells": 90, "n_tgs": 8, "n_tfs": 5, "n_lrs": 8, "iroot_index": 23, "iroot_cluster": "EarlyState", "initial_loss": 4.465328, "final_loss": 2.394738, "mean_abs_velocity": 0.548125, "fit_t_min": 0.0, "fit_t_max": 1.0}
infer_spatial_velocity_pseudotime MCP Verified ✓

Compute spatial velocity transition graph, velocity pseudotime, and spatial trajectory visualizations.

Selftest Summary: Computed spatial velocity graph and pseudotime for 90 cells (range [0.000, 1.000], Spearman(fit_t, v_psd)=0.828).
Metrics: {"n_cells": 90, "pseudotime_min": 0.0, "pseudotime_max": 1.0, "spearman_fit_t_vs_pseudotime": 0.8283, "cluster_mean_pseudotime": {"EarlyState": 0.621, "LateState": 0.3242, "TransState": 0.4949}}
analyze_lrtg_jacobian_regulation MCP Verified ✓

Compute cell-resolved Jacobian matrices (dV_TG/dTF and dTF/dLR) to quantify and rank causal LR-to-TG regulatory edges.

Selftest Summary: Computed cell-resolved LR->TG causal Jacobian tensor (90, 8, 8); mean |Jacobian|=0.0018, top pair=BDNF_DRD4->SPRED1.
Metrics: {"n_cells": 90, "n_tgs": 8, "n_lrs": 8, "mean_abs_jacobian": 0.001789, "top_pairs": [{"lr_pair": "BDNF_DRD4", "target_gene": "SPRED1", "score": 0.02306}, {"lr_pair": "BDNF_DRD4", "target_gene": "CCND3", "score": 0.01542}, {"lr_pair": "BDNF_SORT1", "target_gene": "SPRED1", "score": 0.01459}, {"lr_pair": "BDNF_SORT1", "target_gene": "CCND3", "score": 0.00972}, {"lr_pair": "DLK1_NOTCH3", "target_gene": "SPRED1", "score": 0.00724}]}

三、实测复现结果图展示

01_pinn_training_and_pseudotime.png
02_spatial_velocity_streamline.png
03_lrtg_jacobian_heatmap.png