期刊:Nature Computational Science (2026-01-13) ·
DOI:10.1038/s43588-025-00941-3 ·
开源许可:none (restricted)
上游仓库:https://github.com/QuKunLab/SPEED @ 2aafabb14797
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip speed-mcp.zip && cd speed-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add speed -- "$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
build_atlas_prior
MCP Verified ✓
SPEED stage 1: train the deep matrix factorization on an atlas-level single-cell chromatin accessibility matrix and export the learned peak embeddings as the prior for stage 2.
{"n_cells": 600, "n_peaks": 300, "emb_features": 32, "epochs_run": 14, "early_stopped": false, "final_train_loss": 0.49598, "best_val_loss": 0.50348, "peak_embedding_std": 0.5878, "peak_key": "peak_SPEED", "device": "cpu"}denoise_spatial_epigenome
MCP Verified ✓
SPEED stage 2: denoise a spatial chromatin accessibility matrix using spot coordinates and, optionally, the single-cell atlas prior. Returns denoised probabilities, spot and peak embeddings and a before/after map.
{"n_spots": 400, "n_peaks": 300, "n_peaks_input": 300, "used_atlas_prior": true, "k_degree": 5, "epochs_run": 19, "early_stopped": false, "best_val_loss": 4.52695, "observed_density": 0.0598, "mean_denoised_value": 0.9963, "device": "cpu", "auc_observed_vs_true_state": 0.6136, "auc_denoised_vs_true_state": 0.6369, "auc_depth_normalized_vs_true_state": 0.6403}binarize_denoised_peaks
MCP Verified ✓
Binarize the depth-normalized SPEED output into open and closed peaks with the upstream per-spot and per-peak percentile rule.
{"n_spots": 400, "n_peaks": 300, "binarized_density": 0.3607, "observed_density": 0.0598, "binarized_precision": 0.6636, "binarized_recall": 0.9705, "binarized_f1": 0.7883, "true_density": 0.2467, "observed_precision": 0.9524, "observed_recall": 0.231, "observed_f1": 0.3719}cluster_spatial_domains
MCP Verified ✓
Cluster spots into spatial domains from the SPEED spot embedding (Leiden or k-means) and report ARI and NMI when a ground-truth domain column exists.
{"n_spots": 400, "n_domains": 5, "method": "kmeans", "domain_sizes": {"0": 69, "1": 85, "2": 86, "3": 81, "4": 79}, "ari_vs_ground_truth": 0.9822, "nmi_vs_ground_truth": 0.9773, "baseline_ari_svd_kmeans": 0.9746}| 指标 | 基线 | SPEED |
|---|---|---|
| 去噪后概率对隐藏真值的 AUC | 0.614(原始观测) | 0.941(SPEED + 图谱先验);0.9996(SPEED,无先验) |
| 开放位点召回率 | 0.231(原始观测) | 0.971(二值化后) |
| 开放位点精度 | 0.952(原始观测) | 0.664(二值化后) |
| 开放位点 F1 | 0.372(原始观测) | 0.788(二值化后) |
| 空间域 ARI(5 个域,k-means) | 0.975(原始数据 SVD) | 0.982(SPEED 嵌入) |


