Skip to main content
Dryad

A generalized framework for measuring taxonomic diagnosability across viral evolutionary scales

Data files

Jul 28, 2026 version files 1.23 GB

Click names to download individual files

Abstract

Genome-based features are increasingly used for viral identification and classification, yet the extent to which viral taxa are intrinsically diagnosable from genomic sequence has not been systematically evaluated across taxonomic ranks. Here, we quantify the diagnosability of viral taxa at family, genus, and species levels using interpretable diagnostic rules derived from k-mer sequence features. Kmer presence/absence (PA) characters were determined using a kmer sweep approach. Diagnostic rule sets were discovered using the PA characters and evaluated using precision, recall, confusion matrices, and receiver operating characteristic (ROC) analysis. At the family level, diagnosability across ~360 viral families is limited, reflecting extensive sequence heterogeneity and weakly conserved diagnostic features at deep evolutionary scales. Partitioning families by Baltimore classification reduces this heterogeneity but does not substantially increase the number of diagnosable families. This result likely reflects both the extensive evolutionary divergence among viral families and the fact that Baltimore groups are defined by genome type and replication strategy rather than shared evolutionary history, which may limit the extent to which such partitions capture consistent diagnostic signal. In contrast, diagnosability increases substantially at finer taxonomic levels. At the genus and species levels, diagnostic rules are readily identified and achieve strong classification performance metrics (mean AUC ≈ 0.98 for diagnosable taxa). However, single k-mer rules are often insufficient for optimal discrimination. Instead, higher-order rule structures—particularly paired and composite k-mer diagnostics—substantially improve performance, indicating that combinatorial sequence features are required to resolve closely related taxa. These results demonstrate that diagnostic signal becomes more accessible at finer taxonomic resolution but requires increasing rule complexity to fully capture taxonomic differentiation. Importantly, we show that diagnosability and classification are distinct properties: diagnostic features may exist even when accurate classification is not achievable under competitive frameworks. This study provides a quantitative and interpretable framework for evaluating genome-based viral diagnostics and shows that diagnostic rule complexity scales predictably with taxonomic resolution.