Learn R Programming

MALDIrppa (version 1.0.2)

wavSmoothing: Discrete wavelet transformation for MassSpectrum objects

Description

This function performs undecimated wavelet transform (UDWT) on mass spectra in MassSpectrum format. Alternatively, smoothing methods included in the MALDIquant package can be called.

Usage

wavSmoothing(x, method = c("Wavelet", "SavitzkyGolay", "MovingAverage"),
             thresh.scale = 2.5, ...)

Arguments

x

A list of MassSpectrum objects.

method

Smoothing method used.

thresh.scale

Smoothing factor for wavelet-based smoothing.

...

Other arguments.

Value

A list of MassSpectrum objects with denoised signal intensities.

Details

This provides an adaptation of the wavShrink function (wmtsa package) to be used with MassSpectrum objects. Alternatively, the function can be used to call the smoothing methods included with the smoothIntensity function in the MALDIquant package. Check the documentation of wavShrink or smoothIntensity for addtional options.

Examples

Run this code
# NOT RUN {
# Load example data

data(spectra) # list of MassSpectra class objects

# sqrt transformation and signal smoothing using UDWT

spectra <- transformIntensity(spectra, method = "sqrt")
spectra <- wavSmoothing(spectra, method = "SavitzkyGolay")
# }

Run the code above in your browser using DataLab