deletePeaks {MALDIrppa} | R Documentation |
Delete peaks from a MassPeaks
objects
Description
This function deletes peaks of height (intensity) below a given value in MassPeaks
objects.
Usage
deletePeaks(x, min = NULL)
Arguments
x |
A list of |
min |
Lower threshold used to discard a peak. |
Details
This functions takes a list of MassPeaks
objects and filters out peaks of height (intensity) falling below the given minimum value.
Value
A filtered list of MassPeaks
objects.
Examples
# Load example data
data(spectra) # list of MassSpectra class objects
# Some pre-processing
spectra <- screenSpectra(spectra)$fspectra
spectra <- transformIntensity(spectra, method = "sqrt")
spectra <- wavSmoothing(spectra)
spectra <- removeBaseline(spectra)
peaks <- detectPeaks(spectra)
# Delete peaks of intensity < 30
peaks <- deletePeaks(peaks, min = 30)
[Package MALDIrppa version 1.1.0-2 Index]