Efficient downsampling of genome alignments with Rasusa
High-throughput sequencing datasets frequently exhibit extreme read depth variation, biasing downstream analysis. Normalising coverage to a specific depth cap is important, yet existing tools rely on computationally expensive fetch-based or non-deterministic greedy algorithms. Here, we present a new coordinate-sorted sweep-line algorithm implemented in the open-source software rasusa that enforces a strict coverage cap at every genomic position. By utilising seeded random priority assignment, we achieve unbiased, reproducible read selection. The algorithm reduces runtimes by over 1,400-fold compared to legacy fetch-based methods-slashing processing from hours to mere seconds-and operates roughly four times faster than VariantBam. Furthermore, it requires only 8 MB of memory for long-read data. This provides a highly efficient, scalable, and reproducible solution for sequencing coverage normalisation.
Authors
- Michael B. Hall (ORCID: https://orcid.org/0000-0003-3683-6208)
- Leah W. Roberts (ORCID: https://orcid.org/0000-0002-1024-0564)
- Achmad Dimas Cahyaning Furqon
Institutions
- The University of Queensland (AU)
Publication Details
- Journal
- Gigabyte
- Published
- 2026-04-27
- DOI
- https://doi.org/10.46471/gigabyte.180
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- University of Queensland
- Lembaga Pengelola Dana Pendidikan
- Medical Research Council
- National Health and Medical Research Council
- Research Computing Centre, University of Queensland