# Basecalling-free resistance gene identification using a hybrid transformer in raw nanopore signals

**Authors:** Roman Jakubicek, Jevhenij Vorochta, Marketa Jakubickova, Matej Bezdicek, Martina Lengerova, Helena Vitkova

PMC · DOI: 10.3389/fmicb.2026.1748934 · Frontiers in Microbiology · 2026-02-18

## TL;DR

A new model called NanoResFormer can detect antibiotic resistance genes directly from raw nanopore sequencing data without needing basecalling, enabling faster clinical diagnostics.

## Contribution

NanoResFormer is a novel hybrid convolutional-transformer model that detects ARGs directly from raw nanopore signals without basecalling.

## Key findings

- NanoResFormer achieved 92.6% sensitivity and over 93% precision in detecting antibiotic resistance genes.
- The model enables real-time resistome profiling during sequencing with short latency.
- It captures both local and long-range signal patterns efficiently using a floating-window strategy.

## 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.

## Full-text entities

- **Genes:** fosA [NCBI Gene 7065654], tetD [NCBI Gene 6384198], aph [NCBI Gene 15414730]
- **Diseases:** antibiotic (MESH:D004761), infection (MESH:D007239)
- **Chemicals:** aminoglycoside (MESH:D000617), nucleotide (MESH:D009711), quinolone (MESH:D015363), fosfomycin (MESH:D005578), tetracycline (MESH:D013752)
- **Species:** Klebsiella pneumoniae (species) [taxon 573], Saccharomyces cerevisiae (baker's yeast, species) [taxon 4932], Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12957220/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12957220/full.md

## References

13 references — full list in the complete paper: https://tomesphere.com/paper/PMC12957220/full.md

---
Source: https://tomesphere.com/paper/PMC12957220