Enrichment visualization and differential analysis of chromatin accessibility (ATAC-seq) in MCF7 vs. MCF10A
Mai Tam Pham – 29 March 2025
Objectives
We only examine chr22:17,000,000 – 52,000,000 (GRCh38)
Detect differential accessibility regions in MCF7 vs. MCF10A
Tools: csaw R/Bioconductor package (https://bioconductor.org/books/release/csawBook/)
Visualize enrichment ATAC-seq signals of
Tools:
deeptools (https://deeptools.readthedocs.io/en/latest/)
IGV (https://igv.org/doc/desktop/#)
Note: we can do the same thing with ChIP-seq data
Datasets
We only examine chr22:17,000,000 – 52,000,000 (hg19 - Gencode)
For task 1:
For task 2:
ATAC-seq overview
ATAC-seq analysis workflow
Raw FASTQ
Processed FASTQ
Raw BAM
Processed BAM
Downstream (fundamental) analysis
Peak calling
Differential accessibility regions
Enrichment ATAC-seq signal visualization
bamToBigWig
macs2
csaw
deeptools bamCoverage
Task 1
Task 2
Other (advanced) analysis:
Code and results – Task 1 – Differential accessibility regions
Step 1: Load sorted and indexed BAM files (require .bai files in the same location as .bam)
Step 2: Prepare design matrix and contrast expression (for differential analysis)
Note: These tools are designed for calling differential binding of ChIP-seq, but can also use for ATAC-seq
Step 3: Summarize window-level read counts
SE reads
PE reads
Filtering options:
By count size, by proportion, by local enrichment, by global enrichment, with negative controls, by prior information
Normalization is necessary to remove library-specific biases (e.g. different sequencing depth) prior to differential analysis
Step 4: Detect differential accessibility regions
G1_rep1 | G1_rep2 | G2_rep1 | G2_rep2 |
23 | 25 | 78 | 90 |
1 | 4 | 7 | 10 |
100 | 200 | 76 | 150 |
Feature
(Window)
Window 1
Tagwise (feature-specific) dispersion follows Chi-squared distribution
NB distribution X~NB(mean,dispersion)
Var(X) = mean(X)+mean^2(X)*1/dispersion
Mean1, var1, dispersion1
Mean2, var2, dispersion2
GLM-NB distribution model is used to account for overdispersion (the nature of count data)
F (QL F-statistic): higher means stronger differential
Code and results – Task 2.1 Visualization example of enrichment signals of differential accessibility regions
deeptools (https://deeptools.readthedocs.io/en/latest/)
Step 1: Prepare score (.bw/.bigwig) files from .bam files (require .bai files at the same location as .bam files
Step 2: Prepare region files (BED3/BED6 with strand specified)
INFO row
Regions
Step 3: Construct a score matrix (rows as regions, columns as bin-based scores)
Step 4: Create heatmap plot based on the computed matrix score
Scenario 1: Enrichment heatmap plot for only 2 samples (MCF7_rep1 and MCF10A_rep1)
Scenario 2: Enrichment heatmap plot for 4 samples (MCF7_rep1, MCF7_rep2, MCF10A_rep1, MCF10A_rep2)
Code and results – Task 2.2 Visualization of ATAC-seq enrichment signals in TSS and gene regions
Scenario 1: Enrichment ATAC-seq signal around TSS
Scenario 2: Enrichment ATAC-seq signal along gene regions (TSS/TES)
Task 2.3 ATAC-seq peak/alignment visualization using IGV
TSS+/-8000bp
TSS+/-500bp
TSS+/-200bp
TSS+/-200bp