Skip to content

Commit 0e2c7a6

Browse files
committed
fix: bug in MS1 picked-precursor FDR (#150)
1 parent cd9f511 commit 0e2c7a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/sage/src/fdr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ pub fn picked_precursor(
232232

233233
let scores = scores
234234
.into_par_iter()
235-
.map(|score| (score.ix, score.q))
235+
.map(|score| ((score.ix, score.decoy), score.q))
236236
.collect::<FnvHashMap<_, _>>();
237237

238-
peaks.par_iter_mut().for_each(|((ix, _), (peak, _))| {
238+
peaks.par_iter_mut().for_each(|((ix), (peak, _))| {
239239
peak.q_value = scores[ix];
240240
});
241241
passing

0 commit comments

Comments
 (0)