Paper2MCP v2 Verified Deliverable

Spatial isoform sequencing at single-cell resolution reveals cell-type-specific spatial isoform variability in multiple brain cell types

期刊:Nature Methods (2026-09-04) · DOI:10.1038/s41592-026-03211-w · 开源许可:GPL-2.0 (allowed)

上游仓库:https://github.com/algbio/spl-IsoQuant @ 4fcbd0dff9e0

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

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

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

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

detect_spatial_barcodes MCP Verified ✓

Detect spatial/single-cell barcodes, UMIs, and concatenated cDNAs from long reads using Spl-IsoQuant-2.

Selftest Summary: Spl-IsoQuant-2 (stereoseq) detected 5/5 barcoded subreads across 4 unique barcodes.
Metrics: {"mode": "stereoseq", "input_reads": 5, "barcoded_subreads": 5, "valid_barcoded_reads": 5, "reliable_umi_reads": 5, "unique_barcodes": 4, "barcode_detection_rate": 1.0}
quantify_spatial_isoforms MCP Verified ✓

Quantify genes and transcript isoforms from sorted BAM alignments with UMI deduplication and allinfo export via Spl-IsoQuant-2.

Selftest Summary: Spl-IsoQuant-2 (stereoseq_nosplit) quantified 21 genes and 34 transcripts (239 UMI-filtered spliced reads)
Metrics: {"mode": "stereoseq_nosplit", "data_type": "nanopore", "genes_quantified": 21, "transcripts_quantified": 34, "unique_gene_barcodes_pairs": 111, "total_reads_saved": 331, "spliced_reads_saved": 239, "total_assignments_processed": 366, "assigned_to_any_gene": 362, "assigned_to_any_gene_and_barcoded": 360, "spliced": 267, "spliced_and_barcoded": 265, "uniquely_assigned": 360, "uniquely_assigned_and_barcoded": 360, "uniquely_assigned_and_spliced": 265, "uniquely_assigned_and_spliced_and_barcoded": 265}
build_spatial_isoform_matrix MCP Verified ✓

Annotate Spl-IsoQuant-2 allinfo reads with cell types/regions and construct a sparse cell-by-isoform PSI matrix using Spl-IsoFind.

Selftest Summary: Annotated 4079/5135 reads and constructed sparse PSI matrix (2500 cells x 15 isoforms across 6 genes).
Metrics: {"raw_reads": 5135, "labeled_reads": 4079, "n_cells": 2500, "n_isoforms_retained": 15, "n_genes_retained": 6, "stored_psi_entries": 5965, "explicit_zero_entries": 3786}
detect_spatially_variable_isoforms MCP Verified ✓

Identify spatially variable isoforms (SVIs) via k-NN Moran's I / Geary's C and cell-type-constrained permutation testing in Spl-IsoFind.

Selftest Summary: Tested 13/15 isoforms (moransI, k=10); significant counts by cell type: {'All': 4, 'ExciteNeuron': 4, 'Astro': 0}.
Metrics: {"n_isoforms_input": 15, "n_tested_primary": 13, "significant_by_celltype": {"All": 4, "ExciteNeuron": 4, "Astro": 0}, "top_svi_isoform": "ENSMUST00000120878.9", "top_svi_score": 0.22, "ctperm_tested": 4, "ctperm_significant": 4}
plot_spatial_isoforms MCP Verified ✓

Generate spatial hexbin relative expression (PSI) maps and regional mean PSI barplots using Spl-IsoFind.

Selftest Summary: Rendered spatial hexplot for ENSMUST00000028727.11 (ExciteNeuron, mean PSI=0.9166, n=861 cells).
Metrics: {"isoform_id": "ENSMUST00000028727.11", "celltype_filter": "ExciteNeuron", "n_cells_expressing_gene": 861, "mean_psi": 0.9166, "n_regions_plotted": 3}

三、实测复现结果图展示

fig1_snap25_spatial_hexplot_and_regions.png
fig2_morans_i_and_ctperm_validation.png
fig3_svi_counts_and_isoquant_stats.png