ViTax-RAG: a retrieval-augmented language modeling tool for viral contig taxonomic classification.
Feng Zhou, Lan Cao, Yushuang He, Jiaxing Bai, Ying Wang
Department of Automation, National Institute for Data Science in Health and Medicine, State Key Laboratory of Mariculture Breeding, Xiamen Key Laboratory of Big Data Intelligent Analysis and Decision, Xiamen University, Xiamen, Fujian 361102, China.
Key points
From the paper's conclusion- Here, we present ViTax-RAG, a retrieval-augmented framework that integrates alignment-derived evidence with learned sequence representations for robust viral classification. ViTax-RAG reformulates BLAST as a domain-specific retrieval module and integrates retrieved homology information into a sequence modeling framework, thereby enabling the complementary use of alignment-based and representation-based signals. We evaluated ViTax-RAG on in-distribution (ID) and within-genus out-of-distribution (OOD) datasets, where it consistently outperformed current viral taxonomy methods at comparable taxonomic endpoints and supported fragment lengths. The pipeline processed all 195 728 GOV 2.0 contigs; 87.2% of predictions terminated at class, demonstrating hierarchical backoff rather than fine-rank accuracy on data without ground truth.
Abstract
MOTIVATION: Taxonomic classification of viral metagenomic contigs remains difficult for short or divergent sequences. Reference-based methods are precise when close homologs exist, whereas representation-based models can generalize beyond direct matches but lack explicit biological evidence. RESULTS: Here, we present ViTax-RAG, a retrieval-augmented framework that integrates alignment-derived evidence with learned sequence representations for robust viral classification. ViTax-RAG reformulates BLAST as a domain-specific retrieval module and integrates retrieved homology information into a sequence modeling framework, thereby enabling the complementary use of alignment-based and representation-based signals. We evaluated ViTax-RAG on in-distribution (ID) and within-genus out-of-distribution (OOD) datasets, where it consistently outperformed current viral taxonomy methods at comparable taxonomic endpoints and supported fragment lengths. The pipeline processed all 195 728 GOV 2.0 contigs; 87.2% of predictions terminated at class, demonstrating hierarchical backoff rather than fine-rank accuracy on data without ground truth. AVAILABILITY AND IMPLEMENTATION: ViTax-RAG is implemented in Python and is freely available at GitHub (https://github.com/Ying-Lab/ViTax-Rag) under an open-source license. Documentation and example workflows are provided to facilitate integration into metagenomic analysis pipelines.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Analyzing Genomic Foundation Models for Viral Sequence IdentificationbioRxiv · 2026
- Vir2vec: A Genome-Wide Viral EmbeddingbioRxiv · 2026
- Charting the virosphere: computational synergies of AI and bioinformatics in viral discovery and evolutionJournal of Virology · 2025
- Perseus: Lineage-Aware Refinement of Kraken2 Taxonomic Classification for Long Read MetagenomesBioinformatics · 2026
- Tree-based machine learning prioritizes candidate viral sequences in human plasma metagenomic dark matterFrontiers in Bioinformatics · 2026
- CANN: Commutative Algebra Neural Networks for Virus ClassificationarXiv · 2026