Skip to content

Commit

Permalink
Fix a crash when there are no non-zero TMT intensities and removelow …
Browse files Browse the repository at this point in the history
…> 0.
  • Loading branch information
fcyu committed Nov 1, 2023
1 parent 165d78f commit 21ba7e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/qua/qua.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21ba7e3

Please sign in to comment.