期刊:Nature Computational Science (2026-10-05) ·
DOI:10.1038/s43588-026-01054-1 ·
开源许可:MIT (allowed)
上游仓库:https://github.com/YangLabHKUST/CellART @ 8699c0deac6e
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip cellart-mcp.zip && cd cellart-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add cellart -- "$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
cellart_prepare_reference_and_xenium
MCP Verified ✓
Preprocess Xenium spatial transcripts, nucleus boundaries, and paired scRNA-seq reference into CellART gene_map, segmentation_mask, and basis matrices.
{"map_height": 128, "map_width": 128, "n_genes": 40, "n_celltypes": 4, "n_nuclei": 24, "n_transcripts_filtered": 1562}cellart_train_and_predict
MCP Verified ✓
Train CellART joint spatial segmentation and probabilistic cell-type deconvolution model (reference-guided or reference-free NMF mode) and predict single-cell annotations.
{"n_cells_predicted": 24, "n_genes": 40, "n_celltypes_detected": 4, "mean_max_probability": 0.9883, "epochs": 12, "likelihood": "poisson", "celltype_counts": {"Epithelial": 6, "Fibroblast": 6, "Macrophage": 6, "T_cell": 6}}cellart_segment_refinement
MCP Verified ✓
Perform CellART FLiM (CellPredictNet) cell boundary expansion from initial nuclei masks and quantify area and UMI capture gains.
{"n_nuclei_initial": 24, "n_cells_refined": 15, "mean_nuclei_area_px": 47.0, "mean_refined_area_px": 924.4, "area_expansion_ratio": 19.668, "mean_nuclei_umi": 26.54, "mean_refined_umi": 96.2, "umi_capture_gain": 3.624, "initial_f1": 1.0, "initial_jaccard": 1.0, "refined_f1": 0.3871, "refined_jaccard": 0.24, "tp": 6, "fp": 1, "fn": 18}cellart_evaluate_and_visualize
MCP Verified ✓
Evaluate CellART cell-type annotation confidence/accuracy and segmentation F1/Jaccard scores and render spatial overview plots.
{"n_cells": 24, "n_genes": 40, "n_celltypes": 4, "mean_assignment_confidence": 0.9832, "mean_umi_per_cell": 27.92, "celltype_counts": {"Epithelial": 6, "Fibroblast": 6, "Macrophage": 6, "T_cell": 6}, "annotation_accuracy": 1.0, "matched_cells_for_accuracy": 24, "f1_score": 1.0, "jaccard_index": 1.0, "tp": 24, "fp": 0, "fn": 0}

