A hybrid unsupervised approach for accurate short read clustering and barcoded sample demultiplexing in nanopore sequencing

Renmin Han, Junhai Qi, Yang Xue, Xiujuan Sun, Fa Zhang, Xin Gao, Guojun LibioRxiv 2022

TL;DR

This paper introduces a novel hybrid approach for analyzing nanopore sequencing data, combining base-called sequence information with raw electrical signals to achieve highly accurate clustering and sample demultiplexing. By leveraging GPU acceleration for signal comparison, their method significantly outperforms traditional tools and offers a practical solution for complex nanopore sequencing experiments.

What Problem Does This Paper Address?

Oxford Nanopore sequencing allows for simultaneous sequencing of multiple barcoded DNA samples on a single flow cell, a technique crucial for applications like single-cell analysis. However, a major hurdle is the high error rate in base-calling, especially for short reads like barcodes. Traditional clustering methods, relying solely on these error-prone base-called sequences, struggle to accurately group and identify samples. This limitation hinders downstream analyses and the full utilization of nanopore sequencing's potential for multiplexed experiments.

Methods

The authors propose a three-stage hybrid unsupervised approach:

  1. Initial Clustering: This stage uses a greedy algorithm based on nucleobase information (base-called reads) to quickly generate initial clusters with high homogeneity. This is similar to existing tools like CD-HIT but adapted for nanopore data.
  2. Cluster Merging and Refinement: This is the core innovation. Here, the raw electrical current signals are utilized. Dynamic Time Warping (DTW) is employed to calculate the similarity between raw signals. A threshold is determined to merge initial clusters based on signal similarity. This stage also involves generating consensus signals for refined clusters.
  3. GPU-Accelerated DTW: To overcome the computational expense of pairwise DTW calculations, the authors implement a CUDA-based GPU acceleration strategy. This involves a block-wise approach to compute multiple DTW distances simultaneously and a fine-grained, slash-lane-based strategy to handle data dependencies within DTW matrix calculations.

Datasets

The study utilized two types of datasets:

  • Simulated Datasets: A set of synthetic datasets were generated using DeepSimulator, varying in barcode length, number of clusters, and total number of sequences. These were used to systematically evaluate the performance of different clustering methods.
  • Real-World Datasets: The authors used real-world data from eight R9.4 and six R9.5 flow cells sequenced with an EXP-NBD103 barcoding kit. This dataset consisted of 120,947 barcode reads (signals).

Key Insights and Ideas

  • Raw Signals are Key: The paper strongly emphasizes that raw electrical signals contain richer, more reliable information than base-called reads, especially in the presence of high base-calling errors.
  • Hybrid Approach Synergy: Combining the speed of base-space clustering for initial grouping with the accuracy of signal-space comparison for refinement is crucial for achieving high performance.
  • GPU Acceleration is Essential: The computational cost of signal similarity comparison (DTW) is a major bottleneck. GPU acceleration is not just an optimization but a necessity for making this approach practical for large datasets.
  • Unsupervised Learning Advantage: The method's unsupervised nature means it doesn't require pre-labeled training data, making it more broadly applicable and easier to use.

Key Results

  • Superior Clustering Accuracy: The hybrid approach achieved >90% clustering accuracy on simulated datasets, outperforming traditional unsupervised tools like CD-HIT, UCLUST, and MeShClust.
  • Comparable Demultiplexing Accuracy: The method demonstrated accuracy comparable to supervised learning-based methods for barcoded sample demultiplexing.
  • Significant Speedup: GPU-accelerated DTW calculations were orders of magnitude faster than CPU-based methods, reducing the time for processing large datasets from hours to minutes. For example, calculating a 2000x2000 DTW distance matrix took 4 seconds with their GPU approach, compared to 1100 minutes for a CPU-based method.
  • Robustness: The method showed good performance on real-world datasets, effectively handling base-calling errors that hampered traditional tools.

Limitations and Future Work

  • Runtime of Cluster Merging: While GPU acceleration significantly speeds up DTW calculations, the cluster merging stage, which involves many DTW comparisons and multiple sequence alignments (CPU-based), remains the most time-consuming part of the algorithm.
  • Future Work: The authors suggest that further optimization of the consensus sequence generation (currently CPU-based) could lead to even greater efficiency. They also imply that their method's robustness to base-calling errors makes it a strong candidate for various downstream analyses in nanopore sequencing.

Summary updated

Abstract

Abstract Short nucleic acid sequences are usually attached as DNA barcodes for multiple sample sequencing and single cell protocols, which enables Oxford Nanopore sequencing to sequence multiple barcoded DNA samples on a single flow cell. However, due to the high base-calling error, short reads in Nanopore sequencing are difficult to be accurately identified by traditional tools. Here, we propose a hybrid unsupervised approach for the accurate clustering of short reads and demultiplexing of barcoded samples in Nanopore sequencing. In our approach, both the nucleic base information translated from base-calling and the raw current signal directly outputted by the flow cell are utilized. A GPU-supported parallelization strategy is proposed to ensure the runtime of our hybrid clustering. Comprehensive experiments demonstrate that our approach outperforms all the traditional unsupervised tools in short read clustering, and achieves comparable accuracy in barcoded sample demultiplexing compared with the learning-based methods.
BibTeX
@misc{han2022hybrid,
  author = {Renmin Han and Junhai Qi and Yang Xue and Xiujuan Sun and Fa Zhang and Xin Gao and Guojun Li},
  title = {{A hybrid unsupervised approach for accurate short read clustering and barcoded sample demultiplexing in nanopore sequencing}},
  year = {2022},
  doi = {10.1101/2022.04.13.488186},
  howpublished = {bioRxiv},
}
Figure