R/preprocessingPheno_steps.R
loadMetricsPreprocessingPheno.RdLoad the metric matrices generated by preprocessingMinfiEwasWater() and
return them as a single in-memory object for downstream phenotype alignment.
loadMetricsPreprocessingPheno(
betaPath,
mPath,
cnPath,
verbose = FALSE,
logs = FALSE,
log_dir = NULL,
log_file = "log_loadMetricsPreprocessingPheno.txt"
)Character. Path to the saved beta-value object.
Character. Path to the saved M-value object.
Character. Path to the saved copy-number object.
Logical. If TRUE, emit progress messages with message().
Logical. If TRUE, write the same messages to a log file.
Character or NULL. Directory used for the log file when
logs = TRUE.
Character. File name used when logs = TRUE.
A list with class "dnaEPICO_preprocessingPheno_metrics"
containing beta, m, and cn.
ex <- dnaEPICO:::examplePreprocessingPhenoStateDnaEpico()
metrics_data <- loadMetricsPreprocessingPheno(
betaPath = ex$betaPath,
mPath = ex$mPath,
cnPath = ex$cnPath,
verbose = FALSE,
logs = FALSE
)
names(metrics_data)
#> [1] "beta" "m" "cn"