Methylation arrays (Illumina EPIC)

Infinium chemistry, β and M values, normalisation, probe filtering, cell composition and epigenome-wide association studies

Epigenetics

About this lecture

Most human DNA methylation data do not come from sequencing but from Illumina Infinium arrays: hundreds of thousands of preselected CpGs, measured cheaply in thousands of people. Epidemiology, biobanks, epigenetic clocks and tumour classification all run on them.

  • The chemistry: bisulfite, Infinium I and II probes, two colours.
  • The numbers: β and M values, detection p-values, quality control.
  • Normalisation (noob, SWAN, BMIQ, functional normalisation) and probe filtering.
  • Cell composition: blood is a mixture, and the mixture changes with disease. Estimating it, and adjusting for it.
  • The epigenome-wide association study (EWAS): limma with covariates, genomic inflation, a positive control.
  • Running example: GSE42861, blood of rheumatoid arthritis patients and controls on the 450k array (151 samples).

Why arrays?

  • About 1.7% (450k) to 3.3% (EPIC v2) of the ~28 million CpGs, chosen in advance: promoters and CpG islands (450k), plus enhancers (EPIC).
  • In exchange: low cost per sample, 250–500 ng DNA, a few days from DNA to data, and highly standardised data across labs and decades.

Bisulfite turns methylation into a C/T “genotype”

  • After bisulfite conversion and amplification, each CpG of each molecule reads C (was methylated) or T (was unmethylated).
  • The array measures the C and T signals of millions of molecules together: the result is a proportion per CpG, not a per-molecule state.

Infinium I and Infinium II probes

  • 450k: 135 476 Type I and 350 036 Type II probes; EPIC: 142 262 and 724 574.
  • The two designs have different dynamic ranges: a source of technical variation that normalisation must handle.

From IDAT files to β values

library(minfi)
targets <- read.delim(file.path(D, "gse42861_samples.tsv"))
targets$Basename <- file.path(D, "gse42861_idat", targets$basename)
rg   <- read.metharray.exp(targets = targets)    # RGChannelSet: red and green intensities per bead type
mset <- preprocessRaw(rg)                         # MethylSet: M and U per CpG
beta <- getBeta(mset, offset = 100)               # beta = M / (M + U + 100)
object rows contains
IDAT files — two binary files per array (Grn, Red): mean intensity per bead type
RGChannelSet 622 399 addresses raw red and green intensities, including control probes
MethylSet 485 512 CpGs methylated (M) and unmethylated (U) signal per CpG
GenomicRatioSet CpGs with positions β, M values, genome coordinates

β values and M values

\beta = \frac{M}{M + U + 100} \qquad\qquad M\text{-value} = \log_2 \frac{M + 1}{U + 1} \approx \log_2 \frac{\beta}{1 - \beta}

  • β: interpretable (a proportion, 0–1), but its variance depends on the mean: little room near 0 and 1.
  • M-value: unbounded, roughly constant variance: better for linear models. Report effects in β, test on M.

Quality control: detection p-values and sex

  • Detection p-value: is M + U of a probe above the background of ~600 negative control probes? Here 0.08% of probes fail (p > 0.01) in a typical array, 3.9% in the worst; 3 784 probes fail in > 5% of arrays.
  • Sex check: median signal of chrX vs chrY probes. All 151 arrays agree with the records; a mismatch means a sample swap.

Background and dye bias: noob

  • Fluorescence = background (normal) + signal (exponential); the Type I “wrong colour” channel estimates the background on every array.
  • Dye bias: the red and green channels have different gains; control probes with equal target let us rescale.

Type I vs Type II, and what normalisation does

  • Raw data: the methylated peak sits at β ≈ 0.95 for Type I probes and 0.84 for Type II. After noob, SWAN or functional normalisation the gap shrinks to ~0.04.
  • Between-array methods (quantile, functional normalisation) also align arrays to each other.

Which normalisation, when?

method type assumption / use
noob within array background + dye bias; safe default; first step of most pipelines
SWAN, BMIQ within array Type I vs II design bias
quantile (preprocessQuantile) between arrays all arrays have the same β distribution: same tissue, small effects
functional normalisation between arrays technical variation captured by control probes; keeps real global differences (e.g. tumour vs normal)
sesame (openSesame) within array pOOBAH detection, noob, dye bias, masking; the default for EPIC v2
  • As in RNA-seq: a normalisation is an assumption. Quantile normalisation would erase a true global loss of methylation (cancer).
  • On these 151 arrays: noob 2.7 min, SWAN 2.0, funnorm 6.5 (16 GB RAM), quantile 1.8.

Probes that measure something else

  • Here: 485 512 → 481 728 (detection) → 452 974 (Zhou et al. general mask: 20 010 non-unique probes, common SNPs at the target or extension base) → 442 415 (drop chrX, chrY).

The dataset: GSE42861

RA patients controls
samples (14 BeadChips with both groups) 79 72
women / men 61 / 18 46 / 26
age (median) 55 54
current / ex / never / occasional smokers 25 / 31 / 18 / 5 12 / 25 / 25 / 8 (2 unknown)
  • Peripheral blood leukocytes, 450k array, Liu et al. 2013 (689 samples in total, Sweden).
  • In the full study many BeadChips carry only patients or only controls: chip and disease are confounded. We took the 14 chips with both.

What drives the variation?

  • PCA of the 20 000 most variable autosomal CpGs (M-values after noob). PC1 (25%) is a batch: four BeadChips of one older lot (5730053…) vs the other ten; the slide explains 85% of PC1.
  • PC2 (11%) is cell composition (r = −0.80 with the granulocyte fraction), and patients sit at the high-granulocyte end. Disease itself is not a principal component.

Blood is a mixture, and the mixture changes

  • A CpG that differs between cell types changes its bulk β whenever the proportions change, even if no cell changed anything.
  • Inflammatory disease, age, smoking, sex, stress and drugs all change blood composition: cell composition is a confounder in almost every blood EWAS.

Estimating the fractions: reference-based deconvolution

  • A reference of sorted cells gives β of marker CpGs per cell type; each sample is fitted as a non-negative mixture (Houseman et al. 2012).
  • minfi: estimateCellCounts(rg, compositeCellType = "Blood"); EpiDISH and sesame offer the same idea with other references.

The reference: marker CpGs of sorted cells

  • Each cell type has CpGs that are unmethylated only in it (its enhancers and lineage genes): the dark/light blocks.
  • Granulocytes (neutrophils) and lymphocytes differ the most; CD4 and CD8 T cells the least.

Estimated fractions: patients have more granulocytes

  • Granulocytes 70% in RA vs 58% in controls (p ≈ 10⁻¹³); every lymphocyte type is lower in patients.
  • Exactly the situation of the toy example, at real scale.

An EWAS is a linear model per CpG

library(limma)
M <- log2(beta / (1 - beta))                         # M-values, CpGs x samples (after filtering)
design <- model.matrix(~ status + age + sex + smoking + CD8T + CD4T + NK + Bcell + Mono, data = samples)
fit <- eBayes(lmFit(M, design))
res <- topTable(fit, coef = "statusRA", number = Inf)
  • The same machinery as limma for RNA-seq: one linear model per CpG, the same design matrix for all, moderated t-statistics, Benjamini–Hochberg FDR.
  • Covariates: age, sex, smoking, cell fractions (one left out), batch (chip). The coefficient of statusRA is the RA effect at fixed composition.

Genomic inflation: read the QQ plot

  • \lambda = \dfrac{\text{median}(\chi^2_1 \text{ of the observed } p)}{0.455}: 1 if most CpGs follow the null. RA: 4.27 → 3.53 → 2.27 → 1.64 as covariates are added.
  • CpGs at FDR 5%: 102 938 → 98 983 → 2 159 → 0. Most of the “RA signal” was cell composition (and chip).

A positive control: smoking

  • Same model, coefficient current vs never smokers (37 vs 43 people): 13 CpGs at FDR 5%, λ = 1.95.
  • Top hits are the textbook smoking CpGs: AHRR cg05575921 (β 0.85 never → 0.66 current; rank 2), 2q37.1 (ALPPL2), F2RL3, 6p21.33.

Interpreting EWAS hits

  • Effect sizes are small: typical Δβ of 1–5%. Real, but often less than the technical noise of a single array: replicate in an independent cohort.
  • Direction of causation: disease → methylation is as plausible as the reverse. RA treatment (methotrexate, steroids) changes both cell composition and methylation.
  • Genetics: many CpGs are controlled by nearby SNPs (meQTLs, Epigenomics and genetic variation); a disease-associated SNP can drive both. Mendelian randomisation can test the direction.
  • Tissue: blood is accessible, not necessarily relevant (the joint synovium is where RA happens).
  • 450k covers about 1.7% of CpGs; EPIC about 3%: “no hit” does not mean “no methylation change”.

Tools and choices

step minfi (this lecture) alternatives
read IDATs read.metharray.exp sesame::openSesame, meffil
QC detectionP, getSex, control probes sesame pOOBAH, ewastools, meffil QC report
normalise preprocessNoob, preprocessSWAN, preprocessFunnorm, preprocessQuantile wateRmelon::BMIQ, ChAMP
filter detection p, Zhou masks, SNPs (dropLociWithSnps), sex chromosomes sesame masks (built in)
cell composition estimateCellCounts (Houseman) EpiDISH, FlowSorted.Blood.EPIC, reference-free (RefFreeEWAS, SVA)
test limma on M-values DMRcate, bumphunter (regions), bacon (inflation)
  • EPIC v2 (2023) needs updated manifests and masks (sesame supports it; check minfi annotation versions).

Summary

idea key fact
assay bisulfite + Infinium genotyping chemistry; Type I (two beads) and Type II (two colours)
platforms 27k → 450k (485 577) → EPIC (866 895) → EPIC v2 (~935 000); ~1.7–3.3% of CpGs
β and M β = M/(M+U+100); M = log2 ratio; test on M, report Δβ
QC detection p vs negative controls; sex from chrX/chrY; conversion controls
normalisation noob (background, dye), SWAN/BMIQ (design), quantile/funnorm (between arrays)
filtering failed probes, SNPs, cross-reactive (Zhou masks), sex chromosomes: 485 512 → 442 415
composition blood = mixture; Houseman deconvolution; RA: granulocytes 70% vs 58%
EWAS limma per CpG with covariates; λ 4.27 → 1.64 and 102 938 → 0 hits as composition and chip enter
positive control smoking: AHRR cg05575921, β 0.85 → 0.66

Key papers (optional further reading)

Not required reading and not examined. For those who want the primary literature.