R/methylationGLM_steps.R
collectSignificantCpGsMethylationGLM.RdCollect coefficient tables for CpGs selected by the configured target test. Selection uses target-term omnibus p-values when omnibus testing was enabled during fitting, and phenotype main-effect or interaction coefficient p-values otherwise.
collectSignificantCpGsMethylationGLM(
modelResults,
pvalThreshold = 0.05,
interactionTerm = NULL,
verbose = FALSE,
logs = FALSE,
log_dir = NULL,
log_file = "log_methylationGLM.txt"
)Object returned by fitMethylationGLMModels().
Numeric. Threshold applied to omnibus p-values when omnibus testing was enabled during model fitting, or to phenotype main-effect or interaction coefficient p-values otherwise.
Character or NULL. Optional interaction term.
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_methylationGLM_significant_cpgs'.
ex <- dnaEPICO:::exampleMethylationGLMStateDnaEpico()
significant_cpgs <- collectSignificantCpGsMethylationGLM(
modelResults = ex$modelResults,
pvalThreshold = 1,
verbose = FALSE,
logs = FALSE
)
names(significant_cpgs)
#> [1] "status"