From 21ba7e35086de66e4a71dfa81204bb3385408f1a Mon Sep 17 00:00:00 2001 From: Fengchao Date: Wed, 1 Nov 2023 11:19:49 -0400 Subject: [PATCH] Fix a crash when there are no non-zero TMT intensities and removelow > 0. --- lib/qua/qua.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/qua/qua.go b/lib/qua/qua.go index c40c4b6c..dc546dcb 100644 --- a/lib/qua/qua.go +++ b/lib/qua/qua.go @@ -1073,7 +1073,8 @@ func classification(evi rep.Evidence, mods, best bool, remove, purity, probabili } if remove != 0 && !quantCheckUp { - msg.NoParametersFound(errors.New("no reporter ions found. Check your MS level, or update msconvert"), "error") + remove = 0 + msg.Custom(errors.New("there are no non-zero intensities. Set 'removelow' to 0"), "warning") } // 2nd check: best PSM