R/ewas_loop_pll.R
ewas_loop_pll.RdPerforms EWAS using CpGassoc library. Allows flexibility to loop for multiple exposure variables and methylation data from multiple tissues.
ewas_loop_pll(
exposures,
covariates,
bVals_list,
bVals_names,
dat_pheno,
outputFolder
)list of exposure variables
list of covariates to adjust for associations
processed beta values set from illumina methylation
name of the beta value datasets - will be used for naming the output files
dataframe that contain exposures, covariates and cell type counts
path to save the output files
this function will return an R data object as a result of the CpG wide association using cpg.assoc function