R/methylationLME_steps.R
collectSignificantInteractionsMethylationLME.RdCollect raw coefficient tables for CpGs whose phenotype main effect or requested interaction p-value passes the chosen threshold.
collectSignificantInteractionsMethylationLME(
modelResults,
pvalThreshold = 0.05,
interactionTerm = NULL,
verbose = FALSE,
logs = FALSE,
log_dir = NULL,
log_file = "log_methylationLME.txt"
)Object returned by fitMethylationLMEModels().
Numeric. Threshold applied to the extracted phenotype or interaction p-values.
Character or NULL. Optional interaction term. When
NULL, phenotype main effects are used.
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_methylationLME_significant"
containing the retained coefficient tables for each phenotype.
ex <- dnaEPICO:::exampleMethylationLMEStateDnaEpico()
significant_hits <- collectSignificantInteractionsMethylationLME(
modelResults = ex$modelResults,
pvalThreshold = 1,
verbose = FALSE,
logs = FALSE
)
names(significant_hits)
#> [1] "score"