cleanElnoise {RMassBank} | R Documentation |
Removes known electronic noise peaks from a peak table
cleanElnoise(peaks, noise=getOption("RMassBank")$electronicNoise, width = getOption("RMassBank")$electronicNoiseWidth)
peaks |
An aggregated peak frame as described in |
noise |
A numeric vector of known m/z of electronic noise peaks from the instrument Defaults to the entries in the RMassBank settings. |
width |
The window for the noise peak in m/z units. Defaults to the entries in the RMassBank settings. |
Extends the aggregate data frame by column noise
(logical), which is TRUE
if the peak is marked as noise.
Michael Stravs
# As used in the workflow: ## Not run: w@aggregated <- cleanElnoise(w@aggregated) ## End(Not run)