whittle: annotation-preserving trimming and filtering of long reads
Long reads from Oxford Nanopore and PacBio instruments can carry per-base annotations in unaligned BAM or FASTQ headers. These include base-modification calls, PacBio polymerase kinetics and Nanopore move tables that link bases to raw signal. Trimming and splitting remove bases or change their positions, so annotations that are not updated can refer to removed bases or the wrong positions. We present whittle, which removes adapters, barcodes and primers, splits chimeric reads, filters reads by quality and length, and rewrites the supported annotations of each retained segment. With supplied sequences, its mean base-level trimming F1 on simulated reads was 95.6% (ONT) and 95.9% (PacBio). In the tested reads, its move tables, retained modification calls and PacBio kinetic arrays matched values calculated independently from the untrimmed input. At eight threads, whittle cropped and filtered untagged gzip FASTQ 1.2 to 1.4 times as fast as chopper and 5.1 to 5.8 times as fast as fastplong.
Authors
- Burçak Otlu (ORCID: https://orcid.org/0000-0002-4931-7979)
- Erdi Kılıç
Institutions
- Middle East Technical University (TR)
Publication Details
- Journal
- bioRxiv (Cold Spring Harbor Laboratory)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.64898/2026.11.27.769621
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- preprint