Learn R Programming

RMassBank (version 2.0.0)

cleanElnoise: Remove electronic noise

Description

Removes known electronic noise peaks from a peak table

Usage

cleanElnoise(peaks, noise=getOption("RMassBank")$electronicNoise, width = getOption("RMassBank")$electronicNoiseWidth)

Arguments

peaks
An aggregated peak frame as described in aggregateSpectra. Columns mzFound, dppm and dppmBest are needed.
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.

Value

Extends the aggregate data frame by column noise (logical), which is TRUE if the peak is marked as noise.

See Also

msmsWorkflow

Examples

Run this code
# As used in the workflow:
## Not run: 
# 	    w@aggregated <- 
# 		cleanElnoise(w@aggregated)	
# ## End(Not run)

Run the code above in your browser using DataLab