Select features based on Median Absolute Deviation from MultiDataSet
Source:R/prefiltering.R
select_features_mad.Rd
Computes the Median Absolute Deviation (MAD) for each feature in an omics dataset
from a MultiDataSet object, and select features with the highest MAD values. This
is a wrapper function around the get_dataset_matrix()
and select_features_mad_matrix()
functions.
Usage
select_features_mad(
mo_data,
dataset_name,
to_keep_n = NULL,
to_keep_prop = NULL,
with_ties = TRUE
)
Arguments
- mo_data
A
MultiDataSet-class
object.- 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
NULL
orNA
,to_keep_prop
will be used instead.- to_keep_prop
Numeric, the proportion of features to retain in the dataset. Will be ignored if
to_keep_n
is 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
.