From b27f4b20ef6f4dd435a0f7b4505790aeb27b2fb7 Mon Sep 17 00:00:00 2001 From: singjc Date: Wed, 17 Jun 2026 19:18:17 -0400 Subject: [PATCH] fix: use error estimation config in levels contexts --- pyprophet/levels_contexts.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pyprophet/levels_contexts.py b/pyprophet/levels_contexts.py index 55ab21c3..32a39ef3 100644 --- a/pyprophet/levels_contexts.py +++ b/pyprophet/levels_contexts.py @@ -326,14 +326,14 @@ def infer_glycopeptides( "glycopeptide", density_estimator=config.density_estimator, grid_size=config.grid_size, - parametric=config.parametric, - pfdr=config.pfdr, - pi0_lambda=config.pi0_lambda, - pi0_method=config.pi0_method, - pi0_smooth_df=config.pi0_smooth_df, - pi0_smooth_log_pi0=config.pi0_smooth_log_pi0, - lfdr_truncate=config.lfdr_truncate, - lfdr_monotone=config.lfdr_monotone, + parametric=config.error_estimation_config.parametric, + pfdr=config.error_estimation_config.pfdr, + pi0_lambda=config.error_estimation_config.pi0_lambda, + pi0_method=config.error_estimation_config.pi0_method, + pi0_smooth_df=config.error_estimation_config.pi0_smooth_df, + pi0_smooth_log_pi0=config.error_estimation_config.pi0_smooth_log_pi0, + lfdr_truncate=config.error_estimation_config.lfdr_truncate, + lfdr_monotone=config.error_estimation_config.lfdr_monotone, # lfdr_transformation=lfdr_transformation, # lfdr_adj=lfdr_adj, lfdr_eps=lfdr_eps )