期刊:Nature Methods (2026-10-01) ·
DOI:10.1038/s41592-026-03243-2 ·
开源许可:AGPL-3.0 (allowed)
上游仓库:https://github.com/boecker-lab/2-step @ 41a423392bad
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip twostep-mcp.zip && cd twostep-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add twostep -- "$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
predict_retention_order
MCP Verified ✓
Predict reversed-phase LC Retention Order Indices (ROI) and elution ranks from molecular structures (SMILES or InChI) and chromatographic setup YAML using the pretrained 2-step D-MPNN ranking model.
{"n_compounds": 24, "model_checkpoint": "2-step0525.pt", "column_name": "Waters XBridge C18", "eluent_ph": 3.0, "roi_min": -0.837776, "roi_max": 1.064125, "roi_mean": 0.486299, "roi_std": 0.499748}fit_apply_rt_mapping
MCP Verified ✓
Fit a monotone non-negative quadratic LAD + outlier-trimmed OLS calibration curve from anchor (ROI, RT) pairs and map query ROIs to target-system retention times.
{"n_anchors_used": 35, "n_queries_mapped": 24, "lad_coefficients": [5.526599, 6.517751, 0.788866], "final_coefficients": [5.531734, 6.165535, 1.059289], "ols_refined_used": true, "no_ols_reason": null, "anchor_mae_min": 1.02431, "anchor_medae_min": 0.80154, "query_mae_min": 1.17465, "query_medae_min": 0.74248}predict_transferable_rt
MCP Verified ✓
End-to-end 2-step transferable retention time prediction from a compound table (anchors with known RT + queries with missing RT) and target chromatographic metadata YAML.
{"n_anchors_used": 15, "n_queries_predicted": 25, "column_name": "Waters ACQUITY UPLC HSS T3", "void_cutoff_min": 0.735, "final_coefficients": [10.465274, 15.103869, 5.344622], "ols_refined_used": true, "anchor_medae_min": 0.87114, "pred_rt_min": 13.7217, "pred_rt_max": 39.4487, "pred_rt_median": 22.0015}evaluate_twostep_benchmark
MCP Verified ✓
Benchmark 2-step pairwise retention order accuracy (epsilon threshold), LIS, Spearman rho, MAE, MedAE, normalized MAE (%), and R^2 using anchor and held-out test compound tables.
{"n_anchors_used": 35, "n_test_evaluated": 24, "column_name": "Waters XBridge C18", "epsilon_sec": 10.0, "void_cutoff_min": 1.1025, "pairwise_order_accuracy": 0.89855, "pairwise_error_rate_pct": 10.145, "lis_fraction": 0.625, "spearman_rho": 0.89391, "mae_min": 1.17465, "medae_min": 0.74248, "rmse_min": 1.73031, "normalized_mae_pct": 5.758, "r2_score": 0.79848, "final_coefficients": [5.531734, 6.165535, 1.059289]}
