Skip to content

Commit

Permalink
fix: bug in MS1 picked-precursor FDR (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazear authored and sander-willems-bruker committed Sep 4, 2024
1 parent 29b7756 commit a48f45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sage/src/fdr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ pub fn picked_precursor(

let scores = scores
.into_par_iter()
.map(|score| (score.ix, score.q))
.map(|score| ((score.ix, score.decoy), score.q))
.collect::<FnvHashMap<_, _>>();

peaks.par_iter_mut().for_each(|((ix, _), (peak, _))| {
peaks.par_iter_mut().for_each(|((ix), (peak, _))| {
peak.q_value = scores[ix];
});
passing
Expand Down

0 comments on commit a48f45a

Please sign in to comment.