Paper2MCP v2 Verified Deliverable

Sequencing-based spatial transcriptomics with high sensitivity

期刊:Nature Communications (2026-10-21) · DOI:10.1038/s41467-026-78854-6 · 开源许可:MIT (allowed)

上游仓库:https://github.com/xuzaoxu/SalusSTS @ 6ad825eb88e5

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

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

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

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

qc_spatial_grid_to_h5ad MCP Verified ✓

Convert a Salus-STS binned expression grid (10x-style matrix/features/barcodes + spatial.txt) into a QC-annotated AnnData (.h5ad), an upstream QC PDF and a two-panel QC map (UMI and genes per bin), using the upstream grid2h5ad.py.

Selftest Summary: Converted 2560 bins x 63 genes with upstream grid2h5ad.py; median 56 UMI and 22 genes per bin.
Metrics: {"n_bins": 2560, "n_genes": 63, "total_umi": 131298, "median_umi_per_bin": 56.0, "p99_umi_per_bin": 153.0, "median_genes_per_bin": 22.0, "mean_pct_counts_mt": 10.1103, "mean_pct_counts_qc_genes": 10.8224, "bin_size_coord_units": 100, "approx_bin_um": 25.0}
estimate_tissue_boundary MCP Verified ✓

Plot the spatial density of captured barcodes and write a binned uint16 TIFF (one pixel per bin) that can be used to manually outline the tissue, using the upstream estBound_makeBins.py.

Selftest Summary: Binned 18000 barcodes at 100 coordinate units into a 64x37 TIFF (1838 occupied bins) and rendered the density plot.
Metrics: {"n_points": 18000, "bin_pixels": 100, "xmin": 102, "ymin": 207, "tif_height": 37, "tif_width": 64, "occupied_bins": 1838, "max_points_per_bin": 27}
build_barcode_umi_reads MCP Verified ✓

Merge a paired-end barcode read and a UMI read into one barcode+UMI FASTQ record (chip barcode reverse-complemented and padded/trimmed to 30 bp, UMI trimmed), using the upstream pebcumi.py. Reads whose UMI is too short are dropped.

Selftest Summary: Wrote 1202 of 1500 read pairs as 30 bp barcode + 10 bp UMI (298 dropped as too short).
Metrics: {"reads_in": 1500, "reads_out": 1202, "reads_dropped_too_short": 298, "input_barcode_length_hist": {"24": 177, "26": 208, "28": 184, "30": 745, "33": 186}, "output_read_length_hist": {"40": 1202}, "all_outputs_barcode30_plus_umi": true}
normalize_pe_barcode_reads MCP Verified ✓

Restructure long barcode+UMI reads with the upstream pe40rcbc.py: reverse-complement the 30 bp chip barcode and either keep the full remainder ('dark'), cut barcode plus the UMI window ('cut'), or pass the file through ('normal').

Selftest Summary: mode=cut: kept 1019 of 1200 reads; output read lengths [40].
Metrics: {"mode": "cut", "reads_in": 1200, "reads_out": 1019, "reads_filtered": 181, "output_read_length_hist": {"40": 1019}, "barcode_revcomp_verified": "200/200"}

三、实测复现结果图展示

01_qc_spatial_maps_synthetic.png
02_tissue_boundary_density_synthetic.png
03_read_structure_lengths_synthetic.png