View source: R/method-filterFeatures.R
RsdFilter | R Documentation |
The 'RsdFilter' class and methods enable users to filter features from an 'XcmsExperiment' or 'SummarizedExperiment' object based on their relative standard deviation (coefficient of variation) for a specified threshold.
This 'filter' is part of the possible dispatch of the generic function 'filterFeatures'. Features *above* ('>') the user-input threshold will be removed from the entire dataset.
RsdFilter(threshold = 0.3, qcIndex = integer(), na.rm = TRUE, mad = FALSE)
## S4 method for signature 'XcmsResult,RsdFilter'
filterFeatures(object, filter, ...)
## S4 method for signature 'SummarizedExperiment,RsdFilter'
filterFeatures(object, filter, assay = 1)
threshold |
'numeric' value representing the threshold. Features with a coefficient of variation *strictly higher* ('>') than this will be removed from the entire dataset. |
qcIndex |
'integer' (or 'logical') vector corresponding to the indices of QC samples. |
na.rm |
'logical' indicates whether missing values ('NA') should be removed prior to the calculations. |
mad |
'logical' indicates whether the *Median Absolute Deviation* (MAD) should be used instead of the standard deviation. This is suggested for non-gaussian distributed data. |
object |
|
filter |
The parameter object selecting and configuring the type of
filtering. It can be one of the following classes: |
... |
Optional parameters. For |
assay |
For filtering of |
For 'RsdFilter': a 'RsdFilter' class. 'filterFeatures' return the input object minus the features that did not met the user input threshold.
It is assumed that the abundance values are in natural scale. Abundances in log scale should be first transformed to natural scale before calculating the RSD.
Philippine Louail
Other Filter features in xcms:
BlankFlag
,
DratioFilter
,
PercentMissingFilter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.