Paper2MCP v2 Verified Deliverable

PANGEA: an integrated cell atlas across diverse biological contexts enables systematic profiling of multicellular responses in human diseases.

期刊:Nature Methods (2026-11-12) · DOI:10.1038/s41592-026-03295-4 · 开源许可:MIT (allowed)

上游仓库:https://github.com/srkim727/pangeapy @ c0869d6da8c1

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

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

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

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

preprocess_expression MCP Verified ✓

QC-filter, 1e4-normalize, log1p-transform, and optionally compute PCA/neighbors/UMAP on scRNA-seq AnnData or CSV matrices for PANGEApy.

Selftest Summary: Preprocessed 450->442 cells and 32738->10172 genes (1e4-normalized, log1p).
Metrics: {"n_cells_raw": 450, "n_genes_raw": 32738, "n_cells_filtered": 442, "n_genes_filtered": 10172, "has_umap": true}
annotate_cells MCP Verified ✓

Perform hierarchical Level1 and Level2 cell type annotation using PANGEApy CellAnnotator pretrained atlas models.

Selftest Summary: Annotated 1400 cells across 5 Level1 types and 21 hierarchical PG_annotations (mean score 0.9165).
Metrics: {"n_cells": 1400, "target_level": 2, "n_level1_types": 5, "n_pg_annotations": 21, "mean_combined_score": 0.9165, "level1_counts": {"T&NK": 843, "Monocyte": 345, "B_mature": 176, "Dendritic_classical": 28, "Platelet": 8}}
detect_uncertain_cells MCP Verified ✓

Detect missing or unseen cell populations via PANGEApy neighborhood-smoothed uncertainty scoring.

Selftest Summary: Evaluated 420 cells for uncertainty: flagged 71 (16.9%) potentially missing/unseen cells.
Metrics: {"n_cells": 420, "n_uncertain_cells": 71, "uncertain_fraction": 0.169, "mean_score_uncert": -0.0425, "max_score_uncert": 1.9722, "group_uncertain_fraction": {"PBMC_Atlas_Matched": 0.0, "Unseen_Endocrine": 0.5917}}
annotate_metadata MCP Verified ✓

Predict sample-level organ identity and Blood/Tissue biological phenotypes using PANGEApy MetaAnnotator.

Selftest Summary: Predicted sample-level organ and phenotype metadata for 2 sample(s): PBMC_S1 -> Blood/BP2, PBMC_S2 -> Blood/BP2
Metrics: {"n_samples": 2, "samples": {"PBMC_S1": {"organ_pred": "Blood", "organ_prob": 0.9931, "pheno_pred": "BP2", "pheno_prob": 0.3117}, "PBMC_S2": {"organ_pred": "Blood", "organ_prob": 0.9926, "pheno_pred": "BP2", "pheno_prob": 0.461}}}
update_plus_one_model MCP Verified ✓

Train an incremental plus-one CellTypist classifier incorporating new cell types and benchmark confidence gains.

Selftest Summary: Trained plus-one model over 224 balanced cells (6 classes); label accuracy improved from 68.8% to 97.4%.
Metrics: {"n_classes": 6, "classes": ["B_mature", "Dendritic_classical", "Endocrine_islet", "Monocyte", "Platelet", "T&NK"], "n_train_cells": 224, "mean_conf_ref": 0.9956, "mean_conf_updated": 0.986, "mean_accuracy_ref": 0.6881, "mean_accuracy_updated": 0.9738}

三、实测复现结果图展示

pangea_hierarchical_umap.png
pangea_meta_organ_phenotype.png
pangea_uncertainty_and_plus_one.png