msLogic {msProcess}R Documentation

Processing Logic

Description

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.

Usage

msLogic(x, process="msDenoise")

Arguments

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".

Value

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.

See Also

msSet.

Examples

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")

[Package msProcess version 1.0.5 Index]