Paper2MCP v2 Verified Deliverable

Multi-omics-driven personalized management of advanced HCC

期刊:Cell Reports Medicine (2026-10-02) · DOI:10.1016/j.xcrm.2026.103085 · 开源许可:none (restricted)

上游仓库:https://github.com/shaoweinuaa/GCSS @ dc574a9a3c3e

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

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

# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip gcss-mcp.zip && cd gcss-mcp
bash install.sh
.venv/bin/python selftest.py

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add gcss -- "$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

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

imc_major_cluster MCP Verified ✓

Preprocess Imaging Mass Cytometry (IMC) single-cell CSVs with asinh transformation, quantile winsorization, min-max scaling, Harmony batch correction, UMAP, and FastPG clustering (upstream 1_Major_cluster.R).

Selftest Summary: Clustered 720 IMC cells across 3 batches into 7 FastPG clusters using 7 Harmony PCs.
Metrics: {"n_cells": 720, "n_markers": 25, "n_major_markers": 17, "n_pcs_95pct": 7, "n_clusters": 7, "n_batches": 3}
imc_annotate_major MCP Verified ✓

Annotate major IMC FastPG clusters into cell types, remove noise ('rm') clusters, and generate annotated UMAP and canonical marker heatmaps (upstream 2_Anno.R).

Selftest Summary: Annotated 720 cells into 5 major cell types (removed 0).
Metrics: {"n_cells_retained": 720, "n_cells_removed": 0, "n_celltypes": 5, "celltype_counts": {"Endothelial": 48, "Fibroblast": 108, "Myeloid": 156, "Lymphocyte": 192, "Epithelial": 216}}
imc_subcluster_compartment MCP Verified ✓

Sub-cluster a major IMC compartment (Myeloid, Lymphocyte, or Epithelial) using lineage and functional markers with Harmony and FastPG (upstream 3_Sub_cluster.R).

Selftest Summary: Sub-clustered 156 Myeloid cells into 6 sub-clusters across 9 compartment markers.
Metrics: {"cluster_label": "Myeloid", "n_cells": 156, "n_compartment_markers": 9, "n_pcs_95pct": 2, "n_subclusters": 6}
imc_annotate_subclusters MCP Verified ✓

Annotate compartment sub-clusters, perform cross-lineage correction, and merge refined subtypes back into the full SpatialExperiment object (upstream 4_Sub_Anno.R).

Selftest Summary: Annotated Myeloid into 2 subtypes (reassigned 0 cells; merged SPE has 720 cells).
Metrics: {"cluster_label": "Myeloid", "n_subtypes": 2, "n_reassigned_cells": 0, "n_total_merged_cells": 720, "subtype_counts": {"CD163_MΦ": 78, "HLA_DR_MΦ": 78}}
gcss_train_and_predict MCP Verified ✓

Train and evaluate the Graphical Classification based on Spatial Similarity (GCSS) model using group-sparse graphclass over pairwise cell-type SSIM features (upstream GCSS.R).

Selftest Summary: Trained GCSS graphclass model on 54 train ROIs and evaluated on 30 test ROIs: AUC = 1, nonzero edges = 6/21.
Metrics: {"auc": 1, "accuracy": 1, "n_train": 54, "n_test": 30, "n_nodes": 7, "n_edges": 21, "nonzero_edges": 6, "node_sparsity": 0.1429, "intercept_b": -0.2049}

三、实测复现结果图展示

gcss_interaction_weights.png
gcss_roc_curve.png
imc_major_celltype_umap.png
imc_major_heatmap_scaled.png