Removes sample outliers from a MultiAssayExperiment
object based on PCA analysis.
Usage
filter_sample_outliers(expomicset, outliers = NULL)
Arguments
- expomicset
A MultiAssayExperiment
object containing omics and exposure data.
- outliers
An optional character vector specifying sample names to be removed.
If NULL
, the function uses outliers identified in metadata(expomicset)$pca$outliers
. Default is NULL
.
Value
A MultiAssayExperiment
object with the specified outliers removed.
Details
The function checks for the presence of PCA results in metadata(expomicset)
. If outliers
is not provided,
it retrieves precomputed outliers from metadata(expomicset)$pca$outliers
. The identified samples are removed
from the dataset.
Examples
if (FALSE) { # \dontrun{
filtered_expomicset <- filter_sample_outliers(
expomicset = my_expomicset
)
} # }