Varlap: Bringing Alignment-Based Variant Quality Control to Scale
Large-scale sequencing studies, particularly in cancer genomics, generate thousands of candidate variants, many arising from problematic alignment contexts such as low depth of coverage, sample contamination, or proximity to other variants. Manually inspecting these in tools such as IGV is effective for small variant sets but impractical at cohort scale. Varlap (github.com/bjpop/varlap) is an open-source tool that automates this process, computing per-variant alignment-context metrics from one or more BAM files, including edit distance, base and mapping quality, alignment length, clipping, and strand distribution. It has supported variant QC across thousands of samples in the Pan Prostate Cancer Group (panprostate.org) and in published studies of breast tumour mutational signatures. Since it makes no assumptions about the origin of the variants or reads, it is also generalizable beyond human and cancer genomics to other organisms and variant-calling contexts. Varlap's original Python implementation queries reads independently for each variant position. This performs well for sparsely distributed somatic variants but scales poorly when variants are closely spaced or when scanning contiguous genomic windows, since overlapping reads are repeatedly refetched from the BAM file. To address this bottleneck, Varlap has been reimplemented in Rust (github.com/jchchiu/rust-varlap), restructuring the core algorithm to iterate over reads rather than variant positions, so that each overlapping read is fetched at most once per genomic bin. This sets the foundation for substantially higher performance on dense or contiguous variant sets, while preserving Varlap's original output format and metrics, and lays the groundwork for future multithreaded execution.
Authors
- Francesco Favero (ORCID: https://orcid.org/0000-0003-3684-2659)
- Julian Chiu
- Daniel Jonathan Park (ORCID: https://orcid.org/0000-0002-6354-0931)
- Bernard J. Pope (ORCID: https://orcid.org/0000-0002-4840-1095)
- Christopher M. Hovens (ORCID: https://orcid.org/0000-0002-0610-1289)
- Peter Georgeson (ORCID: https://orcid.org/0000-0002-5096-4735)
- Chol‐Hee Jung (ORCID: https://orcid.org/0000-0002-2992-3162)
- Grace Hall (ORCID: https://orcid.org/0000-0002-5105-8347)
Institutions
- University of Copenhagen (DK)
- The University of Melbourne (AU)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-15
- DOI
- https://doi.org/10.5281/zenodo.24239218
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00