Hi Kylie,
peakBin() also fails on those same pixels. Some more information on the image: it is from a low (20k) resolution MALDI-ToF (mass accuracy is not fantastic when imaging) and I read in an Analyze file for the data variable below. Here is the processing code:
dataProc = data %>%
normalize() %>%
smoothSignal() %>%
reduceBaseline() %>%
peakPick() %>%
process()
dataFilt = dataProc %>%
peakAlign(tolerance = 0.2, units = "mz") %>%
peakFilter() %>%
process()
dataBinned = data %>%
normalize() %>%
smoothSignal() %>%
reduceBaseline() %>%
peakBin(mz(dataFilt), tolerance = 0.2, units = "mz") %>% # Running this block individually (normalize, then smoothSignal, etc.), this step causes a crash.
process()