Skip to main content
v2026.11,986 entries · CC-BY 4.0

MACS3: Peak Calling for ChIP-Seq and Epigenomic Data

A comprehensive guide to MACS3 peak calling for ChIP-seq and ATAC-seq, covering dynamic Poisson background modeling, subcommands, and pipeline parameters.

Written and maintained by CASRAI Editorial Board

Published

On this page

MACS3 (Model-based Analysis of ChIP-Seq, version 3) is an open-source command-line software package designed to identify statistically enriched genomic regions, or peaks, from high-throughput sequencing assays including ChIP-seq, ATAC-seq, and CUT&RUN. Developed by Tao Liu and colleagues as the modern successor to MACS2, MACS3 models empirical fragment length shifts and calculates dynamic, local Poisson background lambda values to distinguish true biological binding events and chromatin accessibility from background sequencing noise.

Definition and Scope of MACS3

In regulatory genomics, peak calling identifies genomic intervals where aligned sequencing reads accumulate in numbers significantly exceeding background expectation. MACS3 represents the third generation of the Model-based Analysis of ChIP-Seq architecture, originally established by Yong Zhang, Tao Liu, and Shirley Liu in 2008. While earlier versions focused primarily on single-end transcription factor mapping, MACS3 extends this algorithmic foundation into a modular suite capable of processing bulk and single-cell regulatory assays.

Outside computational biology, the acronym MACS3 is occasionally used in maritime shipping for Modular Advanced Cargo System 3, an onboard loading computer for vessel hydrostatics and cargo stowage. Within life sciences and bioinformatics, however, MACS3 refers exclusively to the Python and Cython package maintained by the macs3-project on GitHub. All discussion in this guide pertains strictly to the bioinformatics peak-calling platform.

The functional scope of MACS3 spans diverse experimental designs:

  • Transcription factor profiling: Detecting localized binding sites (narrow peaks) spanning 100 to 500 base pairs for factors such as CTCF, p53, or nuclear receptors.
  • Histone modification mapping: Mapping both focal promoter-associated marks (such as H3K4me3) and broad diffuse chromatin domains (such as H3K27me3 and H3K36me3).
  • Chromatin accessibility profiling: Parsing assay data from ATAC-seq and DNase-seq to identify nucleosome-depleted regions and accessible regulatory elements.
  • Targeted low-input profiling: Adapting to enzyme-tethered assays such as CUT&RUN and CUT&Tag, which exhibit exceptionally low non-specific background noise.

MACS3 is implemented in Python with performance-critical routines written in Cython and C. It integrates into scientific computing environments via Bioconda, PyPI, and container images, and interfaces with R ecosystems through packages such as MACSr on Bioconductor. When planning a regulatory genomics pipeline, researchers combine MACS3 with upstream sequence alignment tools and downstream enrichment annotation frameworks.

Understanding where MACS3 fits in the laboratory workflow requires appreciating the distinction between wet-lab chromatin capture and computational signal processing. For experimental background on assay preparation, antibody validation, and input control design, researchers consult protocols for chromatin immunoprecipitation principles. Once sequencing libraries are generated, downstream quality assessment relies on established ChIP-seq quality metrics before alignment files enter the MACS3 peak-calling pipeline.

How the MACS3 Peak Calling Algorithm Works

The central computational challenge in short-read sequencing of fragmented chromatin stems from library preparation geometry. When sheared DNA fragments are subjected to single-end sequencing, sequencers read a fixed number of nucleotides from the 5′ end of each strand. Reads originating from the forward (+) strand align to the left of the actual transcription factor binding site, while reads originating from the reverse (-) strand align to the right. This arrangement creates two distinct, strand-separated tag density distributions flanking the true binding site, separated by a distance roughly equal to the average DNA fragment length.

MACS3 resolves this structural artifact through an empirical fragment size modeling process:

  1. Candidate peak selection: MACS3 scans the treatment alignment file to locate high-confidence enrichment sites displaying tag enrichment within a defined fold-enrichment window over background, controlled by the --mfold parameter (defaulting to 10 to 30 fold).
  2. Bimodal model construction: For these candidate peaks, MACS3 separates reads by strand orientation and aligns positive-strand and negative-strand summits. The horizontal distance between forward and reverse distribution modes represents the estimated fragment length, designated as parameter d.
  3. Tag shifting: Once d is estimated, MACS3 shifts all sequencing tags toward their 3′ direction by a distance of d/2. This shifting centers all aligned tags over the predicted molecular binding site, converting bimodal raw alignment signals into a unified pileup profile.

After tags are shifted and accumulated into a genomic pileup track, MACS3 evaluates whether local pileup summits represent genuine biological signal or stochastic background fluctuations. Simple uniform Poisson models assume that background reads are distributed homogeneously across the genome. In eukaryotic genomes, this assumption fails due to non-uniform chromatin accessibility, variable sequencing mappability, local GC-content biases, and aneuploid copy number alterations.

To overcome these non-random variations, MACS3 computes a dynamic Poisson parameter, denoted as local lambda (λlocal). For every candidate peak window, MACS3 calculates background read density across multiple genomic scales:

  • Global background lambda (λBG): The total number of mapped control reads divided by the effective mappable genome size (g).
  • Small local window lambda (λ1k): Control read density within a 1,000 base pair window centered at the candidate peak summit.
  • Intermediate local window lambda (λ5k): Control read density within a 5,000 base pair window centered at the summit.
  • Large local window lambda (λ10k): Control read density within a 10,000 base pair window centered at the summit.

MACS3 sets the effective background expectation to the most conservative value observed across these scales: λlocal = max(λBG, λ1k, λ5k, λ10k). If a matched control file is provided, these values derive from the control track. If no control is supplied, MACS3 estimates local lambda from the treatment track using the wider windows (λ5k and λ10k) while excluding the immediate peak region.

Using this dynamic λlocal, MACS3 evaluates the statistical significance of observed treatment tag counts (k) under the Poisson cumulative distribution function: P(X ≥ k) = ∑ [ (λlocali × e-λlocal) / i! ] for i from k to infinity. Because tens of thousands of genomic windows are evaluated simultaneously, MACS3 applies Benjamini-Hochberg multiple hypothesis correction to transform raw p-values into false discovery rates (q-values). A candidate summit is retained only if its significance meets the threshold set by -q (defaulting to 0.05) or the user-specified p-value cutoff set by -p.

Core Subcommands and Specialized Analytical Modules

While the callpeak routine remains the most frequently executed component, modern MACS3 is architected as a modular toolkit containing several specialized subcommands tailored to distinct epigenomic analytical tasks:

  • callpeak: The primary peak-calling engine for narrow and broad enrichment detection across ChIP-seq and ATAC-seq.
  • hmmratac: A dedicated Hidden Markov Model framework that partitions ATAC-seq fragment lengths into short, mono-, di-, and tri-nucleosomal states to segment accessible chromatin.
  • callvar: A variant caller that identifies single nucleotide variants (SNVs) and small indels directly within enriched peak intervals.
  • bdgdiff: A differential binding module that compares four bedGraph tracks to categorize genomic loci into condition-specific or shared peaks.
  • bdgcmp: A mathematical track comparison tool that calculates fold-enrichment, logFE, or Poisson significance tracks from treatment and control bedGraph files.
  • filterdup: A preprocessing module that estimates the genome-wide duplication rate and removes redundant PCR duplicates from alignment files.
  • predictd: A diagnostic routine that calculates tag cross-correlation to estimate fragment size d without performing peak calling.

The interactive data table below summarizes the core subcommands of MACS3, detailing their input requirements, analytical objectives, key execution flags, and genomic applications across regulatory assays.

Assay-Specific Parameter Tuning and Execution Recipes

Because molecular mechanisms vary across functional genomics assays, running MACS3 with generic default settings across all data types leads to suboptimal sensitivity and elevated false-positive rates. Successful peak calling requires tuning parameters to match the biological characteristics of the target factor or chromatin feature.

The following comparative table summarizes parameter configurations across major regulatory assay classes based on published software specifications and consortium recommendations:

Assay Class Target Epigenetic Feature MACS3 Execution Mode Key Flag Parameters Recommended Cutoff
Transcription Factor ChIP-seq Sharp, localized sequence-specific binding (100–300 bp) Default callpeak narrow mode -f BAM -g hs --call-summits -B -q 0.01 (1% FDR)
Punctate Histone ChIP-seq Focal promoter activation marks (e.g., H3K4me3, H3K27ac) Default callpeak narrow mode -f BAM -g hs --nomodel --extsize 147 -B -q 0.01 (1% FDR)
Broad Histone ChIP-seq Extended repressive or elongation domains (H3K27me3, H3K36me3) Broad domain mode (--broad) -f BAM -g hs --broad --broad-cutoff 0.1 -B --broad-cutoff 0.1
Paired-End ATAC-seq Open chromatin and transposase accessibility Paired-end callpeak or hmmratac -f BAMPE -g hs --call-summits -B -q 0.01
Single-End ATAC-seq Open chromatin Tn5 cutting sites Shift-adjusted callpeak -f BAM -g hs --nomodel --shift -100 --extsize 200 -B -q 0.01
CUT&RUN / CUT&Tag Low-background targeted antibody-guided cleavage Paired-end narrow or broad mode -f BAMPE -g hs --nomodel -c IgG_control.bam -q 0.01 -q 0.01 or -q 0.05

To execute a rigorous peak-calling workflow, computational biologists follow a structured, multi-step pipeline:

  1. Verify alignment quality and coordinates: Prior to invoking MACS3, ensure sequencing reads are aligned with a splice-unaware aligner, coordinate-sorted, and indexed with SAMtools. Confirm chromosome nomenclature matches between treatment and control files (for example, ensuring both use chr1 or both use 1).
  2. Determine effective genome size: The -g parameter specifies the mappable portion of the reference genome. MACS3 provides built-in shortcuts: hs for human (2.7 × 109 bp), mm for mouse (1.87 × 109 bp), ce for C. elegans (9.0 × 107 bp), and dm for D. melanogaster (1.2 × 108 bp). For other genomes, supply the exact integer.
  3. Configure duplicate handling: By default, MACS3 applies --keep-dup 1 to suppress PCR over-amplification. If duplicates were already removed during upstream processing via Picard or SAMtools, supply --keep-dup all so MACS3 avoids redundant filtering.
  4. Execute peak calling with track generation: Include the -B flag during execution to generate bedGraph coverage tracks for visual inspection in IGV. For paired-end experiments, specify -f BAMPE to use physical fragment boundaries and bypass single-end shift modeling.
  5. Perform downstream peak annotation: Once peaks are called, pipelines pass output intervals into the ChIPseeker peak annotation package for genomic feature assignment. In single-cell studies, intervals can be imported into the ArchR single-cell ATAC-seq framework. For read quantification across peak intervals, researchers use the featureCounts read summarization tool.

Understanding MACS3 Output Files and Quality Metrics

Upon completion of a callpeak run, MACS3 generates several structured text files in the specified output directory:

  • [name]_peaks.narrowPeak: An ENCODE BED6+4 file containing identified narrow peak intervals, peak summits, fold-enrichment, and -log10(q-value) scores.
  • [name]_peaks.broadPeak: An ENCODE BED6+3 file containing broad enriched domains without discrete single-base summit coordinates.
  • [name]_summits.bed: A BED4 file containing exact single-base summit coordinates, used primarily for transcription factor motif discovery.
  • [name]_peaks.xls: A tab-delimited text file containing run metadata, estimated fragment length d, tag counts, and tabular peak metrics.
  • [name]_treat_pileup.bdg and [name]_control_lambda.bdg: BedGraph files containing base-pair resolution pileup and control lambda tracks for genome browser visualization.

Quality evaluation requires checking the estimated fragment size d in the _peaks.xls header against experimental Bioanalyzer traces. In sonicated ChIP-seq libraries, d should typically range from 150 to 300 base pairs. Furthermore, researchers assess the Fraction of Reads in Peaks (FRiP score). Under ENCODE standards, high-quality transcription factor ChIP-seq experiments typically achieve a FRiP score exceeding 1%, with exceptional libraries surpassing 5% to 10%.

Common Misunderstandings and Troubleshooting

Working with MACS3 involves avoiding several pervasive misconceptions that frequently compromise regulatory genomics analyses:

  • Believing paired-end data requires empirical shift modeling: In paired-end sequencing, both ends of each fragment are known. Passing -f BAMPE directs MACS3 to use exact fragment spans directly, automatically bypassing bimodal shifting.
  • Assuming control samples can be omitted without penalty: While MACS3 can run without a control by estimating background from flanking windows, matched controls account for unmappable regions, GC biases, and copy number variations. Omitting controls sharply increases false positives.
  • Confusing -p and -q significance cutoffs: The p-value cutoff (-p) and false discovery rate cutoff (-q) are mutually exclusive. Specifying -p completely disables the Benjamini-Hochberg FDR calculation.
  • Overlooking chromosome naming discrepancies: If the treatment BAM uses chr1 while the control BAM uses 1, MACS3 cannot align control tags with treatment tags, resulting in empty output files.
  • Applying narrow peak settings to broad domains: Running default narrow settings on diffuse marks such as H3K27me3 fractures continuous chromatin domains into fragmented sub-peaks. Always use --broad for diffuse histone marks.

Frequently asked questions

What is MACS3, and how does it differ from MACS2?

MACS3 is the modern, actively maintained major version of the Model-based Analysis of ChIP-Seq software suite. While MACS2 was built for older Python environments, MACS3 is completely refactored in modern Python 3 and Cython with C-level algorithmic optimizations. Crucially, MACS3 introduces native CPU multithreading support via the --threads flag, integrates the hmmratac hidden Markov model module for ATAC-seq, incorporates the callvar subcommand for variant detection within peak intervals, and provides improved handling of paired-end fragment files.

Do I need a control (Input or Mock) sample when running MACS3?

While MACS3 can execute on treatment data alone by estimating local background noise from wider flanking genomic windows, including a matched sequencing control (such as Input DNA or non-specific IgG) is strongly recommended for all published research. Matched controls correct for sequencing mappability artifacts, chromatin shearing biases, GC-content variation, and local copy number alterations, preventing thousands of false-positive peak calls.

What is the standard command for transcription factor ChIP-seq?

For standard single-end transcription factor ChIP-seq with a matched input control in human data, the recommended command is: macs3 callpeak -t ChIP.bam -c Control.bam -f BAM -g hs -n experiment_name -B -q 0.01. This specifies human genome size (-g hs), generates bedGraph coverage tracks (-B), applies a stringent 1% false discovery rate threshold (-q 0.01), and empirically calculates the fragment shift model.

How do I run MACS3 on histone modifications with broad peaks?

To call broad peaks on diffuse histone modifications such as H3K27me3 or H3K36me3, add the --broad flag and specify a broad significance cutoff: macs3 callpeak -t Histone.bam -c Control.bam -f BAM -g hs -n histone_broad --broad --broad-cutoff 0.1 -B. In broad mode, MACS3 links adjacent enriched regions into continuous domains using the looser broad cutoff rather than reporting single focal summits.

How do I handle paired-end sequencing data in MACS3?

For paired-end sequencing libraries, specify the format parameter as -f BAMPE (for BAM files) or -f BEDPE (for BED files). When BAMPE is set, MACS3 automatically extracts exact fragment spans from paired mates, accurately maps middle fragment positions without needing to estimate d, and bypasses the empirical single-end shifting model.

How does MACS3 handle duplicate reads?

By default, MACS3 applies --keep-dup 1, retaining at most one read per unique genomic start coordinate and strand orientation to suppress PCR amplification bias. If PCR duplicates have already been flagged or removed upstream during alignment using tools like Picard or SAMtools, users should pass --keep-dup all to ensure MACS3 does not discard genuine multi-fragment alignments.

Sources

Data: MACS3 Core Subcommands and Operational Parameters

Comparison of primary MACS3 subcommands across input data formats, analytical objectives, key tuning parameters, and genomic application scopes compiled from official documentation and software release specifications.

MACS3 Core Subcommands and Operational Parameters
SubcommandPrimary InputAnalytical ObjectiveKey FlagsGenomic Scope
callpeakBAM, BED, BAMPEIdentifies statistically enriched peak summits and regions--treatment, --control, --qvalue, --broadChIP-seq, bulk ATAC-seq, CUT&RUN
hmmratacBAM, BEDPE, FRAGHMM-based chromatin accessibility state calling--input, --genome, --min-frag-lenATAC-seq, single-cell ATAC-seq
bdgdiffbedGraphDetects differential peaks across biological conditions--t1, --c1, --t2, --c2, --cutoffComparative epigenomic profiling
bdgcmpbedGraphGenerates comparative signal tracks against control background-m ppois, -m qpois, -m FE, -m logFESignal track visualization and scoring
callvarBAM, BEDCalls genetic variants overlapping enriched peak intervals--peak, --bam, --min-coverageFunctional genomics and SNV identification
filterdupBAM, SAM, BEDRemoves redundant PCR artifacts and calculates duplication rate--keep-dup, --buffer-sizeRead preprocessing and alignment filtering
predictdBAM, SAM, BEDEstimates fragment size d via tag cross-correlation modeling-i, -g, -mQuality control and single-end library profiling

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about MACS3: Peak Calling for ChIP-Seq and Epigenomic Data

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →