Paper2MCP v2 Verified Deliverable

Times are changing but order matters: transferable prediction of small-molecule liquid chromatography retention times

期刊:Nature Methods (2026-10-01) · DOI:10.1038/s41592-026-03243-2 · 开源许可:AGPL-3.0 (allowed)

上游仓库:https://github.com/boecker-lab/2-step @ 41a423392bad

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

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

# 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

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

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.

Selftest Summary: Predicted Retention Order Indices (ROI) for 24 compounds on column 'Waters XBridge C18' (ROI range [-0.8378, 1.0641]) using 2-step0525.pt.
Metrics: {"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.

Selftest Summary: Fitted quadratic ROI->RT mapping on 35 anchors (OLS refined=True, anchor MedAE=0.802 min) and mapped 24 query compound(s).
Metrics: {"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.

Selftest Summary: Predicted transferable retention times for 25 query compound(s) calibrated with 15 anchor(s) on 'Waters ACQUITY UPLC HSS T3' (predicted RT range [13.72, 39.45] min).
Metrics: {"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.

Selftest Summary: Evaluated 2-step on 24 held-out compounds calibrated with 35 anchors: pairwise order accuracy=89.86% (ε=10s), Spearman ρ=0.8939, MAE=1.175 min (5.76% norm), MedAE=0.742 min, R²=0.7985.
Metrics: {"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]}

三、实测复现结果图展示

eawag_xbridge_10cv_benchmark.png
roi_to_rt_calibration_and_parity.png