Description Usage Arguments Details Value Author(s) Examples
To identify differentially methylated regions using a modified comb-p method.
1 | DMR_search(chr, start, end, pval, cpg, ...)
|
chr |
chromosomes |
start |
chromosomal position of markers (start) |
end |
chromosomal position of markers (end) |
pval |
pValues for each markers, from the max2 function |
cpg |
name of each markers |
... |
argument of the combp function from the ENmix package |
The function will use a modified comb-p method to identify differentially methylated regions (DMRs).
A set of selected DMRs.
Basile Jumentier
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(highmed)
# Run multivariate EWAS
res <- multivariate_EWAS(X = example$X, Y = example$Y, M = example$M, K = 5)
# Keep latent factors for univariate mediation
U <- res$U
# Run max2
res <- max2(pval1 = res$pValue[, 1], pval2 = res$pValue[, 2])
# lauch DMR_search
res <- DMR_search(chr = example$annotation$chr,
start = example$annotation$start,
end = example$annotation$end,
pval = res$pval,
cpg = example$annotation$cpg, nCores = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.