Metaxa: A Transformer-Based Deep Learning Model for Taxonomic Classification of Long Nanopore Reads
Preprint
Abstract
A significant fraction of the microbial diversity remains unclassified, hindering our understanding of microbial roles in health and ecosystems. State-of-the-art methods like Kraken 2 perform well for taxa that are present in the database. However, their accuracy drops significantly when classifying taxa that are not included. While deep learning has advanced many fields, its applications in metagenomics remain limited, and its full potential has yet to be realized. Here, we present Metaxa, a transformer-based deep learning model designed for the taxonomic classification of long-read Nanopore sequences. Metaxa leverages the sequential context of Nanopore reads, enabling robust classification beyond fixed k-mer profiles. Our results show that Metaxa matches Kraken 2 on in-sample data at both the species and genus levels, and significantly outperforms both Kraken 2 and MetageNN at the genus level on out-of-sample datasets where the species genome is absent from the reference database but a different species from the same genus is present. Furthermore, Metaxa demonstrates strong generalization across different Nanopore chemistries (R9.4.1 and R10.4.1). This work highlights the potential of deep learning models to improve metagenomic classification accuracy, especially in complex or underexplored environments where traditional tools fall short.Keywords
This publication has 23 references indexed in Scilit:
- Benchmarking bacterial taxonomic classification using nanopore metagenomics data of several mock communitiesScientific Data, 2024
- Rockfish: A transformer-based model for accurate 5-methylcytosine prediction from nanopore sequencingNature Communications, 2024
- RoFormer: Enhanced transformer with Rotary Position EmbeddingNeurocomputing, 2023
- Extending and improving metagenomic taxonomic profiling with uncharacterized species using MetaPhlAn 4Nature Biotechnology, 2023
- Metagenome analysis using the Kraken software suiteNature Protocols, 2022
- Effective gene expression prediction from sequence by integrating long-range interactionsNature Methods, 2021
- Targeted nanopore sequencing by real-time mapping of raw electrical signal with UNCALLEDNature Biotechnology, 2020
- Innovations to culturing the uncultured microbial majorityNature Reviews Microbiology, 2020
- Strain-level metagenomic assignment and compositional estimation for long reads with MetaMapsNature Communications, 2019
- Fast and sensitive taxonomic classification for metagenomics with KaijuNature Communications, 2016