Skip to contents

Filter a list of outliers to those belonging to the specified dataset. Used to specify sex-specific outliers within differential analysis functions.

Usage

filter_outliers(
  tissue = NULL,
  sex = NULL,
  outliers = MotrpacRatTraining6moData::OUTLIERS$viallabel
)

Arguments

tissue

optional character, tissue abbreviation, one of MotrpacRatTraining6moData::TISSUE_ABBREV

sex

optional character, one of 'male' or 'female'

outliers

vector of vial labels to consider as outliers. Defaults to vial labels in MotrpacRatTraining6moData::OUTLIERS.

Value

character vector, subset of outliers that correspond to the specified tissue and sex

Examples

curr_outliers = filter_outliers(tissue="HIPPOC")
curr_outliers = filter_outliers(tissue="HIPPOC", sex="male")