Performs 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
)

Arguments

exposures

list of exposure variables

covariates

list of covariates to adjust for associations

bVals_list

processed beta values set from illumina methylation

bVals_names

name of the beta value datasets - will be used for naming the output files

dat_pheno

dataframe that contain exposures, covariates and cell type counts

outputFolder

path to save the output files

Value

this function will return an R data object as a result of the CpG wide association using cpg.assoc function