From a8b6da5a8f4ca6591501032b6d4647de4075e458 Mon Sep 17 00:00:00 2001 From: devonjkohler Date: Wed, 14 Jan 2026 13:08:45 -0500 Subject: [PATCH] wrap linear model in try loop --- R/dataProcess.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/R/dataProcess.R b/R/dataProcess.R index a2fff36..6bdc086 100755 --- a/R/dataProcess.R +++ b/R/dataProcess.R @@ -407,9 +407,8 @@ MSstatsSummarizeSingleLinear = function(single_protein, counts = as.matrix(counts) is_single_feature = .checkSingleFeature(single_protein) - # fit = try(, silent = TRUE) - fit = .fitLinearModel(single_protein, is_single_feature, - is_labeled = label, equal_variances) + fit = try(.fitLinearModel(single_protein, is_single_feature, + is_labeled = label, equal_variances), silent = TRUE) if (inherits(fit, "try-error")) { msg = paste("*** error : can't fit the model for ",