We described the workfow through an example.
1. Data Set
We downloaded the publicly available GSE42861_RAW data at https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE42861. We unzip the rar file and get the IDat file of each sample.
The folder of GSE42861_RAW.
2. Get the Red and Green signal files.
We first defined the directories of IDat, red and green signal files as:
path<-"D:/Rawdata/GSE42861_RAW/" ###all IDAT file
Gpath <- "D:/result/GSE42861_green.txt"
Rpath <- "D:/result/GSE42861_red.txt"
Then, we carried the R script in Red/Green signals to obtain the signal files.
3. Restore the SNP genotype.
Using me2SNP, we call CCSSNP and explicit SNP from DNA methylation, respectively.
Click on 'CCSSNP' to generate CCSSNP from red and green signal files.
Click on 'explicitSSNP' to generate explicit SNP from beta values file.
4. Quality control of the SNP genotype.
We filtered out the unqualified SNP data by Minor Allele frequencies (MAF<0.05) and Hardy-Weinberg (p<0.001).
18,238 CCSSNPs and 54 explicit SNPs were restored and 421 CCSSNPs and all 54 explicit SNPs passed the quality control.
5. Association analysis with SNP genotype.
There are 354 case and 335 control in GSE42861. Then, we applied the SNP genotype in case-control groups to carry out the association and regression analysis with R.
We used the Chi-squared test with allelic model and Bonferroni's correction to obtain 106 significant difference SNPs (p-adjust<0.05).