Selective sequencing, or "adaptive sampling," is one of the most powerful features of Oxford Nanopore Technologies (ONT) devices. It allows a sequencer to "look" at a DNA fragment as it passes through a pore and decide in real-time whether to keep sequencing it or eject it to make room for something more interesting. However, developing the algorithms that make these split-second decisions is notoriously difficult, expensive, and computationally taxing.
In their paper, "SimReadUntil for Benchmarking Selective Sequencing Algorithms on ONT Devices," Maximilian Mordig and colleagues introduce SimReadUntil, a lightweight, open-source simulator designed to break these bottlenecks.
TL;DR
SimReadUntil is a high-performance simulator for ONT selective sequencing that operates on basecalled reads rather than raw signal data. By bypassing the need for massive raw data files and GPU-intensive basecalling, it allows researchers to benchmark and optimize adaptive sampling algorithms on standard CPUs at a fraction of the usual time and cost.
What Problem Does This Paper Address?
Selective sequencing (via the ReadUntil API) is a game-changer for genomic enrichment or depletion. Imagine trying to sequence a rare pathogen in a "haystack" of human host DNA; the sequencer can simply eject any human DNA it recognizes, saving time and reagents for the pathogen.
The challenge lies in the Selective Sequencing Decision-making Algorithm (SSDA). To tune an SSDA (like ReadFish or ReadBouncer), you traditionally need to run real sequencing experiments—which cost ~$500 per flowcell—or use existing simulators like UNCALLED. However, existing simulators are "raw-signal based." They generate the wiggly electrical lines (squiggles) that the hardware produces. This requires:
- Massive Storage: Raw signal files (FAST5/POD5) for a single run can exceed 100GB.
- Heavy Compute: Simulating squiggles and then basecalling them back into text (A, C, T, G) requires powerful GPUs.
- Complexity: These tools are often poorly documented and difficult to integrate into automated benchmarking pipelines.
Methods
SimReadUntil takes a different approach: it simulates the process at the basecalled read level.
Instead of generating electrical signals, it takes a set of full FASTA reads (either from real runs or synthetic generators like NanoSim) and "plays them back" in real-time. The simulator acts as a virtual ONT device, distributing reads across hundreds of virtual channels.
Key technical features include:
- Finite State Machine (FSM): Each virtual channel follows a state machine that accounts for active sequencing, "unblock" delays (when a read is rejected), and "mux scans" (periodic hardware resets).
- Basecalled Chunks: It provides data to the SSDA in basecalled chunks, mimicking the output of a real-time basecaller without the actual computational cost of basecalling.
- Gap Samplers: A critical part of the simulation is modeling the "gaps" between reads (when the pore is empty). The authors provide several "Gap Samplers," including a recommended rolling window per channel method that extracts realistic pore-behavior patterns from existing sequencing summary files.
- gRPC Interface: It uses a standardized gRPC interface, making it compatible with various programming languages and easy to "plug in" to existing tools like ReadFish.
Datasets
The authors evaluated SimReadUntil using:
- Zymo Mock Community: A standard microbial benchmark. They used a sequencing summary file from a real UNCALLED run to extract simulation parameters.
- Human Reference Genome: Used to simulate the enrichment of specific chromosomes (Chr 20 and 21) to test the simulator's utility in a common research use case.
- NanoSim: Used to generate synthetic reads with realistic error profiles to feed into the simulator.
Key Insights and Ideas
- Basecalling is the Bottleneck: By providing basecalled data directly, SimReadUntil allows researchers to focus on the logic of the decision-making algorithm (the SSDA) rather than the mechanics of basecalling.
- Realistic "Gaps" Matter: Throughput in ONT sequencing isn't just about how fast DNA moves; it's about how much time the pore spends empty or blocked. SimReadUntil’s ability to extract these patterns from real sequencing summaries makes the simulation far more predictive of real-world performance.
- CPU-Friendly Benchmarking: Because it avoids raw signal processing, the authors could run complex simulations on just 2 CPU cores and 8GB of RAM—hardware that would be hopelessly inadequate for raw-signal simulators.
Key Results
The authors compared SimReadUntil against existing tools like MinKNOW and UNCALLED, highlighting its unique feature set:
In a practical "Use Case" experiment, they combined SimReadUntil with ReadFish to enrich human chromosomes 20 and 21.
- Enrichment Performance: In an ideal setting, they achieved a 16-fold improvement in the ratio of target to non-target basepairs (increasing the target fraction from 0.037 to 0.58).
- Real-time Feedback: The simulator successfully modeled how rejections (unblocks) affect pore availability over time, providing a realistic look at how "pore deterioration" impacts a long-running experiment.
Limitations and Future Work
While SimReadUntil is highly efficient, it does have limitations:
- No Raw Signal: It cannot be used to test or train new basecallers, as it skips the signal generation phase entirely.
- Fixed Latency: It currently models basecalling and mapping as a fixed delay. In reality, these can fluctuate based on system load.
- Pore Deterioration: While it models gaps, the authors note that future work could better model the specific pore deterioration caused by frequent rejections.
The authors plan to use SimReadUntil to establish a benchmark repository for SSDAs, helping the community converge on the most efficient strategies for adaptive sampling.
Summary updated