Sassy2: Batch Searching of Short DNA Patterns

Read full text
Authors: Rick Beeloo, Ragnar Groot Koerkamp
Cited by: 2
References: 20

Abstract

Abstract Motivation Searching short DNA patterns such as barcodes, primers, or CRISPR spacers within sequencing reads or genomes is a fundamental task in bioinformatics. These problems are instances of multiple approximate string matching (MASM) [Baeza-Yates and Navarro, 1997], which requires locating all occurrences with up to k errors of multiple patterns of length m in a text of length n . Classical approaches based on seeding with exact matches become inefficient for short patterns ( m ≤ 64 bp) as k increases, producing either many spurious hits or missing true matches. Our previous work, Sassy1 , showed that careful hardware optimization drastically accelerates single-pattern searches in long texts by distributing chunks of the text across SIMD lanes. Methods Sassy2 distributes multiple patterns across SIMD lanes to maximize parallelism when searching batches of short patterns. When k is small, often only a short substring of the pattern of length O ( k ) is needed to reject a possible match. Thus, Sassy2 first examines short suffixes of the patterns (e.g., the last 16 bp of 32 bp patterns), allowing more (but smaller) parallel SIMD lanes. Only positions passing this suffix filter undergo full pattern verification. Results On synthetic data, Sassy2 achieves 10–50 × speedups over Sassy1 for short texts ( n ≤ 200 bp) and 2–4 × for large texts ( n ≥ 1 Mbp). On real-world tasks with 16 threads, Sassy2 reaches over 100 Gbp/s text throughput per guide when searching 312 gRNAs across the human genome and 116 Gbp/s throughput when demultiplexing Nanopore reads with 96 barcodes. In both cases, Sassy2 outperforms Sassy1 by 2–5 × and Edlib by 20–45 × . Availability Sassy2 is implemented in Rust and available at github.com/RagnarGrootKoerkamp/sassy.

Fields of Study & Subjects

Algorithms and Data Compression Genomics and Phylogenetic Studies Network Packet Processing and Optimization

Publication details

Journal / source
bioRxiv (Cold Spring Harbor Laboratory)
Publisher
openRxiv
Publication date
12 March 2026
Document type
Preprint