Description Usage Arguments Details Value Author(s) Examples
To identify aggregated methylated regions (AMR) using a modified comb-p method.
1 | AMR_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 |
... |
see help of combp of ENmix package |
The function will use a modified comb-p method to identify aggregated methylated regions (AMRs).
A set of selected AMRs.
Basile Jumentier
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # library(hdma2)
#
# Run mEWAS
#
# res <- mEWAS(X = example$X, Y = example$Y, M = example$M, K = 5)
#
# Keep latent factors for mediation
#
# U <- res$U
#
# Run max2
#
# res <- max2(pval1 = res$pValue[, 1], pval2 = res$pValue[, 2])
#
# lauch AMR_search
#
# res <- AMR_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.