An End-to-end Oxford Nanopore Basecaller Using Convolution-augmented Transformer

Xuan Lv, Zhiguang Chen, Yutong Lu, Yuedong Yang

TL;DR

This paper introduces CATCaller, a novel end-to-end basecalling method for Oxford Nanopore sequencing data. CATCaller combines attention mechanisms for global context with dynamic convolutions for local dependencies, achieving superior read accuracy and significantly faster processing speeds compared to existing tools, especially when leveraging multi-GPU setups.

What Problem Does This Paper Address?

Oxford Nanopore (ONT) sequencing offers long reads and real-time analysis, making it a powerful tool in genomics. However, a critical bottleneck is basecalling: translating the raw electrical signals from the nanopore into DNA sequences. Current basecalling methods, including ONT's own tools like Albacore and Guppy, often struggle with high error rates (up to 10%) and slow processing speeds. This is partly due to the inherent complexity of the signal, where multiple nucleotides can be present in the nanopore simultaneously, leading to a vast number of possible base combinations. Existing tools often make trade-offs between accuracy and speed, necessitating new approaches that can efficiently and accurately decipher these complex signals.

Methods

CATCaller employs a novel architecture that integrates two key deep learning components:

  • Convolution-augmented Transformer: Instead of relying solely on traditional recurrent neural networks (RNNs) or standard attention mechanisms, CATCaller uses a transformer architecture enhanced with convolutional layers.
  • Long-Short Range Attention (LSRA): This module is a core innovation. It splits the attention mechanism into two branches: one for capturing long-range dependencies (standard attention) and another for modeling short-range dependencies using lightweight or dynamic convolutions. This aims to improve efficiency and context capture.
  • Flattened Feed-Forward Network (FFN): The FFN in the transformer encoder is flattened to equalize input and output channel dimensions, enhancing feature extraction capacity without significantly increasing computational cost.
  • Dynamic Convolution: This technique, used in the LSRA, allows the model to learn new kernels dynamically at each time step, improving its ability to adapt to the noisy signal data.
  • CTC Decoder: A Connectionist Temporal Classification (CTC) decoder is used to output the final DNA sequence from the model's predictions.
  • Heterogeneous Computation: The model is designed to efficiently utilize both CPUs and GPUs, and supports parallel processing across multiple GPUs for further speedups.

Datasets

The authors utilized publicly available datasets for training and evaluation. Specifically, they used a training set derived from 50 bacterial genomes (including Klebsiella pneumoniae and other species) provided by Wick et al. [13]. For testing, they employed 9 additional bacterial genomes from the same source, ensuring these were not used during training. These reference sequences were generated using high-quality Illumina reads, providing a reliable ground truth.

Key Insights and Ideas

  • Bridging Global and Local Context: The most significant insight is the successful integration of attention (for global context) and dynamic convolution (for local context) within a single architecture. This dual approach appears to be more effective than methods relying on only one of these mechanisms.
  • Efficiency through LSRA: The Long-Short Range Attention (LSRA) module is a clever way to balance the computational demands of attention with the need to capture fine-grained local signal variations.
  • Scalability is Key: The paper highlights that the true power of CATCaller is unlocked with multi-GPU acceleration, demonstrating substantial speedups that are crucial for handling the high throughput of ONT sequencers.
  • Open-Source Advantage: By releasing CATCaller as open-source, the authors contribute to the community, allowing for further development, adaptation to new pore technologies, and re-training on custom datasets.

Key Results

  • Accuracy: CATCaller consistently outperformed ONT's Albacore and Guppy, as well as the third-party basecaller SACall, across nine benchmark bacterial genomes. It achieved an average read accuracy of 91.52%, superior to Guppy (90.92%) and SACall (91.117%).
  • Speed: On a single GPU, CATCaller was nearly 4 times faster than SACall. When scaled to four GPUs, it achieved an impressive speedup of up to 13.25 times compared to SACall.
  • Error Rate: CATCaller demonstrated the lowest error rates on most of the tested bacterial samples, further validating its accuracy.

Limitations and Future Work

  • DNA Modifications: The authors acknowledge that current basecallers, including CATCaller, may be influenced by the presence of DNA modifications in the training data. They suggest that future work could focus on developing models that can identify these base modifications directly from electrical signals, an area where attention-based models have been rarely applied.
  • New Pore Types: While CATCaller was trained on R9.4 pore data, the authors believe its open-source nature will allow it to be easily adapted for data sequenced by newer ONT pore types.
  • Further Optimization: Although significant speedups were achieved, continuous optimization for even faster basecalling remains an ongoing goal in the field.

Summary updated

BibTeX
@inproceedings{lv2020end,
  author = {Xuan Lv and Zhiguang Chen and Yutong Lu and Yuedong Yang},
  title = {{An End-to-end Oxford Nanopore Basecaller Using Convolution-augmented Transformer}},
  booktitle = {BIBM},
  year = {2020},
  url = {https://openreview.net/forum?id=d1zwL13XvM},
}
Figure