期刊:Nature (2026-08-05) ·
DOI:10.1038/s41586-026-10884-y ·
开源许可:MIT (allowed)
上游仓库:https://github.com/bunnelab/virtues @ d2c25e1c1ea7
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip virtues-mcp.zip && cd virtues-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add virtues -- "$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
virtues_reconstruct_markers
MCP Verified ✓
Reconstruct partially masked multiplex proteomics channels or virtually inpaint an entire masked marker channel using VirTues.
{"target_channel_pearson_r": 0.8315, "target_channel_mse": 0.10161, "mean_pearson_r_all_channels": 0.9929, "num_channels": 40, "masked_patch_fraction": 0.025}virtues_extract_cell_tokens
MCP Verified ✓
Compute 512-dimensional VirTues cell summary tokens by convolving patch summary tokens with cell segmentation masks.
{"num_cells": 127, "token_dim": 512, "num_tiles": 1, "mean_token_l2_norm": 22.9299}virtues_phenotype_and_niches
MCP Verified ✓
Evaluate cell phenotyping via logistic-regression linear probing on VirTues cell tokens and discover spatial tissue niches via KMeans clustering.
{"linear_probe_accuracy": 0.8151, "linear_probe_macro_f1": 0.6504, "niche_silhouette_score": 0.1262, "num_cells_total": 474, "num_classes": 6, "n_niches": 4}virtues_segment_cells
MCP Verified ✓
Run joint pan-optic cell instance segmentation and 9-class cell-phenotype prediction using VirTues + VirtuesSegmentationHead.
{"num_cells_detected": 107, "foreground_fraction": 0.5823, "cell_phenotype_counts": {"Tumor": 69, "Fibroblasts /Stroma": 27, "CD8 T cell": 7, "Myeloid": 4}}

