R package written under the supervision of Dr. Conneely. Designed to test for association between methylation at CpG sites across the genome and a phenotype of interest, adjusting for any relevant covariates.
DNA methylation population stratification
Code and information on DNA methylation population stratification work done from Barfield et al 2014. Can be found here. Paper can be found here
Fast EWAS Mediation
Code to run quick mediation analysis across a set of DNA methylation markers. Gives association between CpG and Y given A and Xm as well as association between A and CpG given Xm. Will give for each CpG site. Assuming linear models for all variables. Xm is matrix of covariates adjusting for (not including intercept), CpG is an Nx p matrix with rows corresponding to sample and columns corresponding to DNA methylation marker.
LDA MR-Egger Code
Code to run LDA MR-Egger Regression as discussed in Barfield et al (2018). X is the vector of joint eQTL effects. Y is the vector of joint GWAS effects.W is the inverse of the covariance of the joint GWAS effects (i.e. var(Y)).