This R package is used for testing mediation effects in genome-wide epigenetic studies.
DACT is an R package for testing mediation effects in genome-wide epigenetic studies. DACT leverages the epigenome-wide data to estimate the relative proportions of the three null cases under the composite null hypothesis. The empirical null framework has been employed for large-scale inference.
library(devtools)
devtools::install_github("https://github.com/zhonghualiu/DACT")
## p_a and p_b are the p-value vectors for the exposure-mediator and mediator-outcome associations
## in genome-wide epigenetic studies.
DACT(p_a,p_b,correction="JC")
library(DACT)
p_a = runif(1e4) ## a p-value vector for the exposure-mediator associations
p_b = runif(1e4) ## a p-value vector for the mediator-outcome associations
res = DACT(p_a=p_a,p_b=p_b,correction="JC") ## a p-value vector for mediation effect testing
This software is licensed under MIT.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.