Paper2MCP v2 Verified Deliverable

CellART: a unified framework for extracting single-cell information from high-resolution spatial transcriptomics.

期刊:Nature Computational Science (2026-10-05) · DOI:10.1038/s43588-026-01054-1 · 开源许可:MIT (allowed)

上游仓库:https://github.com/YangLabHKUST/CellART @ 8699c0deac6e

Pytest: passed MCP Stdio Selftest: passed Relocated Fresh Install: passed

一、一键安装与 MCP 接入(本地 / 远程统一接口)

# 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

二、已验证科学工具清单(4 个工具)

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.

Selftest Summary: Prepared CellART spatial tensors from 1562 filtered transcripts: gene_map (128, 128, 40), 24 nuclei, 4 cell types across 40 genes.
Metrics: {"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.

Selftest Summary: Trained CellART (poisson, 12 epochs) and annotated 24 cells across 4 types (mean max prob=0.988).
Metrics: {"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.

Selftest Summary: Refined 15 cell masks via CellART FLiM: mean area 47.0 -> 924.4 px (19.668x), mean UMI 26.54 -> 96.2.
Metrics: {"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.

Selftest Summary: Evaluated 24 CellART cells across 4 cell types (mean confidence=0.9832, accuracy=1.0, seg F1=1.0).
Metrics: {"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}

三、实测复现结果图展示

cellart_segmentation_refinement.png
cellart_spatial_annotation.png
cellart_training_and_nmf.png