R/methylationGLM_T1_steps.R
collectSignificantCpGsMethylationGLM_T1.RdCollect the raw coefficient tables for CpGs whose phenotype main effect or interaction p-value passes the requested threshold.
collectSignificantCpGsMethylationGLM_T1(
modelResults,
pvalThreshold = 0.05,
interactionTerm = NULL,
verbose = FALSE,
logs = FALSE,
log_dir = NULL,
log_file = "log_methylationGLM_T1.txt"
)Object returned by fitMethylationGLM_T1Models().
Numeric. Threshold applied to phenotype main-effect or interaction p-values.
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_T1_significant_cpgs".
ex <- dnaEPICO:::exampleMethylationGLMStateDnaEpico()
significant_cpgs <- collectSignificantCpGsMethylationGLM_T1(
modelResults = ex$modelResults,
pvalThreshold = 1,
verbose = FALSE,
logs = FALSE
)
names(significant_cpgs)
#> [1] "status"