期刊:Nature Genetics (2026-04-27) ·
DOI:10.1038/s41588-026-02579-x ·
开源许可:none (restricted)
上游仓库:https://github.com/jiazhao97/INSPIRE @ 1d7e7a695410
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip inspire-mcp.zip && cd inspire-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add inspire -- "$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
inspire_integrate_sections
MCP Verified ✓
Integrate multiple spatial transcriptomics sections with INSPIRE (graph attention variant): shared latent space plus interpretable spatial factors and gene loadings.
{"n_sections": 2, "n_spots": 1152, "n_shared_hvgs": 158, "n_spatial_factors": 4, "latent_dim": 32, "n_training_steps": 60, "asw_section_mixing": 0.0215}inspire_evaluate_integration
MCP Verified ✓
Cluster the INSPIRE latent space and score it against known domain labels with the repository's ASW, ARI and NMI metrics.
{"n_spots": 1152, "n_clusters": 4, "ARI": 0.9977, "NMI": 0.9958, "ASW_label": 0.7003, "ASW_section_mixing": 0.0004}inspire_extract_gene_programs
MCP Verified ✓
List the top genes of each spatial factor and score gene programs with factor diversity and NPMI coherence.
{"n_factors": 6, "n_genes": 249, "n_top_genes": 10, "factor_diversity": 0.8667, "factor_coherence_npmi": 0.0308}inspire_plot_spatial_factors
MCP Verified ✓
Map spatial-factor proportions and the dominant factor onto tissue coordinates across all sections.
{"n_factors_total": 6, "n_factors_plotted": 3, "n_spots": 1152, "dominant_factor_counts": {"1": 288, "2": 1, "3": 1, "4": 264, "5": 287, "6": 311}}

