Biology

RapidMACS: MACS3-identical peak calling, 50x faster

How the science connects

Genomic sequencingPeak calling

AI Insight

RapidMACS is a new software tool that performs narrow peak calling for genomic sequencing data identically to the widely-used MACS3 toolkit but operates 3.5 to 51 times faster depending on the dataset and computing configuration. The speed improvement is achieved through algorithmic optimizations including parallel chromosome processing, single-pass signal track construction without global sorting, and keeping intermediate data in memory rather than creating temporary files. The tool produces byte-identical output to MACS3, ensuring that downstream analyses yield identical results while dramatically reducing computational time.


This tool addresses a significant computational bottleneck in genomic data analysis pipelines, particularly for ATAC-seq and multiomic studies where peak calling is performed repeatedly under different conditions. The substantial time savings and resource efficiency improvements make large-scale genomic analyses more accessible and cost-effective, while the identical output to MACS3 ensures compatibility with existing workflows and reproducibility of results.


Understand the Science

Genomic sequencing Concept coming soon Peak calling Concept coming soon

⚠️ Preprint – Noch nicht peer-reviewed

Dieser Artikel wurde noch nicht von unabhängigen Experten begutachtet. Die Ergebnisse sind vorläufig und sollten mit Vorsicht interpretiert werden.

Motivation: MACS3 is a comprehensive peak-calling toolkit whose subcommands span single- and paired-end data, narrow and broad peaks, and a range of signal-track utilities. However, many ATAC-seq and multiomic pipelines, including our own, use just one of those capabilities: narrow peak calling. A single analysis may call peaks under different conditions, so a per-call saving is multiplied and the time recovered can be substantial. Furthermore, we wanted an efficient and embeddable narrow peak caller that could be integrated directly with our Chromap Suite aligner, so we wrote RapidMACS. Results: RapidMACS is a narrow peak caller optimized for this purpose, building its signal tracks in a single lazy sweep that avoids a global sort, processing chromosomes in parallel, and keeping intermediates in memory rather than creating temporary files. In benchmarks involving single-cell ATAC-seq, bulk ATAC-seq, ChIP-seq, and CUT&RUN, it is 3.5 to 51 times faster than MACS3 v3.0.3 depending on the applications and number of threads used. More importantly, the output is byte-identical. This means that any downstream analysis using RapidMACS will produce identical results to those using MACS3. The speed gains are largely due to these algorithmic changes rather than the choice of language, because MACS3’s peak-calling code is itself compiled (Cython). RapidMACS depends only on htslib and zlib and links as a small static archive without a Python or Cython runtime. Availability and implementation: RapidMACS is open source under the MIT license at https://github.com/morphic-bio/rapidmacs, with both a standalone CLI executable (rapidmacs) and a linkable C++ library. Prebuilt containers for x86-64 and arm64 are published as biodepot/rapidmacs on Docker Hub.

Source: RapidMACS: MACS3-identical peak calling, 50x faster