Abstract
DNA barcodes enable Oxford Nanopore sequencing to sequence multiple barcoded DNA samples on a single flow cell. DNA sequences with the same barcode need to be grouped together through demultiplexing. As the number of samples increases, accurate demultiplexing becomes difficult. We introduce HycDemux, which incorporates a GPU-parallelized hybrid clustering algorithm that uses nanopore signals and DNA sequences for accurate data clustering, alongside a voting-based module to finalize the demultiplexing results. Comprehensive experiments demonstrate that our approach outperforms unsupervised tools in short sequence fragment clustering and performs more robustly than current state-of-the-art demultiplexing tools for complex multi-sample sequencing data.
The Nanopore Demultiplexing Challenge
In nanopore sequencing, "demultiplexing" is the process of sorting reads from a single run into their original samples based on short DNA "barcodes" attached to the ends of the sequences. This allows researchers to pool multiple samples on one flow cell, saving time and money.
The challenge lies in the high base-calling error rate of nanopore sequencing, which can reach 10-15%. For a short barcode, even a moderate error rate significantly reduces the probability of a perfectly correct sequence. As the number of samples increases, these errors lead to "cross-talk" or unclassified reads. Existing tools either rely solely on these noisy base-called sequences or require massive labeled datasets for supervised machine learning, limiting their flexibility for custom barcode designs.
Methods: Hybrid Clustering and GPU Acceleration
The authors introduce HycDemux, an unsupervised approach that uses a "best of both worlds" strategy to improve demultiplexing accuracy.
The workflow consists of four primary stages:
- Initial Clustering (Base-Space): It starts with a fast, greedy clustering algorithm using base-called sequences. This quickly groups reads into highly homogeneous "seed" clusters.
- Cluster Merging & Refinement (Signal-Space): It then utilizes raw electrical current signals. Because these signals contain significantly more information than the base-called text, they are much more reliable. The tool uses Dynamic Time Warping (DTW) to calculate the distance between signal time series, merging clusters and pulling in "fuzzy" reads that the base-caller missed.
- GPU Acceleration: DTW is computationally expensive. To make this practical, the authors developed a CUDA-based parallelization strategy that speeds up calculations by three orders of magnitude compared to a single-threaded CPU.
- Voting Module: Finally, it selects representative signals from each cluster and uses a voting mechanism against standard barcode references to assign the final sample labels.
Key Results and Performance
HycDemux was evaluated using a mix of simulated datasets (S1–S6) with varying barcode lengths and cluster counts, as well as real-world datasets from R9.4 and R9.5 flow cells.
- Superior Accuracy: On complex datasets with 350 barcodes and high error rates, HycDemux maintained >90% accuracy. In contrast, Guppy (the industry standard) saw its minimum accuracy drop below 70% as complexity increased.
- High Completeness: HycDemux achieved a completeness score of over 95%, which is roughly 30% higher than traditional unsupervised clustering tools like CD-HIT or UCLUST.
- Impressive Speed: Thanks to GPU acceleration, the system can demultiplex 3.5 GB of nanopore data (signals + sequences) in approximately one minute.
Conclusion
HycDemux demonstrates that signal-level analysis is beneficial regardless of base-caller quality. By exploiting the information gap between raw signals and base-called reads, it provides a highly accurate and robust solution for complex multi-sample sequencing. Future work will focus on adapting the algorithm for Direct RNA sequencing and single-cell RNA-seq (10X Genomics), where identifying barcodes within millions of potential sequences remains a major bottleneck.
Summary updated