FilterVariable: Methods for non-specific filtering of variables

Description Usage Arguments Author(s)

View source: R/general_proc_utils.R

Description

This is a function that filters the dataset, dependent on the user-specified method for filtering. The function applies a filtering method, ranks the variables within the dataset, and removes variables based on its rank. The final dataset should contain no more than than 5000 variables for effective computing.

Usage

1
FilterVariable(mSetObj=NA, filter, qcFilter, rsd)

Arguments

mSetObj

Input the name of the created mSetObj (see InitDataObjects)

filter

Select the filter option, "rsd" which is the relative standard deviation, "nrsd" which is the non-parametric relative standard deviation, "mean" which is the mean, "sd" which is the standard deviation, "mad" which is the median absolute deviation, or "iqr" which is the interquantile range.

qcFilter

Filter the variables based on QC samples - True (T), or use non-QC based filtering - False (F).

rsd

Define the relative standard deviation cut-off. Variables with a RSD greater than this number will be removed from the dataset. It is only necessary to specify this argument if qcFilter is True (T). Otherwise, it will not be used in the function.

Author(s)

Jeff Xia jeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)


xia-lab/MetaboAnalystR3.0 documentation built on May 6, 2020, 11:03 p.m.