Paper2MCP v2 Verified Deliverable

Spatial mapping of RNA turnover kinetics in the mouse brain

期刊:Nature Neuroscience (2026-08-31) · DOI:10.1038/s41593-026-02420-y · 开源许可:MIT (allowed)

上游仓库:https://github.com/hongjie7/RNAkinetoScope @ b5cd23a475e9

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

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

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

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add spatial-nt-seq -- "$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 个工具)

simulate_metabolic_labeling_data MCP Verified ✓

Simulate metabolic RNA labeling AnnData with ground-truth synthesis/degradation rates and compute NTR stats.

Selftest Summary: Simulated 120 cells/spots x 100 HVGs across 3 groups (label_time=240.0 min, mean NTR=0.3636).
Metrics: {"n_cells": 120, "n_genes_retained": 100, "n_cell_types": 3, "label_time_min": 240.0, "mean_ntr": 0.363638}
compute_ntr_and_align_layers MCP Verified ✓

Align new/old RNA count layers across AnnData objects and compute cell/spot NTR and size factors.

Selftest Summary: Computed NTR & size factors for 180 cells/spots x 100 genes across 3 'cell_type' groups (mean NTR=0.3325).
Metrics: {"n_cells": 180, "n_genes": 100, "n_groups": 3, "mean_ntr": 0.3325, "median_ntr": 0.333584, "group_mean_ntr": {"Type_1": 0.325129, "Type_2": 0.33343, "Type_3": 0.338188}}
infer_group_rna_kinetics MCP Verified ✓

Calculate group-level RNA synthesis (alpha), degradation (gamma), half-life, and NTR with optional KNN imputation.

Selftest Summary: Inferred imputed group kinetics for 3 groups x 100 genes (t=240.0 min).
Metrics: {"n_groups": 3, "n_genes": 100, "method": "imputed", "label_time_min": 240.0, "median_halflife_by_group": {"Type_1": 162.069, "Type_2": 162.5662, "Type_3": 147.3482}, "median_alpha_by_group": {"Type_1": 19.1853, "Type_2": 19.9087, "Type_3": 20.0165}, "median_gamma_by_group": {"Type_1": 0.004277, "Type_2": 0.004264, "Type_3": 0.004704}, "true_gamma_log10_r": 0.8511}
infer_metacell_rna_kinetics MCP Verified ✓

Perform PCA-neighborhood metacell smoothing and KNN half-life imputation to infer single-cell/spot RNA kinetics.

Selftest Summary: Computed metacell kinetics (180 cells/spots x 100 genes, n_neighbors=11, finite half-life coverage=100.0%).
Metrics: {"n_cells": 180, "n_genes": 100, "n_groups": 3, "n_neighbors": 11, "finite_halflife_fraction": 1.0, "median_halflife_min": 158.0044, "cluster_median_halflife": {"Type_1": 162.29, "Type_2": 161.6497, "Type_3": 146.8883}}

三、实测复现结果图展示

group_kinetics_benchmark_and_scaling.png
metacell_kinetics_landscape.png
ntr_cell_distribution_and_pca.png