期刊:Nature Communications (2026-05-18) ·
DOI:10.1038/s41467-026-72872-0 ·
开源许可:GPL-3.0 (allowed)
上游仓库:https://github.com/Zhaocy-Research/STARS @ 1b70a968862c
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip stars-mcp.zip && cd stars-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add stars -- "$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
stars_superres_impute
MCP Verified ✓
Align H&E histology patches with Visium spots via ViT-256 contrastive learning (vision_transformer.vit_small, modules.ProjectionHead, vis_model.FeedForward/ELU/cross_entropy) and decode 16x16 sub-patch super-resolution gene expression.
{"n_spots": 8, "n_genes": 80, "n_sub_spots": 4096, "grid_shape": [64, 64], "val_pearson_r": 0.1606, "all_pearson_r": 0.4504, "val_mse": 0.1747, "final_contrastive_loss": 1.7917}stars_segment_and_aggregate
MCP Verified ✓
Segment individual cell nuclei from H&E histology and aggregate sub-spot gene expression into single-cell profiles via Graph Attention (GATConv) and Cross-Attention.
{"n_nuclei_segmented": 376, "n_cells_mapped": 376, "mean_subspots_per_cell": 6.9, "mean_cell_area_px": 389.0, "gat_consistency_mse": 0.0078}stars_annotate_and_refine
MCP Verified ✓
Annotate single cells with tissue marker panels and refine single-cell transcriptomes via top-k same-type scRNA-seq meta-cell averaging, evaluated by UMAP Silhouette score.
{"n_cells": 378, "n_cell_types": 7, "shared_scrna_genes": 53, "n_ref_matched_cells": 246, "silhouette_raw": -0.0793, "silhouette_refined": 0.3445, "silhouette_gain": 0.4239, "cell_type_counts": {"CD4_T_cell": 114, "Epithelial_Tumor": 67, "CAF_Fibroblast": 65, "Macrophage_Monocyte": 59, "CD8_T_cell": 36, "NK_cell": 26, "B_cell": 11}}stars_spatial_domains
MCP Verified ✓
Identify spatial domains and connected tissue regions from super-resolution or single-cell ST data using stars_omics.cluster and stars_omics.connected_components.
{"n_observations": 4096, "grid_shape": [64, 64], "n_domains": 5, "n_connected_regions": 22, "domain_counts": {"0": 1619, "1": 1072, "2": 1287, "3": 79, "4": 39}}

