fastnb: A high-performance C++ Naive Bayes classifier for SILVA-based 16S rRNA taxonomy
We present fastnb , an open-source C + + 17 reimplementation of the scikit-learn Multinomial Naive Bayes classifier used in the QIIME 2 feature-classifier plugin for 16S rRNA amplicon taxonomy assignment. By replacing Python-level inference with a native C + + engine employing batch matrix multiplication, transposed memory layout for SIMD auto-vectorization, and single-precision arithmetic, fastnb achieves a 13–21 × speedup over scikit-learn on eight threads while maintaining 99.85% genus-level classification agreement across six clinical patient samples (1993 ASVs total). The software is provided as a pip-installable Python package with pybind11 bindings and requires no changes to existing QIIME 2 workflows.
Authors
- Jarosław Kurek (ORCID: https://orcid.org/0000-0002-2789-4732)
- Monika Pizon (ORCID: https://orcid.org/0000-0002-6599-3731)
- Marcin Nawalny
- Jakub Bednarek
- Bartosz Świderski
Institutions
- Warsaw University of Life Sciences (PL)
- Medical University of Lodz (PL)
- Labor Pachmann (DE)
Publication Details
- Journal
- SoftwareX
- Published
- 2026-06-30
- DOI
- https://doi.org/10.1016/j.softx.2026.102844
- Primary Topic
- Machine Learning in Bioinformatics
- Type
- article
- Field-Weighted Citation Impact
- 0.00