期刊:Cell Reports Methods (2026-06-12) ·
DOI:10.1016/j.crmeth.2026.101483 ·
开源许可:AGPL-3.0 (allowed)
上游仓库:https://github.com/jiadongm/PhiSpace @ 8a9d96cf595e
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip phi-space-st-mcp.zip && cd phi-space-st-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add phi-space-st -- "$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
train_phispace_model
MCP Verified ✓
Train a reusable PhiSpace PLS/PCA regression model (PhiSpaceModel) from an annotated scRNA-seq reference SingleCellExperiment.
{"n_cells": 938, "n_genes": 500, "n_phenotypes": 7, "phenotype_labels": ["astrocytes_ependymal", "endothelial-mural", "interneurons", "microglia", "oligodendrocytes", "pyramidal CA1", "pyramidal SS"], "reg_method": "PLS", "ref_assay": "logcounts", "n_selected_features": 219, "ncomp": 7, "runtime_sec": 0.19}annotate_spatial_states
MCP Verified ✓
Compute continuous Phi-Space ST cell-state scores and deconvolution probabilities for spatial transcriptomics spots/cells.
{"n_spots": 2695, "n_cell_types": 7, "cell_types": ["interneurons", "pyramidal SS", "pyramidal CA1", "oligodendrocytes", "microglia", "endothelial-mural", "astrocytes_ependymal"], "score_min": -0.8703, "score_max": 1, "mean_proportions": {"interneurons": 0.1685, "pyramidal SS": 0.268, "pyramidal CA1": 0.0679, "oligodendrocytes": 0.1551, "microglia": 0.1183, "endothelial-mural": 0.1066, "astrocytes_ependymal": 0.1157}, "has_spatial_plot": true, "runtime_sec": 0.937}smooth_and_cluster_niches
MCP Verified ✓
Perform spatial k-NN smoothing on Phi-Space scores and identify spatial tissue niches via PCA + k-means or silhouette selection.
{"n_spots": 2695, "n_niches": 6, "k_neighbors": 15, "kernel": "gaussian", "ncomp": 5, "variance_explained": 0.9879, "max_silhouette": {}, "niche_sizes": {"Niche_1": 631, "Niche_2": 331, "Niche_3": 224, "Niche_4": 416, "Niche_5": 237, "Niche_6": 856}, "runtime_sec": 0.576}analyze_celltype_copresence
MCP Verified ✓
Compute global and niche-stratified cell-type co-presence correlation matrices from Phi-Space scores and extract PCA embeddings.
{"n_groups": 6, "n_cell_types": 7, "n_pairs": 21, "pc_variance_explained": [0.4257, 0.3105, 0.1338], "top_positive_pair": {"pair": "endothelial-mural <-> astrocytes_ependymal", "r": 0.3967}, "top_negative_pair": {"pair": "pyramidal SS <-> oligodendrocytes", "r": -0.6016}}

