Skip to contents

Removes exposure variables that deviate significantly from a normal distribution based on normality test results stored in metadata.

Usage

filter_non_normal(expomicset, p_thresh = 0.05)

Arguments

expomicset

A MultiAssayExperiment object containing exposure and omics data.

p_thresh

A numeric value specifying the p-value threshold for normality. Variables with p.value < p_thresh are removed. Default is 0.05.

Value

A MultiAssayExperiment object with non-normal exposure variables removed.

Details

The function identifies exposure variables that fail a normality test using metadata(expomicset)$transformation$norm_df.

  • Exposure variables with p.value < p_thresh are removed from colData(expomicset).

  • The same filtering is applied to colData in each experiment within experiments(expomicset).

Examples

if (FALSE) { # \dontrun{
filtered_expom <- filter_non_normal(
  expomicset = expom,
  p_thresh = 0.05)
} # }