
Select features based on Coefficient of Variation from MultiDataSet
Source:R/prefiltering.R
select_features_cov.RdComputes the Coefficient of Variation (COV) for each feature in an omics dataset
from a MultiDataSet object, and select features with the highest COV values. This
is a wrapper function around the get_dataset_matrix() and select_features_cov_matrix() functions.
Usage
select_features_cov(
mo_data,
dataset_name,
to_keep_n = NULL,
to_keep_prop = NULL,
with_ties = TRUE
)Arguments
- mo_data
A
MultiDataSet-classobject.- dataset_name
Character, name of the omics dataset on which to apply feature pre-selection.
- to_keep_n
Integer, the number of features to retain in the dataset. Should be less than the number of features in the dataset. If
NULLorNA,to_keep_propwill be used instead.- to_keep_prop
Numeric, the proportion of features to retain in the dataset. Will be ignored if
to_keep_nis supplied. Value should be > 0 and < 1.- with_ties
Should ties be kept together? If
TRUE, may return more features than requested. Default value isTRUE.