
Select features based on Median Absolute Deviation from matrix
Source:R/prefiltering.R
select_features_mad_matrix.RdComputes the Median Absolute Deviation (MAD) for each feature in an omics dataset from a MultiDataSet object, and select features with the highest MAD values.
Arguments
- mat
Matrix of omics measurement, with features as rows and samples as columns.
- 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.