# Filtering for truth: high-precision taxonomic classification in nanopore shotgun metagenomics data through a KMA-based bioinformatic pipeline (KAPTAIN)

**Authors:** Alexander Van Uffelen, Andrea Gobbo, Marie-Alice Fraiture, Andrés Posadas, Nancy H. C. Roosens, Kathleen Marchal, Sigrid C. J. De Keersmaecker, Kevin Vanneste

PMC · DOI: 10.1186/s12864-026-12668-0 · 2026-02-24

## TL;DR

This paper introduces KAPTAIN, a new pipeline for nanopore metagenomics that improves species-level classification accuracy by optimizing filtering thresholds and using longer reads.

## Contribution

The novel contribution is an optimized taxonomic classification pipeline for nanopore data that achieves high precision while maintaining recall through KMA-based classification and threshold optimization.

## Key findings

- The KAPTAIN pipeline achieves up to 95% median precision with 91.62% recall at 1000M bases of sequencing yield.
- Higher sequencing yields significantly improve classification accuracy and lower the limit of detection to 0.1%.
- Validation on probiotic-derived mock communities confirmed the pipeline's performance and general applicability.

## Abstract

Shotgun metagenomics enables to study microbial communities without biases from culturing and isolation, but taxonomic classification to the species level remains challenging due to high false positive rates. Oxford Nanopore Technologies offers new opportunities to address these challenges by producing longer reads. However, different pipelines and tools use different methods to reduce false positives, resulting in variable outcomes with limited exploration of what works best in practice. Relative abundance filtering is often used to improve precision by removing false positives but reduces also recall by removing true positives. In this study, we optimized a broadly applicable taxonomic classification pipeline for long-read nanopore sequencing data that improves precision. The pipeline uses the tool KMA as the underlying classifier, followed by specific post-processing and optimization of filtering thresholds. Based on ten defined mock communities, different filter thresholds were evaluated, alongside the effect of the sequencing yield and the limit of detection (LOD).

Our optimized pipeline substantially outperformed default classifier settings, and the conventionally used relative abundance filtering. Classification accuracy improved with higher sequencing yields, requiring at least a post-filtering yield of 500M bases, and ideally 1000M bases, for reliable results. At yields above 1000M bases, median precision could be improved up to 95% while maintaining median recall at 91.62%. Further increasing median precision to 99% reduced recall to 79.08%. Similarly, higher sequencing yields lowered LOD. For yields above 1000 M bases, the limit of detection remained stable at 0.1% up to a median precision of 95%, while yields below 1000M showed an LOD of 1%. Validation on ten probiotic-derived mock communities confirmed the pipeline’s performance and general applicability.

Our optimized classification pipeline for nanopore sequencing data provides substantially higher precision compared to default approaches and is suitable for diverse metagenomic applications. We provide specific guidance on expected recall and precision values for minimum sequencing yields and their associated LODs. Our optimized pipeline, called KAPTAIN (KMA-bAsed Pipeline for meTAgenomic specIes ideNtification), is publicly available on GitHub (https://github.com/BioinformaticsPlatformWIV-ISP/KAPTAIN) and also the Galaxy instance of our institute (https://galaxy.sciensano.be) to be used by other scientists.

The online version contains supplementary material available at 10.1186/s12864-026-12668-0.

## Full-text entities

- **Diseases:** KAPTAIN (MESH:D019292), DMCs (MESH:D003147), infectious diseases (MESH:D003141), DMC (MESH:C535726)
- **Chemicals:** metal (MESH:D008670), DMC (-)
- **Species:** Enterococcus faecalis (species) [taxon 1351], Methanomassiliicoccus luminyensis (species) [taxon 1080712], Bacillus subtilis (species) [taxon 1423], Nostoc sp. (species) [taxon 1180], Saccharomyces cerevisiae (baker's yeast, species) [taxon 4932], Herpetosiphon aurantiacus (species) [taxon 65], Viruses (acellular root) [taxon 10239], Thermotoga (genus) [taxon 2335], Pseudomonas marginalis (species) [taxon 298], Schaalia odontolytica (species) [taxon 1660], Cryptococcus neoformans (Cryptococcus neoformans serotype A, species) [taxon 5207], Fungi (kingdom) [taxon 4751], Candida albicans (species) [taxon 5476], Trichormus variabilis (species) [taxon 264691], Bacillus cereus (species) [taxon 1396], Streptococcus (genus) [taxon 1301], Homo sapiens (human, species) [taxon 9606], Bacteria Latreille et al. 1825 (Bacteria stick insect, genus) [taxon 629395], Staphylococcus aureus (species) [taxon 1280]
- **Cell lines:** HM — Homo sapiens (Human), Bladder carcinoma, Cancer cell line (CVCL_9826), FACHB-418 — Homo sapiens (Human), Induced pluripotent stem cell (CVCL_DP93)

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13037218/full.md

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