Skip to content

Commit

Permalink
removed the potential for errors during building of the intensity mat…
Browse files Browse the repository at this point in the history
…rices if identical accurate m/z are retrieved for a bin
  • Loading branch information
jasenfinch committed Mar 24, 2021
1 parent e3c1199 commit 63bb7ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/spectralBinning-method.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ setMethod("spectralBinning",
filter(intensity == max(intensity)) %>%
select(-intensity) %>%
mutate(mz = str_c(polarity,mz)) %>%
ungroup()
ungroup() %>%
distinct()

if (isTRUE(verbose)) message('Building intensity matrix')
binned_data <- binned_data %>%
Expand Down

0 comments on commit 63bb7ba

Please sign in to comment.