msLogic {msProcess} | R Documentation |
For a specific msSet
object x
, it determines
which methods are applicable for the processing step process
.
This function is mainly used to build the GUI for the msProcess package.
msLogic(x, process="msDenoise")
x |
An object of class msSet . |
process |
a character string specifying the process to be applied.
The options are "msDenoise" ,
"msNoise" , "msDetrend" ,
"msNormalize" , "msPeak" ,
"msAlign" , and "msQuantify" .
Default: "msDenoise" . |
A vector of character string denoting the methods of process
that are
applicable to the msSet
object x
, which are the valid options for
the FUN
argument of process
.
NULL
is returned if none is applicable.
if (!exists("qcset")) data("qcset", package="msProcess") ## determine which methods of msDenoise are applicable to qcset msLogic(qcset, "msDenoise") ## determine which methods of msNoise are applicable to qcset msLogic(qcset, "msNoise") ## apply wavelet denoise denoised <- msDenoise(qcset, FUN="wavelet") ## determine which methods of msNoise are applicable to the denoised spectra msLogic(denoised, "msNoise") ## determine which methods of msPeak are applicable to the denoised spectra msLogic(denoised, "msPeak")