Reducing haystacks to needles - ViralClust: A Nextflow pipeline to cluster viral sequences
Sandra TriebeliD, Kevin LamkiewicziD, Tom EulenfeldiD, Manja MarziD
Abstract
BackgroundThe rapid accumulation of viral genome sequences presents major challenges for downstream analysis tools, including tools for multiple sequence alignments, phylogeny, and genome/alignment visualization, due to computational constraints and sampling biases caused by outbreak-driven over-representation. Selecting representative genomes through clustering offers a principled alternative to random subsampling, yet choosing appropriate clustering strategies remains non-trivial and context dependent. ResultsHere, we present ViralClust, a modular Nextflow pipeline for bias-aware representative selection from large viral genome datasets. ViralClust integrates five distinct clustering algorithms (CD-HIT-EST, SUMACLUST, VSEARCH, MMSeqs2, and HDBSCAN) within a unified workflow, enabling direct comparison of clustering outcomes and flexible adaptation to diverse biological questions, considering a balanced phylogenic distribution of the selected sequences. We evaluated ViralClust on six RNA and DNA virus datasets ranging from 632 to 156,586 sequences and spanning genome lengths from 890 to 197,185 nucleotides. Across all datasets, clustering reduced dataset size by [~]95 % or more while preserving genetic diversity across species, genera, and families, and effectively mitigating biases introduced by outbreaks, partial genomes, and sequence orientation artifacts. ConclusionsBy supporting whole-genome clustering and scalable representative selection, ViralClust enables efficient and reproducible downstream analyses that would otherwise be computationally infeasible. Our framework provides a flexible foundation for large-scale viral genomics and supports future applications in comparative analysis and virus classification. Key PointsO_LIViralClust is a modular Nextflow pipeline for selecting representative viral genomes from (very) large sequence datasets. C_LIO_LIIt combines multiple clustering approaches to reduce dataset size while minimizing bias and preserving genetic diversity. C_LIO_LITests on six RNA and DNA virus datasets show reductions of [~]95 % across a wide range of genome sizes and sequence counts. C_LIO_LIViralClust enables efficient and reproducible downstream analyses that are otherwise impractical with full viral genome collections. C_LI
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- FWCI
- 2.05
- Field percentile
- top 10%
- Assay
- Research Focus
- Approach
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
- Ultrafast and accurate sequence alignment and clustering of viral genomes
Andrzej Zieleziński, Adam Gudyś, … Sebastian Deorowicz·Nature MethodsPeer-reviewed·May 15, 2025
- ViralMSA: Massively scalable reference-guided multiple sequence alignment of viral genomes
Niema Moshiri·BioinformaticsPeer-reviewed·Aug 13, 2020
- VirClust, a tool for hierarchical clustering, core gene detection and annotation of (prokaryotic) viruses
C. Moraru·bioRxiv·Jun 14, 2021
- Alignment Free Viral Sequence Classification
Daniel J. van Zyl, Marcel Dunaiski, … Xin Wu·BMC GenomicsPeer-reviewed·Apr 18, 2025
- V-pipe 3.0: a sustainable pipeline for within-sample viral genetic diversity estimation
Lara Fuhrmann, Kim Philipp Jablonski, … Niko Beerenwinkel·GigaSciencePeer-reviewed·Jan 1, 2024
- ViralConsensus: A fast and memory-efficient tool for calling viral consensus genome sequences directly from read alignment data
Niema Moshiri·BioinformaticsPeer-reviewed·May 1, 2023