期刊:Cell Reports Methods (2026-05-25) ·
DOI:10.1016/j.crmeth.2026.101465 ·
开源许可:GPL-3.0 (allowed)
上游仓库:https://github.com/hliulab/SpaDicer @ 44c2b253d51e
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip spadicer-mcp.zip && cd spadicer-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add spadicer -- "$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
preprocess_spatial_data
MCP Verified ✓
Preprocess paired scRNA-seq and ST expression matrices via Seurat v3 HVG selection, target_sum=1e4 normalization, log1p, and intersection/union gene alignment.
{"n_sc_cells": 240, "n_st_spots": 189, "n_selected_genes": 140, "n_sc_hvgs": 100, "n_st_hvgs": 100}train_spadicer
MCP Verified ✓
Train the SpaDicer cross-domain feature disentanglement network with adaptive gradient-norm weighting across cell-type classification, spatial regression, orthogonality, and reconstruction.
{"epochs": 10, "n_genes": 140, "n_classes": 8, "final_total_loss": 8.7458, "final_sc_cls_loss": 1.5831, "final_st_reg_loss": 11.1992, "train_sc_accuracy": 0.5625}reconstruct_pseudospace
MCP Verified ✓
Infer single-cell pseudo-spatial (x, y) coordinates and extract disentangled shared/private embeddings using a trained SpaDicer model.
{"n_cells": 240, "n_celltypes": 8, "pred_x_mean": 5.2384, "pred_y_mean": 9.1754, "pred_x_std": 1.8592, "pred_y_std": 4.3991}deconvolve_spots
MCP Verified ✓
Deconvolve spatial transcriptomics spots into cell-type proportions via SpaDicer cross-domain inference and softmax normalization.
{"n_spots": 189, "n_celltypes": 8, "mean_dominant_fraction": 0.6043, "mean_proportions": {"ExcitatoryL2and3": 0.3063, "ExcitatoryL4": 0.0746, "ExcitatoryL5": 0.1747, "ExcitatoryL6": 0.1663, "Olig": 0.1334, "Endo": 0.0377, "Astro": 0.019, "Other": 0.0878}}evaluate_spadicer
MCP Verified ✓
Evaluate trained SpaDicer performance across single-cell classification AUROC, ST spatial coordinate PCCs, global composition JSD, and optional spot-level SSIM/RMSE.
{"n_sc_cells": 240, "n_st_spots": 189, "sc_accuracy": 0.8417, "sc_macro_auroc": 0.9895, "sc_micro_auroc": 0.9863, "st_pcc_x": 0.9509, "st_pcc_y": 0.9961, "st_pairwise_dist_pcc": 0.976, "global_composition_jsd": 0.0623}

