8. ChIP-Seq Transcription Factor & Histone Mark Analysis
Crosslinked chromatin immunoprecipitation sequencing for pinpointing transcription factor binding sites (narrow peaks) and histone modification domains (broad peaks, e.g. H3K27me3, H3K4me1).
| Metric / Requirement | Specification | Target Configuration |
|---|---|---|
| Core Engine / Framework | Bowtie2 + MACS3 + deepTools | Nextflow / Snakemake Compatible |
| Benchmark Runtime | ~3 – 4 hours per library | 16 CPU cores / 32 GB RAM |
| Standard Container | quay.io/biocontainers/deeptools:3.5.5--pyhdfd78af_0 | Docker • Singularity • Conda |
| Input → Deliverable | ChIP/Input FASTQ → Filtered BAM, Peak BED, Normalized BigWig & Heatmaps | |
Step 1: Reference Alignment with Bowtie2
Aligns ChIP sample and matched input control reads to the reference genome.
bowtie2 -p 16 -x /references/hg38_index -U chip_sample.fastq.gz | samtools sort -@ 8 -o chip.sorted.bam -
bowtie2 -p 16 -x /references/hg38_index -U input_control.fastq.gz | samtools sort -@ 8 -o input.sorted.bam -
samtools index chip.sorted.bam
samtools index input.sorted.bamStep 2: Narrow Peak Calling for Transcription Factors with MACS3
Detects sharp, focal binding sites for sequence-specific transcription factors.
macs3 callpeak -t chip.sorted.bam -c input.sorted.bam \
-f BAM -g hs -n TF_sample -q 0.01 --outdir macs3_narrow_out/-c input.sorted.bam models local genomic lambda background from the control sequencing library.Step 3: Broad Peak Calling for Epigenetic Histone Modifications
Detects diffuse chromatin domains characteristic of repressive (H3K27me3, H3K9me3) or enhancer (H3K4me1) histone modifications.
macs3 callpeak -t chip.sorted.bam -c input.sorted.bam \
-f BAM -g hs -n Histone_sample --broad --broad-cutoff 0.05 --outdir macs3_broad_out/--broad links nearby sub-peaks into extended domain blocks.Step 4: Normalized BigWig Generation & Heatmap Profiling with deepTools
Creates RPKM-normalized signal tracks and plots signal heatmaps centered on transcription start sites (TSS).
# Generate 10bp binned RPKM BigWig
bamCoverage -b chip.sorted.bam -o chip_normalized.bw \
--binSize 10 --normalizeUsing RPKM --effectiveGenomeSize 2913022398
# Compute matrix across TSS regions
computeMatrix reference-point --referencePoint TSS \
-b 3000 -a 3000 \
-R /references/gencode_v44_genes.bed \
-S chip_normalized.bw \
-o matrix_TSS.gz
plotHeatmap -m matrix_TSS.gz -out chip_TSS_heatmap.png --colorMap RdYlBu_r--normalizeUsing RPKM enables quantitative visual comparison across independent sequencing libraries.🚀 Automated Nextflow (nf-core) Production Execution
Execute this complete workflow across any SLURM, AWS Batch, or Google Cloud HPC cluster using the verified community container pipeline:
nextflow run nf-core/chipseq -r 2.0.0 \
--input samplesheet.csv \
--genome GRCh38 \
--outdir ./results_chipseq/ \
-profile docker