ChIP-seq peak calling and downstream interpretation with MACS3, signal track export, annotation, motif analysis, and differential binding review.
Reference examples assume:
macs3 3.0+samtools 1.18+deepTools 3.5+Before using commands, verify the installed environment:
macs3 --version, samtools --version, bamCoverage --version--help and adapt rather than forcing the example unchanged.Use this skill for:
--broad.-f BAMPE.| Requirement | Narrow TF-style | Broad histone-style |
|---|---|---|
| usable uniquely mapped reads | >= 10M | >= 20M |
| matched input recommended | yes | yes |
| biological replicates recommended | >= 2 | >= 2 |
chip.baminput.bam when availableresults/peaks/sample_peaks.narrowPeak or .broadPeakresults/peaks/sample_summits.bedresults/tracks/sample_treat_pileup.bwresults/annotation/peak_annotation.tsvqc/chip_qc_summary.tsvmacs3 callpeak \
-t chip.bam \
-c input.bam \
-f BAMPE \
-g hs \
-n sample \
-q 0.01 \
--outdir results/peaks
| Parameter | Typical value | Meaning |
|---|---|---|
-f | BAM or BAMPE | paired-end should use BAMPE |
-g | hs, mm, or numeric | effective genome size |
-q | 0.01 or 0.05 | FDR cutoff for narrow peaks |
--broad | broad marks only | broad peak mode |
--broad-cutoff | 0.1 | broad-peak FDR cutoff |
-B --SPMR | enabled for tracks | bedGraph for normalized signal |
Check:
-q 0.01 is a good starting point--broad --broad-cutoff 0.1-f BAMPEUse -B --SPMR, sort the resulting bedGraph, then convert to bigWig for browser use.
Map peaks to promoters, gene bodies, or distal intervals and review top loci in a genome browser or track plot.
Only after peak quality looks credible and replicate structure supports the downstream question.
results/
├── peaks/
│ ├── sample_peaks.narrowPeak
│ ├── sample_summits.bed
│ └── sample_model.r
├── tracks/
│ ├── sample_treat_pileup.bdg
│ └── sample_treat_pileup.bw
└── annotation/
└── peak_annotation.tsv
qc/
└── chip_qc_summary.tsv
< 0.01 poor0.01-0.05 usable but weak> 0.05 generally soliddeeptoolspysam