bioRxivPreprintOpen accessbioinformatics

Vir2vec: A Genome-Wide Viral Embedding

S. Rancati, P. Arozarena Donelli, G. Nicora, L. Bergomi, T. Buonocore, M. A. Sy, S. Pandey, M. Prosperi,

Key points

From the paper's conclusion
  • Together, Vir2vec and vGUE provide resources for advancing viral genomic representation learning and its systematic evaluation.

Abstract

Genomic language models (gLMs) enable the extraction of meaningful numerical representations from DNA sequences, yet existing approaches primarily focus on human genomes or limited viral datasets, and systematic evaluations of viral representations remain scarce. Here, we introduce Vir2vec, a family of decoder-only gLMs (from 17M to 422M parameters) continually pretrained on a curated viral corpus comprising 565,747 complete genomes and genomic segment records assigned to 295 different species. We also present the viral Genome Understanding Evaluation (vGUE), a seven-task evaluation suite assessing viral representations across broad organism discrimination, evolutionary signatures, intra-genus species classification, variant subtyping, and host-associated phenotypes. Evaluated as a frozen feature extractor under nested cross-validation, Vir2vec achieves the highest balanced accuracy on three of seven tasks (full-genome virus detection, DNA-versus-RNA classification, and host-category prediction) and shares the highest performance on HIV-1 versus HIV-2 classification, while alternative models lead on the remaining three tasks. Taxonomic exclusion experiments further assess generalization of classification capabilities when an RNA-virus clade is excluded from pretraining at species and family levels. Finally, we introduce an argmax-routed SHAP explainability framework that maps feature attributions to codon-level sequence coordinates, highlighting receptor-binding-domain positions associated with SARS-CoV-2 human-versus-mouse host specificity discrimination. Together, Vir2vec and vGUE provide resources for advancing viral genomic representation learning and its systematic evaluation.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Vir2vec: A Genome-Wide Viral Embedding — Science Skim