You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking into the newish ChromPeakAreaParam and trying to understand how wide windows it actually creates compared to the old way. It is definitely better than the old way that would go all the way to zero. But it still goes a lot lower than I think is likely optimal.
So to start with the conclusion I think it would still be advisable to have a minimum ppm window like in the old function.
So first I calculated what the windows will look like for each feature. The peak picking ppm was 30. But we see that some windows would go as low as 7 ppm for some features. From the analysis below I would argue that that could be too low.
Then we can look at the range for the found peaks. We observe that for the peaks filled we more or less inherited the original ppm value, while the peak picked peaks go much higher, since that in the ROI definition the range can be more or less +/- the ppm setting.
ggplot(peaks, aes(x=1E6*(mzmax-mzmin)/mz)) +
geom_histogram(position="identity", binwidth=2,linewidth=NA) +
facet_grid(filled~., scales="free_y") +
xlab("ppm") + ggtitle("Histogram of ppm deviation for all peaks")+
scale_x_continuous(breaks= seq(0,1000,10)) +
theme_bw()
Finally I wanted to see how window size was correlated to intensity since I assume smaller peaks are less accurate and that gapfilling mainly will be look at small peaks.
My conclusion here would be that small peaks go as high as 60 ppm, but the windows we will be doing integrating in during gap-filling would be half that.
Bonus: if we set the prop to 1 the window sizes are still potentially too low.
So based on all this wouldn't a safely valve ppm paramenter make sense?
The text was updated successfully, but these errors were encountered:
Thanks for the thorough analysis/description @stanstrup . Actually, it's funny that you are worried the m/z width being too small - I was initially afraid that it might be in fact too large :)
One thing, when you compare the intensities between the gap-filled and detected data - I think it would be fair/correct to only consider the detected peak signal of features for which you also have gap-filled signal. otherwise you're comparing two different things with each other. With ChromPeakAreaParam(mzmin = min, mzmax = max, rtmin = min, rtmax = max) I would then actually expect that the ppm deviation should be identical - because the gap-filled signal, in the samples where no chrom peak was detected, will be integrated based on the m/z and rt ranges of all detected chrom peaks (for that feature).
But, if I understand you correctly, you ask for an additional parameter ppmMin that would allow the user to define a minimal m/z deviation/range that always should be used to integrate data from, i.e. that m/z min for a feature would be the smaller value of mzmin and the feature's "mzmed" - ppm("mzmed", ppmMin), and m/z max the same, just with max?
Hi,
I was looking into the newish ChromPeakAreaParam and trying to understand how wide windows it actually creates compared to the old way. It is definitely better than the old way that would go all the way to zero. But it still goes a lot lower than I think is likely optimal.
So to start with the conclusion I think it would still be advisable to have a minimum ppm window like in the old function.
So first I calculated what the windows will look like for each feature. The peak picking ppm was 30. But we see that some windows would go as low as 7 ppm for some features. From the analysis below I would argue that that could be too low.
Then we can look at the range for the found peaks. We observe that for the peaks filled we more or less inherited the original ppm value, while the peak picked peaks go much higher, since that in the ROI definition the range can be more or less +/- the ppm setting.
Finally I wanted to see how window size was correlated to intensity since I assume smaller peaks are less accurate and that gapfilling mainly will be look at small peaks.
My conclusion here would be that small peaks go as high as 60 ppm, but the windows we will be doing integrating in during gap-filling would be half that.
Bonus: if we set the prop to 1 the window sizes are still potentially too low.
So based on all this wouldn't a safely valve ppm paramenter make sense?
The text was updated successfully, but these errors were encountered: