Estimate m/z scattering in consecutive scans
Estimate scattering of m/z values (due to technical, instrument specific noise) for the same ion in consecutive scans of a LCMS experiment.
estimateMzScattering(x, halfWindowSize = 1L, timeDomain = FALSE)
x |
|
halfWindowSize |
|
timeDomain |
|
The m/z values of the same ions in consecutive scans (spectra) of a LCMS run will not be identical. This random noise is expected to be smaller than the resolution of the MS instrument. The distribution of differences of m/z values from neighboring spectra is thus expected to be (at least) bi-modal with the first peak representing the above described random variation and the second (or largest) peak the m/z resolution. The m/z value of the first local minimum between these first two peaks in the distribution is returned as the m/z scattering.
For timeDomain = TRUE
the function does not return the estimated
scattering of m/z values, but the scattering of sqrt(mz)
values.
Johannes Rainer
estimateMzResolution()
for the function to estimate a
profile-mode spectrum's m/z resolution from it's data.
library(MSnbase) library(msdata) ## Load a profile-mode LC-MS data file f <- dir(system.file("sciex", package = "msdata"), full.names = TRUE)[1] im <- readMSData(f, mode = "inMem", msLevel = 1L) res <- estimateMzScattering(im) ## Plot the distribution of estimated m/z scattering plot(density(unlist(res))) ## Compare the m/z resolution and m/z scattering of the spectrum with the ## most peaks idx <- which.max(unlist(spectrapply(im, peaksCount))) res[[idx]] abline(v = res[[idx]], lty = 2) estimateMzResolution(im[[idx]]) ## As expected, the m/z scattering is much lower than the m/z resolution.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.