View source: R/filter_objects.R
cv_filter | R Documentation |
A pooled CV is calculated for each biomolecule.
cv_filter(omicsData, use_groups = TRUE)
omicsData |
an object of class 'pepData', 'proData', 'metabData',
'lipidData', or 'nmrData' created by |
use_groups |
logical indicator for whether to utilize group information
from |
For each biomolecule, the CV of each group is calculated as the standard deviation divided by the mean, excluding missing values. A pooled CV estimate is then calculated based on the methods of Ahmed (1995). Any groups consisting of a single sample are excluded from the CV calculation, and thus, from the cv_filter result. If group_designation has not been run on the omicsData object, all samples are considered to belong to the same group.
An S3 object of class 'cvFilt' giving the pooled CV for each biomolecule and additional information used for plotting a data.frame with a column giving the biomolecule name and a column giving the pooled CV value.
Lisa Bramer, Kelly Stratton
Ahmed, S.E. (1995). A pooling methodology for coefficient of variation. The Indian Journal of Statistics. 57: 57-75.
library(pmartRdata)
mypep <- group_designation(omicsData = pep_object,
main_effects = "Phenotype")
to_filter <- cv_filter(omicsData = mypep, use_groups = TRUE)
summary(to_filter, cv_threshold = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.