Skip to content

Commit

Permalink
Merge pull request #470 from Nesvilab/fix_a_crash
Browse files Browse the repository at this point in the history
Fix a crash when there are no non-zero TMT intensities and removelow …
  • Loading branch information
AimeeD90 authored Nov 2, 2023
2 parents 165d78f + 21ba7e3 commit afe2337
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 afe2337

Please sign in to comment.