期刊:Nature Communications (2026-11-03) ·
DOI:10.1038/s41467-026-78923-w ·
开源许可:MIT (allowed)
上游仓库:https://github.com/Williamzcy0929/L-STAR @ 6b6d2b59d4ce
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip l-star-mcp.zip && cd l-star-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add l-star -- "$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
generate_domain_images
MCP Verified ✓
Render one spatial-domain map per candidate method plus a montage (L-STAR step 1, via lstar.image_generation).
{"n_methods": 6, "n_spots": 400, "methods": ["GraphST", "STAGATE", "SpaGCN", "BayesSpace", "SEDR", "stLearn"]}rank_methods_from_comparisons
MCP Verified ✓
Aggregate recorded LLM comparison results (all-wise or pairwise JSONL) into a method ranking; makes no LLM call.
{"mode": "allwise", "score_column": "score", "n_methods": 6, "ranking": [{"model": "GraphST", "score": 4.8}, {"model": "STAGATE", "score": 4.2}, {"model": "SpaGCN", "score": 2.8}, {"model": "SEDR", "score": 2.0}, {"model": "BayesSpace", "score": 1.2}, {"model": "stLearn", "score": 0.0}]}build_consensus_domains
MCP Verified ✓
Select top-ranked methods and build the L-STAR EAC consensus domain map (lstar.consensus.run_consensus_clustering).
{"selected_methods": ["GraphST", "STAGATE", "SpaGCN"], "n_domains": 5, "n_spots": 400, "domain_sizes": {"0": 88, "1": 81, "2": 89, "3": 75, "4": 67}}evaluate_domain_consensus
MCP Verified ✓
Score the consensus and each candidate method against a reference annotation with ARI and plot the comparison.
{"consensus_ari": 0.7220982287353311, "method_ari": {"GraphST": 0.8044822297032979, "STAGATE": 0.7260627515283177, "SpaGCN": 0.4660623901687422, "BayesSpace": 0.34846380412868005, "SEDR": 0.3284887145793607, "stLearn": 0.18814335790373068}, "best_method": "GraphST", "mean_method_ari": 0.4769505413353548, "n_spots": 400}

