Description Usage Arguments Value Note See Also Examples
Estimate and subsequently subtract the baselines from mass spectra. The basic technique for baseline estimation is to fit a curve locally to the intensity minima.
1 2 3 |
x |
An object of class |
... |
Additional arguments for the |
FUN |
Either an object of class character: A character string denoting the method to use in smoothing the data to estimate the baseline. Supported choices are
Default: function: A user-defined function with an argument list
of the form In either case, the additional arguments |
attach.base |
A logical value specifying if the estimated baseline needs to be attached
as an element to the output, and the default is |
event |
A character string denoting the name of the
event to register with the (embedded) event history object of the input
after processing the input data. Default: |
An object of class msSet
,
optionally, with the estimated baseline attached as element
"baseline"
.
If FUN="mrd"
, an mrd
object containing meta information regarding
the multiresolution decomposition is attached to the msSet
output object for subsequent
use by other MRD-based function calls such as msPeak(x, FUN="mrd", ...)
.
msSmoothLoess
, msSmoothSpline
, msSmoothSupsmu
, msSmoothApprox
, msSmoothMonotone
, msSmoothMRD
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | if (!exists("qcset")) data("qcset", package="msProcess")
## extract several spectra from the build-in
## dataset
z <- qcset[, 1:8]
## denoising
z <- msDenoise(z, FUN="wavelet", n.level=10, thresh.scale=2)
## baseline subtraction
z <- msDetrend(z, FUN="monotone", attach=TRUE)
## visualize the baseline
plot(z, process="msDetrend", subset=1:3,
xlim=c(5000, 8500), lty=1, lwd=c(1,3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.