Basecalling-free resistance gene identification using a hybrid transformer in raw nanopore signals
Open Access
- 18 February 2026
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Microbiology
- Vol. 17, 1748934
Abstract
Nanopore sequencing enables real-time access to raw signal data, which brings new possibilities for rapid genomic diagnostics. However, current workflows still primarily rely on basecalling, a computationally intensive step that slows subsequent analysis and limits real-time use. In addition, most current approaches that work with raw signals focus on simple read-level classification tasks and are not designed to detect and localize specific genes, particularly complex genomic features such as antibiotic resistance genes (ARGs). Here, we show that the hybrid convolutional-transformer model, NanoResFormer, can detect clinically relevant ARGs directly from raw nanopore signals without basecalling. The model captures both local and long-range signal patterns and employs a floating-window strategy to process inputs of varying lengths efficiently. In proof-of-concept experiments, NanoResFormer achieved a sensitivity of 92.6% and a precision of over 93%, with short latency, enabling real-time resistome profiling already during sequencing. The proposed approach, therefore, provides rapid access to crucial information, accelerating decision-making in clinical diagnostics and pathogen surveillance.Keywords
Funding Information
- Grantová Agentura České Republiky
This publication has 11 references indexed in Scilit:
- NANOSLAST: Nanopore Signal Local Alignment and Segmentation Tool2025
- ReadCurrent: a VDCNN-based tool for fast and accurate nanopore selective sequencingBriefings in Bioinformatics, 2024
- Sigmoni: classification of nanopore signal with a compressed pangenome indexBioinformatics, 2024
- Characteristics of antibiotic resistance mechanisms and genes of Klebsiella pneumoniaeOpen Medicine, 2023
- Rapid Real-time Squiggle Classification for Read until using RawMapArchives of Clinical and Biomedical Research, 2023
- Nanopore sequencing technology, bioinformatics and applicationsNature Biotechnology, 2021
- SquiggleNet: real-time, direct classification of nanopore signalsGenome Biology, 2021
- Twelve years of SAMtools and BCFtoolsGigaScience, 2021
- From squiggle to basepair: computational approaches for improving nanopore sequencing read accuracyGenome Biology, 2018
- Long Short-Term MemoryNeural Computation, 1997