Skip to content
Open access

Improving Metagenomics Classification with Kmask: Entropy-Based Masking of Low-Complexity Regions

Sep 2026 · bioRxiv · 0 citations · 12 references
Medicine Biology

TL;DR

Kmask, an entropy-based masking tool implemented for use either standalone or as part of Kraken database construction, which replaces low-entropy regions with Ns, is presented, demonstrating that it is an effective method for masking low-complexity sequences in large microbial databases, thus improving the accuracy of metagenomic classification.

Abstract

Accurate taxonomic classification in metagenomics is often compromised by low-complexity sequences, which lead to chance matches that in turn cause sequences to be misclassified. Here we present Kmask, an entropy-based masking tool implemented for use either standalone or as part of Kraken [1,2] database construction, which replaces low-entropy regions with Ns. Using a sliding window size aligned with Kraken’s default k-mer length and parameters optimized across 12 control bacterial genomes spanning a broad range of GC content, Kmask efficiently removes low-complexity sequences while retaining high-complexity regions. To benchmark performance, we applied Kmask to a newly constructed database, Microbial2025, that contains over 71,000 bacterial, archaeal, viral, and fungal genomes, and we then classified human reads against both masked and unmasked versions of the database using KrakenUniq [2]. We found that Kmask substantially reduced misclassifications, driving down the false positive rate to 5.78% from 7.52%. Notably, Kmask performed comparably to an SDUST-masked [3] database, achieving a similar false positive rate (5.78% vs. 5.17%) while masking out fewer bases (1.33% vs. 1.85%). We also tested Kmask on a database of human cancer sequences, where we found that it eliminated many false positives caused by low-complexity matches between bacterial genomes and human DNA. These results demonstrate that Kmask is an effective method for masking low-complexity sequences in large microbial databases, thus improving the accuracy of metagenomic classification.

Read PDF

Similar papers

Review Open access Sep 2026

Foundation models and taxonomy inference for metagenomics: A practical review.

Taxonomic classification in metagenomics remains anchored in alignment-based methods and exact k-mer indexers, which provide calibrated, traceable species-level assignments at scale when reference coverage is comprehensive. This review synthesizes the progression of the field toward self-supervised, DNA-specific founda...

Andrey Felipe Schoier, Í. D. de Castro, M. Dorn · 0 citations
Open access Sep 2026

Whole genome similarity provides a rapid, robust framework for classification of fungal taxa from the genus rank to intraspecies variants

Rapid and accurate microbial identification is critical for interpreting biological data in basic research and when making applied decisions on how to effectively treat patients and control human, animal, and plant diseases. Advancements in high-throughput sequencing have the potential to expedite fungal species identi...

Hayden Johnson, B. Vinatzer, R. Mazloom et al. · 0 citations
Open access Sep 2026

Perseus: lineage-aware refinement of Kraken2 taxonomic classification for long read metagenomes

Perseus is presented, a lineage-aware confidence estimation framework for taxonomic classification that models the spatial distribution and hierarchical consistency of k-mer evidence along sequences that consistently and substantially reduces the false assignment rate while improving precision and lineage-consistent ac...

M. C. Nguyen, Michael C. Schatz · 0 citations
Open access Oct 2026

Codon-aware multi-scale feature fusion for metagenomic sequence classification

CamFi (Codon-aware Multi-scale Feature Fusion), a unified framework integrating overlapping nucleotide-triplet representations with multi-scale dilated convolutions for classifying prokaryotic chromosomes, eukaryotic chromosomes, plasmids, and viruses, is presented.

Yan Qian, Quan-Jie Song, Xin-Yi Xie et al. · 0 citations
Open access Sep 2026

Mind the Gaps: Validating species presence under sparse genomic recovery in clinical metagenomics

1Clinical metagenomic sequencing is increasingly used to detect pathogens directly from clinical samples, but sparse and uneven genome recovery caused by low microbial biomass and stochastic fragment loss makes species-level validation difficult. Under these conditions, the same observed coverage may arise either from...

M. Behruznia, F. Silva-Toro, D. Márquez · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.