Reducing haystacks to needles – ViralClust: A Nextflow pipeline to cluster viral sequences
preprint
OA: closed
Abstract
Background The 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. Results Here, 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. Conclusions By 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 Points ViralClust is a modular Nextflow pipeline for selecting representative viral genomes from (very) large sequence datasets. It combines multiple clustering approaches to reduce dataset size while minimizing bias and preserving genetic diversity. Tests on six RNA and DNA virus datasets show reductions of ∼95 % across a wide range of genome sizes and sequence counts. ViralClust enables efficient and reproducible downstream analyses that are otherwise impractical with full viral genome collections.
My notes (saved in your browser only)
Citation neighborhood (no data yet)
We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2026) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.
Source provenance
- europepmc
- last seen: 2026-05-20T01:45:00.602351+00:00
- unpaywall
- last seen: 2026-06-13T06:42:57.164913+00:00