Paper2MCP v2 Verified Deliverable

Conserved anterior/posterior tissue asymmetry encodes proximal/distal positional information during axolotl limb regeneration

期刊:Cell reports (2026-07-14) · DOI:10.1016/j.celrep.2026.117669 · 开源许可:GPL-3.0 (allowed)

上游仓库:https://github.com/towerlab/SpatialFlux @ 5e7430c4026a

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

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

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

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

spatial_calc_reference MCP Verified ✓

Scale Fiji/ImageJ RGB reference-line pixel coordinates into spatial transcriptomics spot space using SpatialFlux::SpatialCalc.

Selftest Summary: Scaled 398 Fiji reference pixels across 3 regions (Proximal, Distal, Anterior) with factor 0.142500.
Metrics: {"n_reference_pixels": 398, "scale_factor_used": 0.1425, "tissues": ["Proximal", "Distal", "Anterior"], "pixels_per_tissue": {"Proximal": 120, "Distal": 120, "Anterior": 158}}
spatial_flux_gradient MCP Verified ✓

Compute Euclidean SpatialFlux distance gradients (sf_abs, sf_rel) from target spatial spots to Fiji lines or spot clusters using SpatialFlux, Spatial2Flux, and CoordMerge.

Selftest Summary: Computed SpatialFlux (fiji) distances for 1089 spots (sf_abs range [1.8461, 7861.7871], mean sf_rel=0.4869).
Metrics: {"n_spots": 1089, "mode": "fiji", "hd": false, "sf_abs_min": 1.8461, "sf_abs_median": 3931.2824, "sf_abs_max": 7861.7871, "sf_rel_mean": 0.4869}
spatial_gradient_genes MCP Verified ✓

Identify genes significantly correlated with SpatialFlux gradients, plot LOESS degree=0 smoothing curves, and cluster genes via SpatialVis::gradient_heatmap and PseudoFlux::GeneGet.

Selftest Summary: Tested 236 genes across 1089 spots; 184 significant at FDR<0.05. Top +: ACTG1.5 (rho=0.663), Top -: PVALB (rho=-0.7759).
Metrics: {"n_spots_matched": 1089, "n_genes_tested": 236, "n_significant_fdr": 184, "n_heatmap_genes": 35, "n_clusters": 3, "cluster_counts": {"cluster_1": 27, "cluster_2": 6, "cluster_3": 2}, "top_positive_gene": "ACTG1.5", "top_positive_spearman": 0.663, "top_negative_gene": "PVALB", "top_negative_spearman": -0.7759, "plotted_curve_genes": ["PVALB", "ALDH1A2", "JUNB", "CYP26B1", "TGFBI", "CTNNB1"]}
spatial_axis_asymmetry MCP Verified ✓

Scan SpatialFlux Euclidean gradients across rotated anterior/posterior dividing boundaries to quantify off-midline A/P asymmetry and A/P-Pr/Di positional coupling.

Selftest Summary: Scanned 41 boundary angles across 1089 spots: optimal asymmetric angle -27 deg achieves |r|=0.1776 (classic 0 deg |r|=0.1201, gain=+0.0575); A/P-Pr/Di coupling r=0.2337 (p=5.696e-15).
Metrics: {"n_spots": 1089, "n_angles_tested": 41, "classic_midline_abs_r": 0.1201, "optimal_angle_deg": -27, "optimal_abs_r": 0.1776, "r_gain": 0.0575, "ap_prdi_correlation": 0.2337, "ap_prdi_pvalue": 5.696e-15}

三、实测复现结果图展示

spatialflux_asymmetry_and_curves.png
spatialflux_gradient_heatmap.png
spatialflux_prdi_gradient.png