This tutorial provides instructions for setting up and running an analysis of methylation data using Illumina HumanMethylation EPICv2 arrays with the ChAMP package in R. Original tutorial can be found here
Before you begin, ensure that you have the following installed on your system:
- R
- RStudio
- Rtools (for Windows)
- ChAMP library
- ChAMPData library
Download and install R from the official CRAN website.
Download and install RStudio from the RStudio website.
For Windows users, install Rtools from the Rtools download page.
The ChAMP and ChAMPData packages supporting on illumina HumanMethylation EPICv2 array may not be available on CRAN or BiocManager. Therefore, they must be installed from GitHub as here
To enable installation of packages directly from GitHub, you need the devtools and BiocManager package. Install it using the following command:
install.packages("devtools")
install.packages("BiocManager")
# load devtools
library(devtools)
library(BiocManager)
BiocManager::install(c("TxDb.Hsapiens.UCSC.hg19.knownGene",
"FDb.InfiniumMethylation.hg19", "IlluminaHumanMethylationEPICmanifest", "IlluminaHumanMethylation450kmanifest",
"GO.db",
"interactiveDisplayBase",
"geneLenDataBase",
"DMRcate"))# ChAMPdata (>=2.31.1), and ChAMP version >= 2.29.1.
install_github("YuanTian1991/ChAMP")
install_github("YuanTian1991/ChAMPdata")