期刊:Nature (2026-05-06) ·
DOI:10.1038/s41586-026-10452-4 ·
开源许可:Non-commercial/academic (restricted)
上游仓库:https://github.com/digitalcytometry/spatialecotyper @ d3e6c76b18c8
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip spatial-ecotyper-mcp.zip && cd spatial-ecotyper-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add spatial-ecotyper -- "$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
discover_spatial_ecotypes
MCP Verified ✓
Discover de novo spatial ecotypes (SEs) from single-cell spatial transcriptomics data using SpatialEcoTyper similarity network fusion and Louvain clustering.
{"n_cells_input": 2937, "n_cells_assigned": 2907, "n_ecotypes": 3, "n_neighborhoods": 128, "ecotype_counts": {"NewSE1": 1242, "NewSE2": 1162, "NewSE3": 503}}recover_spatial_ecotypes
MCP Verified ✓
Recover the 9 conserved pan-cancer spatial ecotypes (or custom NMF SEs) from single-cell ST or scRNA-seq data and profile consensus SE markers.
{"n_cells": 1251, "n_assigned_se": 444, "assignment_rate": 0.3549, "mean_pred_score": 0.6953, "n_ecotypes_recovered": 9, "ecotype_counts": {"NonSE": 807, "SE1": 71, "SE2": 1, "SE3": 76, "SE4": 17, "SE5": 55, "SE6": 45, "SE7": 64, "SE8": 103, "SE9": 12}}validate_spatial_organization
MCP Verified ✓
Quantify spatial autocorrelation (normalized Moran's I z-scores) and cell-state spatial colocalization significance for spatial ecotypes.
{"n_cells": 2907, "n_ecotypes": 3, "n_cell_states": 27, "mean_moran_zscore": 55.325, "max_moran_zscore": 66.138, "n_significant_coloc_ecotypes": 3, "moran_zscores": {"NewSE1": 53.484, "NewSE2": 66.138, "NewSE3": 46.352}, "coloc_pvals": {"NewSE1": 5.635e-10, "NewSE2": 3.144e-08, "NewSE3": 5.896e-08}}deconvolve_spatial_ecotypes
MCP Verified ✓
Deconvolve spatial ecotype abundances from Visium spots or bulk RNA-seq profiles using NMF models, with optional KNN spatial smoothing.
{"n_samples": 40, "n_ecotypes": 8, "n_model_features": 344, "smoothed_spots": true, "sample_level_abundances": {"SE1": 0.1397, "SE3": 0.1019, "SE4": 0.0977, "SE5": 0.1163, "SE6": 0.1209, "SE7": 0.1397, "SE8": 0.1275, "SE9": 0.1563}}

