msLogic: Processing Logic

Description Usage Arguments Value See Also Examples

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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")

zeehio/msProcess documentation built on May 4, 2019, 10:15 p.m.