Paper2MCP v2 Verified Deliverable

Spatial single-cell mapping of transcriptional differences across genetic backgrounds in mouse brains.

期刊:Nature Methods (2026-10-30) · DOI:10.1038/s41592-026-03289-2 · 开源许可:MIT (declared) (allowed)

上游仓库:https://github.com/wollmanlab/PySpots @ 0e4737bc59ff

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

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

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

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

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

design_treedpnmf_encoding MCP Verified ✓

Learn a Tree-DPNMF non-negative gene-to-bit encoding matrix W from hierarchical scRNA-seq cell-type annotations (ATLAS.Design.models.PNMF.get_DPNMF / get_PNMF) and project expression profiles into aggregate signature space.

Selftest Summary: Learned 96x14 Tree-DPNMF encoding matrix (mu=20, 120 iters, rel_recon_err=0.4402).
Metrics: {"n_genes": 96, "n_cells": 560, "n_bits": 14, "mu": 20.0, "iterations": 120, "final_delta": 1.090922080242606e-05, "reconstruction_rel_error": 0.4401662605756664}
build_spatial_priors MCP Verified ✓

Compute 3D mouse brain CCF kernel-density spatial priors across cell types (ATLAS.Decoding.KDESpatialPriors) and spatial tissue connected-component QC (ATLAS.Utils.geomu).

Selftest Summary: Computed 3D KDE spatial priors for 520 cells across 8 subclass types (mean max prior=0.475).
Metrics: {"n_reference_cells": 560, "n_measured_cells": 520, "n_cell_types": 8, "in_large_component_fraction": 1.0, "mean_max_prior": 0.4747868478298187}
annotate_and_align_scale MCP Verified ✓

Perform hierarchical harmonization, spatial-prior-guided cell-type annotation, and scRNA-seq neighbor matching via ATLAS SingleCellAlignmentLeveragingExpectations (SCALE).

Selftest Summary: Aligned and annotated 520 cells across 14 bits into 7 subclass types.
Metrics: {"n_cells": 520, "n_shared_bits": 14, "n_leiden_clusters": 11, "n_predicted_types": 7, "neuron_fraction": 0.75, "accuracy": 0.875, "ari": 0.8694339622641509}
impute_spatial_transcriptome MCP Verified ✓

Impute whole-transcriptome gene expression for spatial cells by averaging matched scRNA-seq reference neighbors and evaluate spatial/cluster reconstruction (ATLAS Gene_Imputation, basicu, evalu).

Selftest Summary: Imputed 96 genes across 520 spatial cells using k=15 scRNA-seq neighbors.
Metrics: {"n_cells": 520, "n_imputed_genes": 96, "n_neighbors_used": 15, "mean_gene_pearson_r": 0.8427367210388184, "mean_cluster_pearson_r": 0.9171016968977815, "cluster_variance_explained": 0.7969172362970229}
test_spatial_background_diff MCP Verified ✓

Identify cell types with altered 3D spatial distributions across genetic backgrounds or sexes using hemisphere-permutation entropy residuals and BH-FDR correction (ATLAS.Utils.statu).

Selftest Summary: Tested 8 cell types across 24 hemispheres; found 2 significant in BTBR_ASD vs WT_Male (top: 01_L2/3_IT_CTX, FDR=0).
Metrics: {"n_animals": 12, "n_hemispheres": 24, "n_cell_types_tested": 8, "significant_mutant_types": ["01_L2/3_IT_CTX", "08_Oligo_NN"], "significant_sex_types": [], "top_mutant_type": "01_L2/3_IT_CTX", "top_mutant_fdr": 0.0}

三、实测复现结果图展示

fig1_treedpnmf_encoding.png
fig2_scale_alignment_imputation.png
fig3_genetic_background_diff.png