bioRxivBioinformaticsPreprint
General-purpose embeddings for long-read metagenomic sequences via β-VAE on multi-scale k-mer frequencies
Abstract
Long-read metagenomics routinely produces millions of assembled contigs, creating a need for methods that organize sequences into biologically meaningful groups across samples and environments. We present a general-purpose compositional embedding for metagenomic sequences based on a {beta}-variational autoencoder ({beta}-VAE) trained on multi-scale k-mer frequencies (1-mers through 6-mers; 2,772 features with centered log-ratio transformation). The embedding compresses each contig into a 384-dimensional vector that preserves local compositional similarity, enabling similarity search and graph-based clustering from sequence composition alone. Through systematic comparison of fifteen models trained on up to 17.4 million contigs (525.5 Gbp) from brackish, terrestrial, and reference genome sources, we find that a small set of curated prokaryotic reference genomes (656,000 contigs) outperforms ten-fold larger domain-specific training sets, and that neither reconstruction loss nor Spearman correlation reliably predicts downstream clustering quality. On nearest-neighbor graphs, flow-based clustering (MCL) markedly outperforms modularity-based methods (Leiden), yielding 12,123 clusters from 154,041 contigs ([≥] 100 kbp) with 99.2% phylum-level purity confirmed by independent marker gene phylogenetics. Multi-method taxonomic annotation achieves 87% coverage and reveals that 16.4% of contigs are eukaryotic--the single largest component invisible to standard prokaryotic annotation tools. The embedding provides a sample-independent coordinate system for organizing metagenomic sequence space at scale.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Binning meets taxonomy: TaxVAMB improves metagenome binning using bi-modal variational autoencoder
Svetlana Kutuzova, Pau Piera Líndez, … Simon Rasmussen·Nature BiotechnologyPeer-reviewed·Apr 27, 2026
- Embedding the de Bruijn graph, and applications to metagenomics
Romain Menegaux, Jean‐Philippe Vert·bioRxiv·Mar 6, 2020
- Improved Metagenomic Binning with Transformers
Nina Shenker-Tauris, Jeanette L. Gehrig·bioRxiv·Feb 12, 2022
- Adversarial and variational autoencoders improve metagenomic binning
Pau Piera Líndez, Joachim Johansen, … Simon Rasmussen·Communications BiologyPeer-reviewed·Oct 21, 2023
- Binning microbial genomes using deep learning
Jakob Nybo Nissen, Joachim Johansen, … Simon Rasmussen·Nature BiotechnologyPeer-reviewed·Jan 4, 2021
- GenomeFace: a deep learning-based metagenome binner trained on 43,000 microbial genomes
Richard Lettich, Robert Egan, … Aydın Buluç·bioRxiv·Feb 7, 2024