
==== Front
bioRxiv
BIORXIV
bioRxiv
2692-8205
Cold Spring Harbor Laboratory

39253501
10.1101/2024.02.07.579374
preprint
2
Article
Dimensionality reduction distills complex evolutionary relationships in seasonal influenza and SARS-CoV-2
http://orcid.org/0009-0005-2607-3149
Nanduri Sravani 1
http://orcid.org/0000-0002-6618-4127
Black Allison 2
http://orcid.org/0000-0002-4039-5794
Bedford Trevor 23
http://orcid.org/0000-0002-4250-2063
Huddleston John 2*
1 Paul G. Allen School of Computer Science and Engineering, University of Washington, Seattle, WA, USA,
2 Vaccine and Infectious Disease Division, Fred Hutchinson Cancer Center, Seattle, WA, USA
3 Howard Hughes Medical Institute, Seattle, WA, USA
Author contributions statement

A.B., T.B., and J.H. conceived the experiments. S.N. and J.H. wrote the software, conducted the experiments, analyzed the results, and wrote the manuscript. A.B. and T.B. reviewed and edited the manuscript.

* Corresponding author. jhuddles@fredhutch.org
29 8 2024
2024.02.07.579374https://creativecommons.org/licenses/by/4.0/ This work is licensed under a Creative Commons Attribution 4.0 International License, which allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, so long as attribution is given to the creator. The license allows for commercial use.
nihpp-2024.02.07.579374.pdf
Public health researchers and practitioners commonly infer phylogenies from viral genome sequences to understand transmission dynamics and identify clusters of genetically-related samples. However, viruses that reassort or recombine violate phylogenetic assumptions and require more sophisticated methods. Even when phylogenies are appropriate, they can be unnecessary or difficult to interpret without specialty knowledge. For example, pairwise distances between sequences can be enough to identify clusters of related samples or assign new samples to existing phylogenetic clusters. In this work, we tested whether dimensionality reduction methods could capture known genetic groups within two human pathogenic viruses that cause substantial human morbidity and mortality and frequently reassort or recombine, respectively: seasonal influenza A/H3N2 and SARS-CoV-2. We applied principal component analysis (PCA), multidimensional scaling (MDS), t-distributed stochastic neighbor embedding (t-SNE), and uniform manifold approximation and projection (UMAP) to sequences with well-defined phylogenetic clades and either reassortment (H3N2) or recombination (SARS-CoV-2). For each low-dimensional embedding of sequences, we calculated the correlation between pairwise genetic and Euclidean distances in the embedding and applied a hierarchical clustering method to identify clusters in the embedding. We measured the accuracy of clusters compared to previously defined phylogenetic clades, reassortment clusters, or recombinant lineages. We found that MDS embeddings accurately represented pairwise genetic distances including the intermediate placement of recombinant SARS-CoV-2 lineages between parental lineages. Clusters from t-SNE embeddings accurately recapitulated known phylogenetic clades, H3N2 reassortment groups, and SARS-CoV-2 recombinant lineages. We show that simple statistical methods without a biological model can accurately represent known genetic relationships for relevant human pathogenic viruses. Our open source implementation of these methods for analysis of viral genome sequences can be easily applied when phylogenetic methods are either unnecessary or inappropriate.

influenza
SARS-CoV-2
evolution
clades
dimensionality reduction
PCA
MDS
t-SNE
UMAP
reassortment
recombination
J.H. was supported by NIH F31AI140714. A.B. was supported by the National Science Foundation Graduate Research Fellowship Program under Grant No. DGE-1256082. T.B. is a Howard Hughes Medical Institute Investigator. This work was supported by NIH NIGMS award R35 GM119774 to T.B., BMGF award INV-018979 to T.B. and NIH NIAID contract 75N93021C00015.
==== Body
pmc1. Introduction

Tracking the evolution of human pathogenic viruses in real time enables epidemiologists to respond quickly to emerging epidemics and local outbreaks [1]. Real-time analyses of viral evolution typically rely on phylogenetic methods that can reconstruct the evolutionary history of viral populations from their genome sequences and estimate states of inferred ancestral viruses from the resulting trees including their most likely genome sequence, time of circulation, and geographic location [2, 3, 4]. Importantly, these methods assume that the sequence diversity of sampled tips accrued through clonal evolution, that is, the occurrence of mutations on top of an inherited genomic background, that is further inherited by descendant pathogens. In practice, the evolutionary histories of many human pathogenic viruses violate this assumption through processes of reassortment or recombination, as seen in seasonal influenza [5, 6] and seasonal coronaviruses [7], respectively. Researchers account for these evolutionary mechanisms by limiting their analyses to individual genes [8, 9], combining multiple genes despite their different evolutionary histories [10], or developing more sophisticated models to represent the joint likelihoods of multiple co-evolving lineages with ancestral reassortment or recombination graphs [11, 12]. However, several key questions in genomic epidemiology do not require inference of ancestral relationships and states, and therefore may be amenable to non-phylogenetic approaches for summarizing genetic relationships. For example, genomic epidemiologists commonly need to 1) visualize the genetic relationships among closely related virus samples [13, 14], 2) identify clusters of closely-related genomes that represent regional outbreaks or new variants of concern [15, 16, 17, 18], and 3) place newly sequenced viral genomes in the evolutionary context of other circulating samples [19, 20, 21]. Given that these common use cases rely on genetic distances between samples, tree-free statistical methods that operate on pairwise distances could be sufficient to address each case. As these tree-free methods lack a formal biological model of evolutionary relationships, they make weak assumptions about the input data and therefore should be applicable to pathogen genomes that violate phylogenetic assumptions. Furthermore, methods that describe genetic relationships with network-like visualizations may feel more familiar to public health practitioners who are accustomed to viewing contact tracing networks alongside genomic information in tools like MicrobeTrace [14] or MicroReact [13] and for viral pathogens like HIV [22, 23] and SARS-CoV-2 [24, 25]. For this reason, reduced dimensionality representations of genomic relationships may be more easily applied for public health action.

Common statistical approaches to analyzing variation from genome alignments start by transforming alignments into either a matrix that codes biallelic nucleotide variants as binary integers (0 for reference alleles and 1 for alternate alleles) [26] or a distance matrix representing the pairwise distances between sequences [27]. The first of these transformations is the first step prior to performing a principal component analysis (PCA) to find orthogonal representations of the inputs that explain the most variance [28]. The second transformation calculates the number of mismatches between each pair of aligned genome sequences, also known as the Hamming distance, to create a distance matrix. Most phylogenetic methods begin by building a distance matrix for all sequences in a given multiple sequence alignment. Dimensionality reduction algorithms such as multidimensional scaling (MDS) [29], t-distributed stochastic neighbor embedding (t-SNE) [30], and uniform manifold approximation and projection (UMAP) [31] accept such distance matrices as an input and produce a corresponding low-dimensional representation or “embedding” of those data. Both types of transformation allow us to reduce high-dimensional genome alignments (M × N values for M genomes of length N) to low-dimensional embeddings where clustering algorithms and visualization are more tractable. Additionally, distance-based methods can reflect the presence or absence of insertions and deletions in an alignment that many phylogenetic methods ignore.

Each of the embedding methods mentioned above has been applied previously to genomic data to visualize relationships between individuals and identify clusters of related genomes. Although PCA is a generic linear algebra algorithm that optimizes for an orthogonal embedding of the data, the principal components from single nucleotide polymorphisms (SNPs) represent mean coalescent times and therefore recapitulate broad phylogenetic relationships [26]. PCA has been applied to SNPs of human genomes [32, 33, 26, 34] and to multiple sequence alignments of viral genomes [35]. MDS attempts to embed input data into a lower-dimensional representation such that each pair of data points are as close in the embedding as they are in the original high-dimensional space. MDS has been applied to multiple gene segments of seasonal influenza viruses to visualize evolutionary relationships between segments [27] and to individual influenza gene segments to reveal low-dimensional trajectories of genetic clusters [36, 37]. Both t-SNE and UMAP build on manifold learning methods like MDS to find low-dimensional embeddings of data that place similar points close together and dissimilar points far apart [38]. These methods have been applied to SNPs from human genomes [39] and single-cell transcriptomes [40, 41].

Although these methods are commonly used for qualitative studies of evolutionary relationships, few studies have attempted to quantify patterns observed in the resulting embeddings, investigate the value of applying these methods to viruses that reassort or recombine, or identify optimal method parameters for application to viruses. Recent studies disagree about whether methods like PCA, t-SNE, and UMAP produce meaningful global structures [38] or arbitrary patterns that distort high-dimensional relationships [42]. To address these open questions, we tuned and validated the performance of PCA, MDS, t-SNE, and UMAP with genomes from simulated influenza-like and coronavirus-like populations and then applied these methods to natural populations of seasonal influenza virus A/H3N2 and SARS-CoV-2. These natural viruses are highly relevant as major causes of global human mortality, common subjects of real-time genomic epidemiology, and representatives of reassortant and recombinant human pathogens. For each combination of virus and embedding method, we quantified the relationship between pairwise genetic and Euclidean embedding distances, identified clusters of closely-related genomes in embedding space, and evaluated the accuracy of clusters compared to genetic groups defined by experts and clusters defined directly from pairwise genetic distances. Finally, we tested the ability of these methods to capture patterns of reassortment between seasonal influenza A/H3N2 hemagglutinin (HA) and neuraminidase (NA) segments and recombination in SARS-CoV-2 genomes. These results demonstrate the interpretability of embeddings from each method and inform our recommendations for future applications of these methods to specific problems in genomic epidemiology.

2. Results

2.1. The ability of embedding methods to produce global structures for simulated viral populations varies little across method parameters

To understand how well PCA, MDS, t-SNE, and UMAP could represent genetic relationships between samples of human pathogenic viruses under well-defined evolutionary conditions, we simulated influenza-like and coronavirus-like populations as previously described [43, 12] and created embeddings for each population across a range of method parameters. For both influenza- and coronavirus-like population types, we simulated five independent replicates for 60 years, filtered out the first 10 years of each population as a burn-in period, and analyzed the remaining 50 years. We simulated influenza-like populations with a mutation rate of 0.00382 substitutions per site per year to match the natural H3N2 HA rate [43], and we sampled 10 HA sequences per week. We simulated coronavirus-like populations with a mutation rate of 0.0008 substitutions per site per year [44] and a recombination rate of 10−5 events per site per year [12]. We sampled 15 full-length coronavirus sequences approximately every two weeks.

We maximized the local and global interpretability of each method’s embeddings by identifying parameters that maximized a linear relationship between genetic distance and Euclidean distance in low-dimensional space (see Methods). Specifically, we selected parameters that minimized the median of the mean absolute error (MAE) between observed pairwise genetic distances of simulated genomes and predicted genetic distances for those genomes based on their Euclidean distances in each embedding. For methods like PCA and MDS where increasing the number of components available to the embedding could lead to overfitting, we selected the maximum number of components beyond which the median MAE did not decrease by more than 1 nucleotide.

For influenza-like populations, the optimal parameters were 2 components for PCA, 3 components for MDS, perplexity of 200 and learning rate of 100 for t-SNE, and nearest neighbors of 100 and minimum distance of 0.1 for UMAP. As expected, increasing the number of components for PCA and MDS gradually decreased the median MAEs of their embeddings (Supplementary Fig. S1 A and B). However, beyond 2 and 3 components, respectively, the reduction in error did not exceed 1 nucleotide. This result suggests that there were diminishing returns for the increased complexity of additional components. Both t-SNE and UMAP embeddings produced a wide range of errors (the majority between 10 and 20 average mismatches) across all parameter values (Supplementary Fig. S1 C and D). Embeddings from t-SNE appeared robust to variation in parameters, with a slight improvement in median MAE associated with perplexity of 200 and little benefit to any of the learning rate values (Supplementary Fig. S1 C). Similarly, UMAP embeddings were robust across the range of tested parameters, with the greatest benefit coming from setting the nearest neighbors greater than 25 and no benefit from changing the minimum distance between points (Supplementary Fig. S1 D).

The optimal parameters for coronavirus-like populations were similar to those for the influenza-like populations. The optimal parameters were 2 components for PCA, 3 for MDS, perplexity of 100 and learning rate of 100 for t-SNE, and nearest neighbors of 50 and minimum distance of 0.05 for UMAP. As with influenza-like populations, both PCA and MDS showed diminishing benefits of increasing the number of components (Supplementary Fig. S2 A and B). Similarly, we observed little improvement in MAEs from varying t-SNE and UMAP parameters (Supplementary Fig. S2 C and D). The most noticeable improvement came from setting t-SNE’s perplexity to 100 (Supplementary Fig. S2 C). These results indicate the limits of t-SNE and UMAP to represent global genetic structure from these data.

We inspected representative embeddings based on the optimal parameters above for the first four years of influenza- and coronavirus-like populations. Simulated sequences from the same time period tended to map closer in embedding space, indicating the maintenance of “local” genetic structure in the embeddings (Fig. 1). Most embeddings also represented some form of global structure, with later generations mapping closer to intermediate generations than earlier generations. MDS maintained the greatest continuity between generations for both population types (Supplementary Fig. S3). In contrast, PCA, t-SNE, and UMAP all demonstrated tighter clusters of samples separated by potentially arbitrary space. These qualitative results matched our expectations based on how well each method maximized a linear relationship between genetic and Euclidean distances during parameter optimization (Supplementary Fig. S1 and Supplementary Fig. S2).

2.2. Embedding clusters recapitulate phylogenetic clades for seasonal influenza H3N2

Seasonal influenza H3N2’s hemagglutinin (HA) sequences provide an ideal positive control to test embedding methods and clustering in low-dimensional space. H3N2’s HA protein evolves rapidly, accumulating amino acid mutations that enable escape from adaptive immunity in human populations [45]. These mutations produce distinct phylogenetic clades that represent potentially different antigenic phenotypes. The World Health Organization (WHO) Global Influenza Surveillance and Response System regularly sequences genomes of circulating influenza lineages [46] and submits these sequences to public INSDC databases like NCBI’s GenBank [47]. These factors, coupled with HA’s relatively short gene size of 1,701 nucleotides, facilitate real-time genomic epidemiology of H3N2 [48] and rapid analysis by the embedding methods we wanted to evaluate. We analyzed H3N2 HA sequences from two consecutive time periods including an “early” dataset from 2016–2018 and a “late” dataset from 2018–2020. For each dataset, we created embeddings with all four methods, identified clusters in the embeddings with HDBSCAN, and calculated the accuracy of clusters relative to expert-defined genetic groups (see Methods). As a point of comparison, we also identified HDBSCAN clusters from pairwise genetic distances between sequences and compared the accuracy of these clusters to clusters from embeddings and known genetic groups. We used the early dataset to identify cluster parameters that minimized the distance between clusters and known genetic groups. We tested these optimal parameters with the late dataset. This approach allowed us to maximize cluster accuracy against the background of embedding method parameters that we already optimized to maximize the interpretability of visualizations.

We first applied each embedding method to the early H3N2 HA sequences (2016–2018) and compared the placement of these sequences in the embeddings to their corresponding clades in the phylogeny. All four embedding methods qualitatively recapitulated the 10 Nextstrain clades observed in the phylogeny (Fig 2 and Supplementary Fig. S4). Samples from the same clade generally grouped tightly together. Most embedding methods also delineated larger phylogenetic clades, placing clades A1, A2, A3, A4, and 3c3.A into separate locations in the embeddings. Despite maintaining local and broader global structure, not all embeddings captured intermediate genetic structure. For example, all methods placed A1b and its descendant clades, A1b/135K and A1b/135N, into tight clusters together. The t-SNE embedding created separate clusters for each of these clades, but these clusters all placed so close together in the embedding space that, without previously defined clade labels, we would have visually grouped these samples into a single cluster. These results qualitatively replicate the patterns we observed in embeddings for simulated influenza-like populations where genetically similar sequences placed closer together and all methods except MDS produced tight local clusters of similar sequences (Fig 1).

To quantify the apparent maintenance of local and global structure by all four embedding methods, we calculated the relationship between pairwise genetic and Euclidean distance of samples in each embedding. All methods maintained a linear pairwise relationship for samples that differed by no more than ≈10 nucleotides (Fig 3). Only MDS consistently maintained that linearity as genetic distance increased (Pearson’s R2 = 0.94). We observed a less linear relationship for samples with more genetic differences in PCA (Pearson’s R2 = 0.75), t-SNE (Pearson’s R2 = 0.38), and UMAP (Pearson’s R2 = 0.52) embeddings. While PCA and UMAP Euclidean distances increased monotonically with genetic distance, t-SNE embeddings placed some pairs of samples with intermediate distances of 35–45 nucleotides closer together than pairs of samples with lower genetic distances.

Next, we found clusters for early H3N2 HA embeddings and pairwise genetic distances and calculated the distance from these clusters to previously defined genetic groups. We assigned cluster labels to each sample with the hierarchical clustering algorithm, HDBSCAN [49]. We calculated distances between clusters and known genetic groups with the normalized variation of information (VI) metric [50] which produces a value of 0 for identical groups and 1 for maximally different groups (see Methods). HDBSCAN does not require an expected number of clusters as input, but it does provide a parameter for the minimum distance required between clusters. We optimized this minimum distance threshold by minimizing the VI distance between known genetic groups and clusters produced with different threshold values (Supplementary Table S1). Clusters from all four embedding methods captured broad phylogenetic clades (A1, A1b, A2, A3, 3c2.A, and 3c3.A) but failed to distinguish between A1b and its descendants (Fig 4). The 15 clusters from t-SNE and 7 from UMAP most accurately captured expert clade assignments (normalized VI=0.09), followed by PCA’s 7 clusters (normalized VI=0.10) and MDS’s 9 clusters (normalized VI=0.11). PCA and UMAP clusters failed to distinguish between A4 and its ancestral clade of 3c2.A. Although all methods produced clusters that were generally supported by cluster-specific mutations (Supplementary Table S3 and Supplementary Fig. S5), only MDS and t-SNE produced monophyletic clusters (Supplementary Table S2). The average pairwise genetic diversity within and between clusters matched the diversity within Nextstrain clades (Supplementary Fig. S6). These results indicate that all embedding methods could potentially be well-suited for clustering and classification of H3N2 HA sequences. Clusters based on genetic distances were the farthest from Nextstrain clades (normalized VI=0.17, Supplementary Table S1) and had higher average genetic diversity than clusters from embedding methods (Supplementary Fig. S6). These results suggest that applying dimensionality reduction methods prior to clustering could improve cluster accuracy.

To understand whether these embedding methods and optimal cluster parameters could effectively cluster previously unseen sequences, we applied each method to the late H3N2 HA dataset (2018–2020), identified clusters per embedding, and calculated the VI distance between clusters and previously defined clades. The late dataset included 9 clades with at least 10 samples (Supplementary Fig. S7). These clades had a greater average between-clade distance than clades in the early dataset (Supplementary Fig. S6). Clusters from PCA (N=5), MDS (N=6), t-SNE (N=7), and UMAP (N=8) were similarly accurate, with normalized VI distances of 0.07, 0.08, 0.05, and 0.09, respectively (Fig. 5, Supplementary Fig. S8, and Supplementary Table S1). Genetic distance clusters (N=4) were farthest from Nextstrain clades (normalized VI=0.12, Supplementary Table 1). MDS split clade A3’s 17 samples into two widely separated groups in its Euclidean space. On further inspection of this clade in the tree, we found 7 homoplasies (mutations that also occur elsewhere in the tree) on the branch leading to A3 and 10 homoplasies on the branch leading to one of A3’s subclades. Previous work with MDS embeddings of HA sequences has shown that MDS’s global optimization algorithm is sensitive to homoplasies [37]. In this dataset, clade A3 represented an extreme example where MDS could not cluster a clade that had many homoplasies and few samples. In contrast, PCA, t-SNE, and UMAP correctly clustered A3 samples together in their embeddings, showing the robustness of these methods to homoplasies. Accordingly, clusters from all methods except MDS were monophyletic (Supplementary Table S2). The majority of clusters from all methods were supported by cluster-specific mutations (Supplementary Table S3 and Supplementary Fig. S5). The average of pairwise nucleotide differences within clusters generally matched the diversity within Nextstrain clades (Supplementary Fig. S6). As with the early H3N2 HA dataset, clusters from genetic distances between late H3N2 HA sequences had the highest within and between group pairwise nucleotide differences.

Cluster accuracies were robust to changes in sampling density under the same even geographic and temporal sampling scheme, with MDS clusters producing the lowest median distance to Nextstrain clades (Supplementary Fig. S9A). However, biased sampling toward the USA and clade 3c3.A decreased cluster accuracy for t-SNE and UMAP (Supplementary Fig. S9B). Under even sampling, genetic distance clusters were less accurate than clusters from embeddings until the number of input sequences exceeded 1500. However, genetic distance clusters were consistently accurate under biased sampling. These results show that all four methods can produce clusters that accurately capture known genetic groups when applied to previously unseen H3N2 HA samples with unbiased sampling. Clusters from PCA, MDS, and genetic distances are better choices when the composition of sequences is biased strongly by geography or time.

2.3. Joint embeddings of hemagglutinin and neuraminidase sequences identify seasonal influenza virus H3N2 reassortment events

Given that clusters from embedding methods could recapitulate expert-defined clades, we measured how well the same methods could capture reassortment events between multiple gene segments as detected by biologically-informed computational models. Evolution of HA and NA surface proteins contributes to the ability of influenza viruses to escape existing immunity [45] and HA and NA genes frequently reassort [5, 6, 51]. Therefore, we focused our reassortment analysis on HA and NA sequences, sampling 1,607 viruses collected between January 2016 and January 2018 with sequences for both genes. We inferred HA and NA phylogenies from these sequences and applied TreeKnit to both trees to identify maximally compatible clades (MCCs) that represent reassortment events [11]. Of the 208 reassortment events identified by TreeKnit, 15 (7%) contained at least 10 samples representing 1,049 samples (65%, Supplementary Fig. S10).

We created PCA, MDS, t-SNE, and UMAP embeddings from the HA alignments and from merged HA and NA alignments. We identified clusters in both HA-only and HA/NA embeddings and calculated the VI distance between these clusters and the MCCs identified by TreeKnit. We expected that clusters from HA-only embeddings could only reflect reassortment events when the HA clade involved in reassortment happened to carry characteristic nucleotide mutations. We expected that the VI distances for clusters from HA/NA embeddings would improve on the baseline distances calculated with the HA-only clusters.

All embedding methods produced more accurate clusters from the HA/NA alignments than the HA-only alignments (Fig. 6, Supplementary Fig. S11, and Supplementary Table S1). HA/NA clusters from t-SNE were closest to reassortment events identified by TreeKnit (normalized VI=0.06) and almost twice as close to those reassortment events than the HA-only clusters (normalized VI=0.11). For the other three embedding methods, including NA with HA reduced the distance between clusters and reassortment events by a similar absolute values of 0.05, 0.07, and 0.03 for PCA, MDS, and UMAP, respectively. Clusters from genetic distances improved the most by the addition of NA from a normalized VI of 0.2 to 0.11 (Supplementary Table 1). Embeddings with both genes produced more clusters for all methods than the HA-only embeddings with 3 additional clusters in PCA (Supplementary Fig. S12), 9 in MDS (Supplementary Fig. S13), 2 in t-SNE (Supplementary Fig. S14 and Supplementary Fig. S15), 1 in UMAP (Supplementary Fig. S16), and 16 in genetic distance clusters (Supplementary Table 1). All embeddings of HA/NA alignments produced distinct clusters for the known reassortment event within clade A2 [51] as represented by MCCs 14 and 11. Other pairs of larger reassortment events that occurred in the same part of the HA tree like MCCs 9 and 12 or MCCs 5 and 10 mapped farther apart in all HA/NA embeddings compared to HA-only embeddings (Supplementary Fig. S11). We noted that some of the additional clusters in HA/NA embeddings likely also reflected genetic diversity in NA that was independent of reassortment between HA and NA. These results suggest that a single embedding of multiple gene segments could identify biologically meaningful clusters within and between all genes.

2.4. SARS-CoV-2 clusters recapitulate broad genetic groups corresponding to Nextstrain clades

SARS-CoV-2 poses a greater challenge to embedding methods than seasonal influenza, with an unsegmented genome an order of magnitude longer than influenza’s HA or NA [52], a mutation rate in the spike surface protein subunit S1 that is four times higher than influenza H3N2’s HA rate [53], and increasingly common recombination [54, 55]. However, multiple expert-based clade definitions exist for SARS-CoV-2, enabling comparison between clusters from embeddings and known genetic groups. These definitions span from broad genetic groups named by the WHO as “variants of concern” (e.g., “Alpha”, “Beta”, etc.) [56] or systematically defined by the Nextstrain team [57, 58, 59] to smaller, emerging genetic clusters defined by Pango curators [19]. As with seasonal influenza, we defined an early SARS-CoV-2 dataset spanning from January 2020 to January 2022, embedded genomes with the same four methods, and identified HDBSCAN clustering parameters that minimized the VI distance between embedding clusters and previously defined genetic groups as defined by Nextstrain clades and Pango lineages (see Methods). To test these optimal cluster parameters, we produced clusters from embeddings of a late SARS-CoV-2 dataset spanning from January 2022 to November 2023 and calculated the VI distance between those clusters and known genetic groups. Unlike the seasonal influenza analysis, we counted insertion and deletion (“indel”) events in pairwise genetic distances for SARS-CoV-2, to improve the resolution of distance-based embeddings.

All embedding methods placed samples from the same Nextstrain clades closer together and closely related Nextstrain clades near each other (Fig. 7). For example, the most genetically distinct clades like 21J (Delta) and 21L (Omicron) placed farthest from other clades, while both Delta clades (21I and 21J) placed close together (Fig. 7, Supplementary Fig. S17). MDS placed related clades closer together on a continuous scale, while PCA, t-SNE, and UMAP produced more clearly separate groups of samples. We did not observe the same clear grouping of Pango lineages. For example, the Nextstrain clade 21J (Delta) contained 11 Pango lineages that all appeared to map into the same overlapping space in all four embeddings (Supplementary Fig. S18). These results suggest that distance-based embedding methods can recapitulate broader genetic groups of SARS-CoV-2, but that these methods lack the resolution of finer groups defined by Pango nomenclature.

We quantified the maintenance of local and global structure in early SARS-CoV-2 embeddings by fitting a linear model between pairwise genetic and Euclidean distances of samples. PCA produced the weakest linear relationship (Pearson’s R2 = 0.35, Fig. 8). MDS created a strong linear mapping across the range of observed genetic distances (Pearson’s R2 = 0.92). Both t-SNE and UMAP maintained intermediate degrees of linearity (Pearson’s R2 = 0.55 and R2 = 0.59, respectively). These embeddings placed the most genetically similar samples close together and the most genetically distinct farther apart. However, these embeddings did not consistently place pairs of samples with intermediate genetic distances at an intermediate distance in Euclidean space. The linear relationship for genetically similar samples in t-SNE and UMAP remained consistent up to a genetic distance of approximately 30 nucleotides.

We identified clusters in embeddings and pairwise genetic distances from early SARS-CoV-2 data using cluster parameters that minimized the normalized VI distance between clusters and known genetic groups. Since Nextstrain clades and Pango lineages represented different resolutions of genetic diversity, we identified optimal distance thresholds per lineage definition. However, we found that the optimal thresholds were the same for both lineage definitions, except for genetic distance clusters which had a slightly higher optimal threshold for Pango lineages than Nextstrain clades (Supplementary Table S1). The 19 clusters from t-SNE were closest to the 24 Nextstrain clades (normalized VI=0.09) followed by MDS, UMAP, genetic distances, and PCA with distances of 0.15, 0.16, 0.17, and 0.23, respectively (Fig. 9 and Supplementary Table S1). Clusters from PCA, t-SNE, and UMAP all represented completely monophyletic groups (Supplementary Table S2). Clusters from all methods were generally supported by cluster-specific mutations including 2 of 3 (67%) PCA clusters, 9 of 16 (56%) MDS clusters, 15 of 19 (79%) t-SNE clusters, 5 of 6 (83%) UMAP clusters, and 7 of 9 (78%) genetic distance clusters (Supplementary Table S3 and Supplementary Fig. S5). Clusters from t-SNE had the most similar within-group distances to Nextstrain clades (Supplementary Fig. S19).

Clusters from all methods were farther from the 35 Pango lineages (Supplementary Fig. S20 and Supplementary Table S1). The 19 clusters from t-SNE were the closest (normalized VI=0.14) followed by MDS, UMAP, genetic distances, and PCA with distances of 0.23, 0.25, 0.26, and 0.32, respectively (Supplementary Table S1). We found that within-cluster distances for t-SNE were lower on average than within-lineage Pango distances, suggesting that Pango lineages were not as tightly scoped as we originally expected (Supplementary Fig. S19). These results confirm quantitatively that these embeddings methods can accurately capture broader genetic diversity of SARS-CoV-2, but most methods cannot distinguish between fine resolution genetic groups defined by Pango lineage nomenclature.

To test the optimal cluster parameters identified above, we applied embedding methods to late SARS-CoV-2 data and compared clusters from these embeddings to the corresponding Nextstrain clades and Pango lineages. Compared to the 17 Nextstrain clades defined in this time period (Supplementary Fig. S21), the closest clusters were from t-SNE (normalized VI=0.09 with 66 clusters) and UMAP (normalized VI=0.09 with 13 clusters, Fig. 10 and Supplementary Table S1). We attributed t-SNE’s additional clusters to recombinant lineages that were genetically distinct but which received a generic “recombinant” label in Nextstrain’s clade definitions instead of a unique clade name (Supplementary Fig. S21). Although we did not consider these non-monophyletic recombinant samples when calculating VI distances between clusters and Nextstrain clades, these samples appear in each embedding where they could form their own distinct clusters. Only t-SNE, UMAP, and genetic distance clusters were fully monophyletic (Supplementary Table S2). Genetic distance, PCA, and t-SNE clusters were best supported by cluster-specific mutations with 16 of 17 clusters (94%), 6 of 7 clusters (86%), and 51 of 66 clusters (77%), respectively (Supplementary Table S3 and Supplementary Fig. S5). Clusters from t-SNE had the lowest average within-group distances (Supplementary Fig. S19). We observed similar absolute and relative distances to Nextstrain clades across methods at different sampling densities under an even geographic and temporal sampling scheme with t-SNE and UMAP consistently producing the most accurate clusters (Supplementary Fig. S23A). In the presence of geographic and genetic bias associated with randomly sampling the late SARS-CoV-2 data, UMAP produced the most accurate clusters across all sampling densities while t-SNE clusters became less accurate as the number of biased sequences increased (Supplementary Fig. S23B). In contrast to the same analysis for H3N2 HA populations, clusters from genetic distances were consistently farther from Nextstrain clades than clusters from embeddings across all sampling densities and biases.

All methods produced less accurate representations of the 137 Pango lineages (Supplementary Figs. S22 and S24 and Supplementary Table 1). However, t-SNE clusters were nearly as accurate with a normalized VI of 0.14, suggesting that t-SNE’s numerous additional clusters likely did represent many of the recombinant Pango lineages in the dataset that all received a “recombinant” Nextstrain clade label. Of the 80 recombinant Pango lineages that also had a t-SNE cluster, 79 (99%) mapped to a single t-SNE cluster (Supplementary Fig. S25). Of the 52 t-SNE clusters with recombinant Pango lineages, 43 (83%) mapped to a single Pango lineage. Clusters from other methods were at least twice as far from Pango lineages as t-SNE’s clusters, suggesting that these other methods poorly captured recombinant lineages. With the exception of t-SNE’s performance, these results replicate the patterns we observed with early SARS-CoV-2 data where clusters from embeddings more effectively represented broader genetic diversity than the finer resolution diversity denoted by Pango lineages. Unlike the Pango lineages in the early SARS-CoV-2 data, the lineages from the later data exhibited fewer pairwise genetic distances between samples in each lineage than samples in Nextstrain clades or any embedding cluster (Supplementary Fig. S19).

To understand whether t-SNE clusters could capture Pango-resolution genetic groups within a single Nextstrain clade, we evenly sampled approximately 2,000 sequences from a dominant Nextstrain clade with many Pango lineages, 21J (Delta), and identified clusters from a t-SNE embedding of those data. Within the 1,992 sequences sampled from 21J (Delta), we found 38 Pango lineages after collapsing lineages with fewer than 10 sequences into their parent lineages. We found 28 t-SNE clusters representing 1,806 sequences (91%) with 186 sequences (9%) assigned to the unclustered “−1” label (Supplementary Fig. S26). The VI distance between Pango lineages and all clusters (including the unclustered group) was 0.17 (Supplementary Table 1). This distance was consistent with the distance of 0.14 between Pango lineages and t-SNE clusters from both the full early and late SARS-CoV-2 datasets. The VI distance between Pango lineages and clusters without the unclustered sequences was 0.13, confirming that one quarter of the distance between t-SNE clusters and Pango lineages above came from unclustered sequences. Of the 38 Pango lineages with a t-SNE cluster, 30 lineages (79%) had a single corresponding t-SNE cluster, seven lineages (18%) had two or three t-SNE clusters, and one lineage (B.1.617.2) had five t-SNE clusters (Supplementary Fig. S26). Of the 28 t-SNE clusters, 21 clusters (75%) had a single corresponding Pango lineage, 6 (21%) mapped to two or three Pango lineages, and 1 (cluster 27) mapped to 18 Pango lineages with most sequences from B.1.617.2 and AY.4. These results suggest that clusters from t-SNE embeddings can capture more Pango-resolution genetic groups by analyzing sequences within a specific Nextstrain clade.

2.5. Distance-based embeddings reflect SARS-CoV-2 recombination events

Finally, we tested the ability of sequence embeddings to place known recombinant lineages of SARS-CoV-2 between their parental lineages in Euclidean space. We reasoned that each recombinant lineage, X, should always place closer to its parental lineages A and B than the parental lineages place to each other. Based on this logic, we calculated the average Euclidean distance between pairs of samples in lineages A and B, A and X, and B and X for each embedding method (see Methods). We identified recombinant lineages that mapped closer to both of their parental lineages and those that mapped closer to at least one of the parental lineages.

We identified 66 recombinant lineages for which that lineage and both of its parental lineages had at least 10 genomes (Supplementary Table S4). MDS embeddings most consistently placed recombinant lineages between the parental lineages with correct placement of 60 (91%) lineages (e.g., Supplementary Fig. S27). The t-SNE, UMAP, and PCA embeddings correctly placed 55 (83%), 50 (76%), and 45 (68%) lineages, respectively. Additionally, all 66 recombinant lineages placed closer to at least one parent in all embeddings except for one lineage in the PCA embeddings.

3. Discussion

3.1. Tree-free dimensionality reduction methods can provide valuable biological insights

We applied four standard dimensionality reduction methods to simulated and natural genome sequences of two relevant human pathogenic viruses and found that the resulting embeddings could reflect pairwise genetic relationships between samples and capture previously identified genetic groups. From our analysis of simulated influenza- and coronavirus-like sequences, we found that each method produced consistent embeddings of genetic sequences for two distinct pathogens, 50 years of evolution, and a wide range of practical method parameters. Of the four methods, MDS most accurately reflected pairwise genetic distances between simulated samples in its embeddings. From our analysis of natural populations of seasonal influenza H3N2 HA and SARS-CoV-2 sequences, we confirmed that MDS most reliably reflected pairwise genetic distances. We found that clusters from t-SNE embeddings most accurately recapitulated previously defined genetic groups at the resolution of WHO variants and Nextstrain clades and consistently produced clusters that corresponded to monophyletic groups in phylogenies and were robust to the presence of homoplasies. Clusters from t-SNE embeddings of H3N2 HA and NA sequences most accurately matched reassortment clades identified by a biologically-informed model based on ancestral reassortment graphs. MDS embeddings consistently placed known recombinant lineages of SARS-CoV-2 between their parental lineages, while t-SNE clusters most accurately captured recombinant lineages. All of the embedding methods and the HDBSCAN clustering method rely on pairwise comparisons between all samples making them robust to individual outliers caused by sequencing errors. Furthermore, distance-based methods like MDS, t-SNE, and UMAP easily ignore missing characters in individual sequences. These results show that tree-free dimensionality reduction methods can provide valuable biological insights for human pathogenic viruses through easily interpretable visualizations of genetic relationships and the ability to account for genetic variation that tree-based phylogenetic methods cannot use, including indels, reassortment, and recombination.

3.2. Recommendations for application of methods to new pathogens

From these results, we can also make the following recommendations about how to apply these methods to other viral pathogens. First, evenly sample the available genome sequences across time and geography, to minimize bias in embeddings. Then, choose which embedding method to use based on the question under investigation. For analyses that require the most accurate low-dimensional representation of pairwise genetic distances across local and global scales, use MDS with 3 dimensions. For analyses that need to find clusters of closely related samples, use t-SNE with a perplexity of 100 (or less, if using fewer than 100 samples) and a learning rate that scales with the number of samples in the data. In all cases, plot the relationship between pairwise genetic distances and Euclidean distances in each embedding. These plots reveal the range of genetic distances that an embedding can represent linearly and act as a sanity check akin to plotting the temporal signal present in samples prior to inferring a time-scaled phylogeny [60, 4]. Before finding clusters in the t-SNE embedding, determine the minimum genetic distance desired between clusters, and use the pairwise genetic and Euclidean distance plot to find the corresponding Euclidean distance to use as a threshold for HDBSCAN. While HDBSCAN clusters require this pathogen-specific tuning, the linear relationship between Euclidean and genetic distance remains robust to changes in method parameters.

The computational complexity of the original MDS and t-SNE algorithms scales by the cube and square of the number of input samples (N), respectively [61, 30]. However, more efficient alternate implementations exist for both methods that can scale by N log N and operate on millions of samples [61, 62, 63, 64, 65]. For this reason, the primary practical limitation to scaling MDS and t-SNE to increasingly more pathogen sequences is the time and space required to calculate pairwise genetic distances for all samples. Implementing more efficient pairwise distance calculations remains a future direction for this area of research.

3.3. Limitations of methods and analysis

Despite the promise of these simple methods to answer important public health questions about human pathogenic viruses, these methods and our analyses suffer from inherent limitations. The lack of an underlying biological model is both a strength and the clearest limitation of the dimensionality reduction methods we considered here. For example, embeddings of SARS-CoV-2 genomes that represent the complete circulating diversity at a given time cannot capture the same fine-grained genetic resolution as Pango lineage annotations. Only t-SNE clusters of SARS-CoV-2 genomes within a single Nextstrain clade get close to defining Pango-resolution genetic groups. Each method provides only a few parameters to tune its embeddings and these parameters have little effect on the qualitative outcome. PCA is sensitive to missing characters in individual sequences and must treat each gap character from a single deletion event as an independent mutation instead of a single variant. In maintaining a linear relationship between Euclidean and genetic distances, MDS sacrifices the ability to form more accurate genetic clusters for viruses with large genomes like SARS-CoV-2 and struggles to correctly cluster samples from the same genetic group with numerous recurrent mutations. Neither t-SNE nor UMAP maintain a linear relationship between pairwise Euclidean and genetic distances across the observed range of genetic distances. As a result, viewers cannot know that samples mapping far apart in a t-SNE or UMAP embedding are as genetically distant as they appear. Given these limitations of these methods, we do not expect them to replace biologically-informed methods that provide more meaningful parameters to tune their algorithms. Instead, these methods provide an easy first step to produce interpretable visualizations and clusters of genome sequences, prior to analysis with more sophisticated methods with biological models.

We note that our analysis reflects a small subset of human pathogenic viruses and dimensionality reduction methods. We focused on analysis of two respiratory RNA viruses that contribute substantially to seasonal human morbidity and mortality, but numerous alternative pathogens would also have been relevant subjects. For example, HIV represents a canonical example of a highly recombinant and bloodborne virus, while Zika, dengue, and West Nile viruses represent pathogens with multiple host species in a transmission chain. Similarly, we selected only four dimensionality reduction methods from myriad options that are commonly applied to genetic data [66]. We chose these methods based on their wide use and availability in tools like scikit-learn [67] and to limit the dimensionality of our analyses.

3.4. Current applications and future directions for applying dimensionality reduction methods to viral pathogens

Following the recommendations we outlined above, researchers can immediately put these methods into practice with viral pathogens. We provide optimal settings for each pathogen and embedding method in this study and open source tools to apply these methods to other pathogens through the pathogen-embed toolkit. We provide this toolkit through the standard Python package repository PyPI, Bioconda, and Nextstrain-managed Docker and Conda environments. These tools integrate easily into existing workflows for the genomic epidemiology of viruses and their results can be visualized with Nextstrain. Alternately, researchers may choose to apply similar existing tools developed for analysis of metagenomic or bacterial populations [68, 69, 70, 71, 72] to the analysis of viral populations.

In the short term, these methods can identify biologically-relevant clusters from viral sequence alignments. For example, researchers can apply t-SNE and HDBSCAN clustering to alignments of unsegmented viruses like Zika or Ebola that lack existing clade definitions to identify candidate phylogenetic groups. Similarly, researchers can jointly build embeddings from alignments of segmented viruses like influenza and identify clusters corresponding to putative reassortment groups. For example, the Nextstrain team now routinely produces t-SNE embeddings and clusters from HA and NA sequences for weekly seasonal influenza analyses at https://nextstrain.org/seasonal-flu/ to track reassortment events. Researchers can also quickly apply these methods in response to outbreaks like the recent H5N1 avian influenza outbreak in cattle in the United States [73]. As a proof of concept, we applied t-SNE to all eight gene segments of recent H5N1 sequences, identified clusters with HDBSCAN, and confirmed the previously reported reassortment groups with PB2/NP and the other gene segments in the cattle outbreak. Researchers can easily visualize their embeddings in standard visualization tools for genomic epidemiology including Nextstrain’s Auspice [74], MicrobeTrace [14], or MicroReact [13].

Some limitations noted above suggest future directions for this line of research. In the long term, researchers may benefit from analyzing viral genomes with a broader range of dimensionality reduction methods including neural network models [75, 42]. Biologically-informed versions of these methods could support finer-grained cluster identification and more intuitive parameters for users to adjust to suit their pathogens. We also expect that researchers will benefit from applying the methods we describe here to a broader range of virus families including those that lack standard phylogenetic clade definitions or that undergo too much recombination to be appropriately analyzed with standard phylogenetic methods. Finally, the combination of dimensionality reduction methods and clustering with HDBSCAN provides the foundation for future methods to automatically identify reassortant and recombinant lineages. For example, representing viral genomes with low-dimensional MDS embeddings could simplify the problem of identifying recombinant lineages to a matter of classifying groups by their Euclidean distances.

In conclusion, we showed that simple dimensionality reduction methods operating on pairwise genetic differences can capture biologically-relevant clusters of phylogenetic clades, reassortment events, and patterns of recombining lineages for human pathogenic viruses. The conceptual and practical simplicity of these tools should enable researchers and public health practitioners to more readily visualize and compare samples for human pathogenic viruses when phylogenetic methods are either unnecessary or inappropriate.

4. Methods

4.1. Embedding methods

We selected four standard and common dimensionality reduction (or “embedding”) methods to apply to human pathogenic viruses: PCA, MDS, t-SNE, and UMAP. PCA operates on a matrix with samples in rows, “features” in columns, and numeric values in each cell [28]. To apply PCA to multiple sequence alignments, we encoded each nucleotide value as a vertex in a simplex as previously described [76] with “A” encoded as (1, −1, −1), “C” as (−1, 1, −1), “G” as (−1, −1, 1), and “T” as (1, 1, 1). We encoded all other characters as (0, 0, 0). This encoding places each nucleotide at an equal distance from the other nucleotides in the simplex and produces an input matrix for PCA of size N × 3L for N sequences of length L. We applied scikit-learn’s PCA implementation to the resulting numerical matrix with the “full” singular value decomposition solver and 10 components [67]. To minimize the effects of missing data on the PCA embeddings, we dropped all columns with “N” or “−” characters from concatenated H3N2 HA/NA alignments and SARS-CoV-2 alignments prior to producing PCA embeddings.

The remaining three methods operate on a distance matrix. We constructed a distance matrix from a multiple sequence alignment by calculating the pairwise Hamming distance between nucleotide sequences. By default, the Hamming distance only counted mismatches between pairs of standard nucleotide values (A, C, G, and T), ignoring other values including gaps. We implemented an optional mode that additionally counted each occurrence of consecutive gap characters in either input sequence as individual insertion/deletion (“indel”) events.

We applied scikit-learn’s MDS implementation to a given distance matrix, with an option to set the number of components in the resulting embedding [67]. Similarly, we applied scikit-learn’s t-SNE implementation, with options to set the “perplexity” and the “learning rate”. The perplexity controls the number of neighbors the algorithm uses per input sample to determine an optimal embedding [30]. This parameter effectively determines the balance between maintaining “local” or “global” structure in the embedding [41]. The learning rate controls how rapidly the t-SNE algorithm converges on a specific embedding [77, 30] and should scale with the number of input samples [78]. We initialized t-SNE embeddings with the first two components of the corresponding PCA embedding, as previously recommended to obtain more accurate global structure [41, 38]. Finally, we applied the umap-learn Python package written by UMAP’s authors, with options to set the number of “nearest neighbors” and the “minimum distance” [31]. As with t-SNE’s perplexity parameter, the nearest neighbors parameter determines how many adjacent samples the UMAP algorithm considers per sample to find an optimal embedding. The minimum distance sets the lower limit for how close any two samples can map next to each other in a UMAP embedding. Lower minimum distances allow tighter groups of samples to form. For both t-SNE and UMAP, we used the default number of components of 2.

4.2. Simulation of influenza-like and coronavirus-like populations

Given the relative lack of prior application of dimensionality reduction methods to human pathogenic viruses, we first attempted to understand the behavior and optimal parameter values for these methods when applied to simulated viral populations with well-defined evolutionary parameters. To this end, we simulated populations of influenza-like and coronavirus-like viruses using SANTA-SIM [79]. These simulated populations allowed us to identify optimal parameters for each embedding method, without overfitting to the limited data available for natural viral populations. For each population type described below, we simulated five independent replicates with fixed random seeds for 60 years, filtered out the first 10 years of each population as a burn-in period, and analyzed the remaining years.

We simulated influenza-like populations as previously described with 1,700 bp hemagglutinin sequences [43]. As in that previous study, we scaled the number of simulated generations per real year to 200 per year to match the observed mutation rate for natural H3N2 HA sequences, we sampled 10 genomes every 4 generations for 12,000 generations (or 60 years of real time), and filtered out the first 10 years of each simulation’s data as a burn-in period.

We simulated coronavirus-like populations as previously described for human seasonal coronaviruses with genomes of 21,285 bp [12]. For the current study, we assigned 30 generations per real year to obtain mutation rates similar to the 8×10−4 substitutions per site per year estimated for SARS-CoV-2 [44]. To account for the effect of recombination on optimal method parameters, we simulated populations with a recombination rate of 10−5 events per site per year based on human seasonal coronaviruses for which recombination rates are well-studied [12, 80]. We calibrated the overall recombination probability in SANTA-SIM such that the number of observed recombination events per year matched the expected number for human seasonal coronaviruses (0.3 per year) [12]. To assist with this calibration of recombination events per year, we modified the SANTA-SIM source code to emit a boolean status of “is recombinant” for each sampled genome. This change allowed us to identify recombinant genomes by their metadata in downstream analyses and calculate the number of recombination events observed per year. For each replicate population, we sampled 15 genomes every generation for 1,800 generations (or 60 years of real time) and filtered out the first 10 years of each simulation’s data as a burn-in period.

4.3. Optimization of embedding method parameters

We identified optimal parameter values for each embedding method with time series cross-validation of embeddings based on simulated populations [81]. To increase the interpretability of embedding space, we defined parameters as “optimal” when they maximized the linear relationship between pairwise genetic distance of viral genomes and the corresponding Euclidean distance between those same genomes in an embedding. This optimization approach allowed us to also determine the degree to which each method could recapitulate this linear relationship.

For each simulated population replicate, we created 10 training and test datasets that each consisted of 4 years of training data and 4 years of test data preceded by a 1-year gap from the end of the training time period. These settings produced training/test data with 2000 samples each for influenza-like populations and 1800 samples each for coronavirus-like populations. For each combination of training/test dataset, embedding method, and method parameters, we applied the following steps. We created an embedding from the training data with the given parameters, fit a linear model to estimate pairwise genetic distance from pairwise Euclidean distance in the embedding, created an embedding from the test data, estimated the pairwise genetic distance for genomes in the test data based on their Euclidean distances and the linear model fit to the training data, and calculated the mean absolute error (MAE) between estimated and observed genetic distances in the test data. We summarized the error for a given population type, method, and method parameters across all population replicates and training/test data by calculating the median of the MAE. For all method parameters except those controlling the number of components used for the embedding, we selected the optimal parameters as those that minimized the median MAE for a given embedding method. Since increasing the number of components used by PCA and MDS allows these methods to overfit to available data, we selected the optimal number of components for these methods as the number beyond which the median MAE did not decrease by at least 1 nucleotide. This approach follows the same concept from the MDS algorithm itself where optimization occurs iteratively until the algorithm reaches a predefined error threshold [29].

With the approach described above, we tested each method across a range of relevant parameters with all combinations of parameter values. For PCA and MDS, we tested the number of components between 2 and 10. For t-SNE, we tested perplexity values of 15, 30, 100, 200, and 300, and we tested learning rates of 100, 200, and 500. For UMAP, we tested nearest neighbor values of 25, 50, and 100, and we tested values for the minimum distance that points can be in an embedding of 0.05, 0.1, and 0.25.

4.4. Selection of natural virus population data

We selected recent publicly available genome sequences and metadata for seasonal influenza H3N2 HA and NA genes and SARS-CoV-2 genomes from INSDC databases [47]. For both viruses, we divided the available data into “early” and “late” datasets to use as training and test data, respectively, for identification of virus-specific clustering parameters.

For analyses that focused only on H3N2 HA data, we defined the early dataset between January 2016 and January 2018 and the late dataset between January 2018 to January 2020. These datasets reflected two years of recent H3N2 evolution up to the time when the SARS-CoV-2 pandemic disrupted seasonal influenza circulation. For both early and late datasets, we evenly sampled 25 sequences per country, year, and month. We excluded outliers which were sequences either labeled as environmental samples, containing over 100 gap characters within the HA sequence, or flagged by TreeTime [4] for having a phylogenetic divergence that exceeded four times the interquartile interval of residuals from a root-to-tip regression for all sequences in the same tree. With this sampling scheme, we selected 1,523 HA sequences for the early dataset and 1,073 for the late dataset. For analyses that combined H3N2 HA and NA data, we defined a single dataset between January 2016 and January 2018, keeping 1,607 samples for which both HA and NA have been sequenced.

For SARS-CoV-2 data, we defined the early dataset between January 1, 2020 and January 1, 2022 and the late dataset between January 1, 2022 and November 3, 2023. For the early dataset, we evenly sampled 1,736 SARS-CoV-2 genomes by geographic region, year, and month, excluding known outliers that had been previously identified by the Nextstrain team during weekly phylogenetic surveillance since January 2020 (https://github.com/nextstrain/ncov/blob/master/defaults/exclude.txt). For the late dataset, we used the same even sampling by space and time to select 1,309 representative genomes. In addition to these genomes, we identified all recombinant lineages in the official Pango designations as of November 3, 2023 (https://github.com/cov-lineages/pango-designation/raw/1bf4123/pango_designation/alias_key.json) for which the recombinant lineage and both of its parental lineages had at least 10 genome records each. We sampled at most 10 genomes per lineage for all distinct recombinant and parental lineages for a total of 1,157. With these additional genomes, the late SARS-CoV-2 dataset included 2,464 total genomes.

4.5. Evaluation of linear relationships between genetic distance and Euclidean distance in embeddings

To evaluate the biological interpretability of distances between samples in low-dimensional embeddings, we plotted the pairwise Euclidean distance between samples in each embedding against the corresponding genetic distance between the same samples. We calculated Euclidean distance using all components of the given embedding (e.g., 2 components for PCA, t-SNE, and UMAP and 3 components for MDS). For each embedding, we fit a linear model between Euclidean and genetic distance and calculated the squared Pearson’s correlation coefficient, R2. The distance plots provide a qualitative assessment of each embedding’s local and global structure relative to a biologically meaningful scale of genetic distance, while the linear models and correlation coefficients quantify the global structure in the embeddings.

4.6. Phylogenetic analysis

For each natural population described above, we created an annotated phylogenetic tree. For seasonal influenza H3N2 HA and NA sequences, we aligned sequences with MAAFT (version 7.486) [82, 83] using the augur align command (version 22.0.3) [84]. For SARS-CoV-2 sequences, we used existing reference-based alignments provided by the Nextstrain team (https://docs.nextstrain.org/projects/ncov/en/latest/reference/remote_inputs.html) and generated with Nextalign (version 2.14.0) [21]. We inferred each phylogeny with IQ-TREE (version 2.1.4-beta) [85] using the augur tree command with its default IQ-TREE parameters of -ninit 2 -n 2 -me 0.05 and a general time reversible (GTR) model. These are the same parameters we use to build SARS-CoV-2 and seasonal influenza phylogenies for https://nextstrain.org. We named internal nodes of the resulting divergence tree with TreeTime (version 0.10.1) [4] using the augur refine command. We visualized phylogenies with Auspice [74], after first converting the trees to Auspice JSON format with augur export. To visualize phylogenetic relationships in the context of each pathogen embedding, we calculated the mean Euclidean position of each internal node in each dimension of a given embedding (e.g., MDS 1) based on the Euclidean positions of that node’s immediate descendants and plotted line segments on the embedding connecting each node of the tree with its immediate parent to represent branches in the phylogeny. We only plotted these phylogenetic relationships on embeddings for pathogen datasets that lacked reassortment and recombination including early and late H3N2 HA and early SARS-CoV-2 datasets.

4.7. Definitions of genetic groups by experts or biologically-informed models

We annotated phylogenetic trees with genetic groups previously identified by experts or assigned by biologically-informed models. For seasonal influenza H3N2, the World Health Organization assigns “clade” labels to clades in HA phylogenies that appear to be genetically or phenotypically distinct from other recently circulating H3N2 samples. We used the latest clade definitions for H3N2 maintained by the Nextstrain team as part of their seasonal influenza surveillance efforts [48].

As seasonal influenza clades only account for the HA gene and lack information about reassortment events, we assigned joint HA and NA genetic groups using a biologically-informed model, TreeKnit (version 0.5.6) [11]. TreeKnit infers ancestral reassortment graphs from two gene trees, finding groups of samples for which both genes share the same history. These groups, also known as maximally compatible clades (MCCs), represent samples whose HA and NA genes have evolved together. TreeKnit attempts to resolve polytomies in one tree using information present in the other tree(s). Input trees for TreeKnit must contain the same samples and root on the same sample. Because of these TreeKnit expectations, we inferred HA and NA trees with IQ-TREE with a custom argument to collapse near-zero-length branches (-czb). We rooted the resulting trees on the same sample that we used as an alignment reference, A/Beijing/32/1992, and pruned this sample prior to downstream analyses. We applied TreeKnit to the rooted HA and NA trees with a gamma value of 2.0 and the --better-MCCs flag, as previously recommended for H3N2 analyses [11]. Finally, we filtered the MCCs identified by TreeKnit to retain only those with at least 10 samples. We also omitted the root MCC which consistently included the most recent common ancestor of both HA and NA trees and did not represent a reassortment event, as described in TreeKnit’s definition of MCCs [11].

For SARS-CoV-2, we used both coarser “Nextstrain clades” [57, 58, 59] and more granular Pango lineages [19] provided by Nextclade as “Nextclade pango” annotations. Nextstrain clade definitions represent the World Health Organization’s variants of concern along with post-Omicron phylogenetic clades that have reached minimum global and regional frequencies and growth rates. Pango lineages represent expert-curated lineages (https://github.com/cov-lineages/pango-designation) and must contain at least 5 samples with an unambiguous evolutionary event. Additionally, Pango lineages produced by recombination receive a lineage name prefixed by an “X”, while Nextstrain clades do not explicitly reflect recombination events.

Since Pango lineages can represent much smaller genetic groups than are practically useful, we collapsed lineages with fewer than 10 samples in our analysis into their parental lineages using the pango aliasor tool (https://github.com/corneliusroemer/pango_aliasor). Specifically, we counted the number of samples per lineage, sorted lineages in ascending order by count, and collapsed each lineage with a count less than 10 into its parental lineage in the count-sorted order. This approach allowed small lineages to aggregate with other small parental lineages and meet the 10-sample threshold. We used these “collapsed Nextclade Pango” lineages for subsequent analyses.

4.8. Clustering of samples in embeddings

To understand how well embeddings of genetic data could capture previously defined genetic groups, we applied an unsupervised clustering algorithm, HDBSCAN [49], to each embedding. In addition to the four embedding methods, we identified HDBSCAN clusters from a fifth “method” of precomputed pairwise genetic distances. This genetic distance method allowed us to understand how clusters differed between low- and high-dimensional inputs. HDBSCAN identifies initial clusters from high-density regions in the input space and merges these clusters hierarchically. This algorithm allowed us to avoid defining an arbitrary or biased expected number of clusters a priori. HDBSCAN provides parameters to tune the minimum number of samples required to seed an initial cluster (“min samples”), the minimum size for a final cluster (“min size”), and the minimum distance between initial clusters below which those clusters are hierarchically merged (“distance threshold”). We hardcoded the min samples to 5 to minimize the number of spurious initial clusters and min size to 10 to reflect our interest in genetic groups with at least 10 samples throughout our analyses. HDBSCAN calculates the distance between clusters on the Euclidean scale of each embedding or on the scale of precomputed nucleotides differences from each genetic distance matrix. To account for variation in method-specific distances, we performed a coarse grid search of distance threshold values for each virus type and method.

We performed the grid search on the early datasets for both seasonal influenza H3N2 HA and SARS-CoV-2. For each dataset and method, we applied HDBSCAN clustering with a distance threshold between 0 and 20 inclusive with steps of 0.5 between values. For a given threshold, we obtained sets of samples assigned to HDBSCAN clusters from the embedding. We evaluated the accuracy of these clusters with variation of information (VI) which calculates the distance between two sets of clusters of the same samples [50]. When two sets of clusters are identical, VI equals 0. When the sets are maximally different, VI is log N where N is the total number of samples. To make VI values comparable across datasets, we normalized each value by dividing by log N, following the pattern used to validate TreeKnit’s MCCs [11]. Unlike other standard metrics like accuracy, sensitivity, or specificity, VI distances do not favor methods that tend to produce more, smaller clusters. For each virus dataset and method, we identified the distance threshold that minimized the normalized VI between HDBSCAN clusters and genetic groups defined by experts or biologically-informed models (“Nextstrain clade” for seasonal influenza and both “Nextstrain clade” and “Pango lineage” for SARS-CoV-2). HDBSCAN allows samples to not belong to a cluster and assigns these samples a numeric label of −1. We intentionally included all unassigned samples in the normalized VI calculation thereby penalizing cluster parameters that increased the number of unassigned samples by increasing their VI values. Since Nextstrain clade assignments could include non-monophyletic labels like “unassigned” and “recombinant” to represent samples that did not map into a single clade, we ignored these labels in our VI distance calculations to avoid rewarding clusters that placed such non-monophyletic samples into the same group. Finally, we used these optimal distance thresholds to identify clusters in out-of-sample data from the late datasets for both viruses and calculate the normalized VI between those clusters and previously defined genetic groups.

4.9. Evaluating robustness of embedding cluster accuracy

The cluster accuracies we estimated for late H3N2 HA and SARS-CoV-2 datasets represented a single VI measurement for a single pathogen dataset. To understand how robust these accuracies were across different datasets, we generated alternate random samples from both late pathogen datasets using two different sampling schemes and a range of total sequences sampled. Specifically, we sampled 500, 1000, 1500, 2000, or 2500 total sequences for five replicates per pathogen (random seeds of 0, 1, 2, 3, and 4) with either even sampling by geography and time or random sampling. For the relatively smaller influenza data, we evenly sampled by country, year, and month. For the larger SARS-CoV-2 data, we evenly sampled by region, year, and month. Even sampling attempted to minimize geographic and temporal biases in the original data. Random sampling uniformly selected samples in a way that reflected the bias in the data. Influenza data were heavily biased toward samples from the USA and clade 3c3.A, while SARS-CoV-2 data were biased toward Europe and North America and Nextstrain clades 21K, 21L, and 22B. For each replicate from each sampling scheme and total number of sequences, we embedded the corresponding sequences with each method, identified clusters in embeddings, and calculated the VI distance between those clusters and Nextstrain clade assignments. We plotted the distribution of the resulting VI distances, to estimate the robustness of these values to sampling bias and density (Supplementary Figs. S9 and S23).

4.10. Evaluating the monophyletic nature of embedding clusters

To quantify the degree to which embedding clusters represented monophyletic groups in a pathogen phylogeny, we counted the number of times clusters from each embedding method appeared in different parts of the tree. Specifically, we applied augur traits with TreeTime (version 0.10.1) [4, 84] to infer cluster labels for internal nodes of the phylogeny for each pathogen dataset and embedding method. Using a preorder traversal of the tree, we identified each transition between different cluster labels assigned to pairs of ancestral and derived internal nodes. Since the “unclustered” cluster label of “−1” produced by HDBSCAN could occur in both ancestral and derived nodes and lead to overcounting transitions, we only logged transitions with this label in the ancestral state (e.g., transition from cluster −1 to cluster 0 but not cluster 0 to cluster −1). For each embedding, we counted the number of distinct clusters, total transitions, and excess transitions beyond the expected single transition between pairs of clusters. Embeddings with no excess transitions between clusters represented monophyletic groups.

4.11. Identification of cluster-specific mutations

To better understand the genetic basis of embedding clusters, we identified cluster-specific mutations for all HDBSCAN clusters. First, we found all mutations between each sample’s sequence and the reference sequence used to produce the alignment, considering only A, C, G, T, and gap characters. Within each cluster, we identified mutations that occurred in at least 10 samples and in at least 50% of samples in the cluster. We recorded the resulting mutations per cluster in a table with columns for the embedding method, the position of the mutation, the derived allele of the mutation, and a list of the distinct clusters the mutation appeared in. From this table, we could identify mutations the only occurred in specific clusters and mutations that distinguished sets of clusters from each other.

4.12. Assessment of HA/NA reassortment in seasonal influenza populations

To assess the ability of embedding methods to detect reassortment in seasonal influenza populations, we applied each method to either HA alignments only or concatenated alignments of HA and NA sequences from the same samples, performed HDBSCAN clustering with the optimal distance threshold for the given method, and calculated the normalized VI between the resulting clusters and TreeKnit MCCs. As mentioned above, we dropped all columns with “N” or “−” characters from the HA and HA/NA alignments prior to producing PCA embeddings. We used the original alignments to calculate distance matrices for all other methods, since distance-based methods can ignore N characters in pairwise comparisons. We compared normalized VI values for the HA-only clusters of each method to the corresponding VI values for the HA/NA clusters. Lower VI values in the HA/NA clusters than HA-only clusters indicated better clustering of samples into known reassortment groups.

4.13. Assessment of recombination in SARS-CoV-2 populations

To assess the ability of embedding methods to detect recombination in late SARS-CoV-2 populations (2022–2023), we calculated the Euclidean distances in low-dimensional space between the 10 known recombinant lineages and their respective parental lineages described in “Selection of natural virus population data” above. Given that we optimized each method’s parameters to maximize a linear relationship between genetic and Euclidean distance, we expected embeddings to place recombinant lineages between their parental lineages, reflecting the intermediate genetic state of the recombinants. For a recombinant lineage X and its parental lineages A and B, we calculated the average pairwise Euclidean distance, D, between samples in A and B, A and X, and B and X. We identified lineages that mapped properly as those for which D(A,X) < D(A,B) and D(B,X) < D(A,B). We also identified lineages for which the recombinant lineage placed closer to at least one parent than the distance between the parents. Note that we used the original uncollapsed Pango annotations to identify samples in each lineage, as these were the lineage names used to include recombinant samples in the analysis and define known relationships between recombinant and parental lineages.

Supplementary Material

Supplement 1

Acknowledgments

We thank James Hadfield, Katie Kistler, Maya Lewinsohn, Nicola Muller, Louise Moncla, Nidia Trovao, and Michael Zeller for constructive feedback on this project. We gratefully acknowledge the originating and submitting laboratories of seasonal influenza and SARS-CoV-2 sequences from INSDC databases without whom this work would not be possible (Supplementary Table S5).

Funding

J.H. was supported by NIH F31AI140714. A.B. was supported by the National Science Foundation Graduate Research Fellowship Program under Grant No. DGE-1256082. T.B. is a Howard Hughes Medical Institute Investigator. This work was supported by NIH NIGMS award R35 GM119774 to T.B., BMGF award INV-018979 to T.B. and NIH NIAID contract 75N93021C00015.

Data availability

The entire workflow for our analyses was implemented with Snakemake [86]. We have provided all source code, configuration files, and datasets at https://github.com/blab/cartography. Interactive phylogenetic trees and corresponding embeddings for natural populations are available at https://nextstrain.org/groups/blab/ under the “cartography” keyword. The pathogen-embed Python package, available at https://pypi.org/project/pathogen-embed/, provides command line utilities to calculate distance matrices (pathogen-distance), calculate embeddings per method (pathogen-embed), apply hierarchical clustering to embeddings (pathogen-cluster), and find mutations from alignments associated with clusters (pathogen-cluster-mutations). Supplementary data are published on Zenodo at https://doi.org/10.5281/zenodo.13381647.

Fig. 1. Representative embeddings for simulated populations using optimal parameters per pathogen (rows) and embedding method (columns).

Each panel shows the embedding for sequences from the first four years of a single replicate population for the corresponding pathogen type. Each point represents a simulated viral sequence colored by its generation with darker values representing later generations. Supplementary Fig. S3 shows the full MDS embedding for all components.

Fig. 2. Phylogeny of early (2016–2018) influenza H3N2 HA sequences plotted by nucleotide substitutions per site on the x-axis (top) and low-dimensional embeddings of the same sequences by PCA (middle left), MDS (middle right), t-SNE (bottom left), and UMAP (bottom right).

Tips in the tree and embeddings are colored by their Nextstrain clade assignment. Line segments in each embedding reflect phylogenetic relationships with internal node positions calculated from the mean positions of their immediate descendants in each dimension (see Methods). Line colors represent the clade membership of the most ancestral node in the pair of nodes connected by the segment. Line thickness in the embeddings scales by the square root of the number of leaves descending from a given node in the phylogeny. Clade labels appear in the tree at the earliest ancestral node of the tree for each clade. Clade labels appear in each embedding at the average position on the x and y axis for sequences in a given clade.

Fig. 3. Relationship between pairwise genetic and Euclidean distances in embeddings of early (2016–2018) influenza H3N2 HA sequences by PCA (upper left), MDS (upper right), t-SNE (lower left), and UMAP (lower right).

Each boxplot represents the distribution of pairwise Euclidean distances at a given genetic distance. Panel titles include Pearson’s R2 values and linear regression coefficients between the plotted distances.

Fig. 4. Phylogenetic trees (left) and embeddings (right) of early (2016–2018) influenza H3N2 HA sequences colored by HDBSCAN cluster.

Normalized VI values per embedding reflect the distance between clusters and known genetic groups (Nextstrain clades). Line segments in each embedding reflect phylogenetic relationships with internal node positions calculated from the mean positions of their immediate descendants in each dimension (see Methods). Line thickness in the embeddings scales by the square root of the number of leaves descending from a given node in the phylogeny.

Fig. 5. Phylogenetic trees (left) and embeddings (right) of late (2018–2020) H3N2 HA sequences colored by HDBSCAN cluster.

Normalized VI values per embedding reflect the distance between clusters and known genetic groups (Nextstrain clades). Line segments in each embedding reflect phylogenetic relationships with internal node positions calculated from the mean positions of their immediate descendants in each dimension (see Methods). Line thickness in the embeddings scales by the square root of the number of leaves descending from a given node in the phylogeny.

Fig. 6. Phylogeny of early (2016–2018) influenza H3N2 HA sequences plotted by nucleotide substitutions per site on the x-axis (top) and low-dimensional embeddings of the same HA sequences concatenated with matching NA sequences by PCA (middle left), MDS (middle right), t-SNE (bottom left), and UMAP (bottom right).

Tips in the tree and embeddings are colored by their TreeKnit Maximally Compatible Clades (MCCs) label which represents putative HA/NA reassortment groups. Tips from MCCs with fewer than 10 sequences are colored as “unassigned”. The first normalized VI values per embedding reflect the distance between HA/NA clusters and known genetic groups (MCCs). VI values in parentheses reflect the distance between HA-only clusters and known genetic groups. MCC labels appear in the tree and each embedding for larger pairs of reassortment events. MCC 9 represents two Nextstrain clades, so its labels appear twice in the tree. MCCs 14 and 11 represent a previously published reassortment event within Nextstrain clade A2 [51]. Labels for MCC 14 represent the subset of its sequences from clade A2.

Fig. 7. Phylogeny of early (2020–2022) SARS-CoV-2 sequences plotted by number of nucleotide substitutions from the most recent common ancestor on the x-axis (top) and low-dimensional embeddings of the same sequences by PCA (middle left), MDS (middle right), t-SNE (bottom left), and UMAP (bottom right).

Tips in the tree and embeddings are colored by their Nextstrain clade assignment. Line segments in each embedding reflect phylogenetic relationships with internal node positions calculated from the mean positions of their immediate descendants in each dimension (see Methods). Line thickness in the embeddings scales by the square root of the number of leaves descending from a given node in the phylogeny. Clade labels in the tree and embeddings highlight larger clades.

Fig. 8. Relationship between pairwise genetic and Euclidean distances in embeddings for early (2020–2022) SARS-CoV-2 sequences by PCA (upper left), MDS (upper right), t-SNE (lower left), and UMAP (lower right).

Each boxplot represents the distribution of pairwise Euclidean distances at a given genetic distance. Panel titles include Pearson’s R2 values and linear regression coefficients between the plotted distances.

Fig. 9. Phylogenetic trees (left) and embeddings (right) of early (2020–2022) SARS-CoV-2 sequences colored by HDBSCAN cluster.

Normalized VI values per embedding reflect the distance between clusters and known genetic groups (Nextstrain clades). Line segments in each embedding reflect phylogenetic relationships with internal node positions calculated from the mean positions of their immediate descendants in each dimension (see Methods). Line thickness in the embeddings scales by the square root of the number of leaves descending from a given node in the phylogeny.

Fig. 10. Phylogenetic trees (left) and embeddings (right) of late (2022–2023) SARS-CoV-2 sequences colored by HDBSCAN cluster.

Normalized VI values per embedding reflect the distance between clusters and known genetic groups (Nextstrain clades).

Competing interests

No competing interest is declared.
==== Refs
References

1. Grubaugh N. D. , Ladner J. T. , Lemey P. , Pybus O. G. , Rambaut A. , Holmes E. C. , and Andersen K. G. . Tracking virus outbreaks in the twenty-first century. Nat Microbiol, 4 (1 ):10–19, Jan 2019.30546099
2. Volz Erik M , Koelle Katia , and Bedford Trevor . Viral phylodynamics. PLoS Comput Biol, 9 (3 ):e1002947, 2013.23555203
3. Baele Guy , Suchard Marc A , Rambaut Andrew , and Lemey Philippe . Emerging concepts of data integration in pathogen phylodynamics. Syst. Biol., 66 (1 ):e47–e65, January 2017.28173504
4. Sagulenko Pavel , Puller Vadim , and Neher Richard A . TreeTime: Maximum-likelihood phylodynamic analysis. Virus Evolution, 4 (1 ), 01 2018.
5. Nelson M. I. , Viboud C. , Simonsen L. , Bennett R. T. , Griesemer S. B. , St George K. , Taylor J. , Spiro D. J. , Sengamalay N. A. , Ghedin E. , Taubenberger J. K. , and Holmes E. C. . Multiple reassortment events in the evolutionary history of H1N1 influenza A virus since 1918. PLoS Pathog, 4 (2 ):e1000012, Feb 2008.18463694
6. Marshall N. , Priyamvada L. , Ende Z. , Steel J. , and Lowen A. C. . Influenza virus reassortment occurs with high frequency in the absence of segment mismatch. PLoS Pathog, 9 (6 ):e1003421, 2013.23785286
7. Su S. , Wong G. , Shi W. , Liu J. , Lai A. C. K. , Zhou J. , Liu W. , Bi Y. , and Gao G. F. . Epidemiology, genetic recombination, and pathogenesis of coronaviruses. Trends Microbiol, 24 (6 ):490–502, Jun 2016.27012512
8. Lemey P. , Kosakovsky Pond S. L. , Drummond A. J. , Pybus O. G. , Shapiro B. , Barroso H. , Taveira N. , and Rambaut A. . Synonymous substitution rates predict HIV disease progression as a result of underlying replication dynamics. PLoS Comput Biol, 3 (2 ):e29, Feb 2007.17305421
9. Bhatt S. , Holmes E. C. , and Pybus O. G. . The genomic rate of molecular adaptation of the human influenza A virus. Mol Biol Evol, 28 (9 ):2443–2451, Sep 2011.21415025
10. Wiens J. J. . Combining data sets with different phylogenetic histories. Syst Biol, 47 (4 ):568–581, Dec 1998.12066302
11. Barrat-Charlaix Pierre , Vaughan Timothy G , and Neher Richard A . Treeknit: Inferring ancestral reassortment graphs of influenza viruses. PLoS Comput Biol, 18 (8 ):e1010394, 2022.35984845
12. Muller N. F. , Kistler K. E. , and Bedford T. . A Bayesian approach to infer recombination patterns in coronaviruses. Nat Commun, 13 (1 ):4186, Jul 2022.35859071
13. Argimón S. , Abudahab K. , Goater R. J. E. , Fedosejev A. , Bhai J. , Glasner C. , Feil E. J. , Holden M. T. G. , Yeats C. A. , Grundmann H. , Spratt B. G. , and Aanensen D. M. . Microreact: visualizing and sharing data for genomic epidemiology and phylogeography. Microb Genom, 2 (11 ):e000093, Nov 2016.28348833
14. Campbell E. M. , Boyles A. , Shankar A. , Kim J. , Knyazev S. , Cintron R. , and Switzer W. M. . MicrobeTrace: Retooling molecular epidemiology for rapid public health response. PLoS Comput Biol, 17 (9 ):e1009300, Sep 2021.34492010
15. O’Toole A. , Hill V. , Jackson B. , Dewar R. , Sahadeo N. , Colquhoun R. , Rooke S. , McCrone J. T. , Duggan K. , McHugh M. P. , Nicholls S. M. , Poplawski R. , Aanensen D. , Holden M. , Connor T. , Loman N. , Goodfellow I. , Carrington C. V. F. , Templeton K. , and Rambaut A. . Genomics-informed outbreak investigations of SARS-CoV-2 using civet. PLoS Glob Public Health, 2 (12 ):e0000704, 2022.36962792
16. McBroome J. , Martin J. , de Bernardi Schneider A. , Turakhia Y. , and Corbett-Detig R. . Identifying SARS-CoV-2 regional introductions and transmission clusters in real time. Virus Evol, 8 (1 ):veac048, 2022.
17. Stoddard G. , Black A. , Ayscue P. , Lu D. , Kamm J. , Bhatt K. , Chan L. , Kistler A. L. , Batson J. , Detweiler A. , Tan M. , Neff N. , DeRisi J. L. , and Corrigan J. . Using genomic epidemiology of SARS-CoV-2 to support contact tracing and public health surveillance in rural Humboldt County, California. BMC Public Health, 22 (1 ):456, Mar 2022.35255849
18. Tran-Kiem Cécile and Bedford Trevor . Estimating the reproduction number and transmission heterogeneity from the size distribution of clusters of identical pathogen sequences. medRxiv, 2023.
19. O’Toole A. , Scher E. , Underwood A. , Jackson B. , Hill V. , McCrone J. T. , Colquhoun R. , Ruis C. , Abu-Dahab K. , Taylor B. , Yeats C. , du Plessis L. , Maloney D. , Medd N. , Attwood S. W. , Aanensen D. M. , Holmes E. C. , Pybus O. G. , and Rambaut A. . Assignment of epidemiological lineages in an emerging pandemic using the pangolin tool. Virus Evol, 7 (2 ):veab064, 2021.
20. Turakhia Y. , Thornlow B. , Hinrichs A. S. , De Maio N. , Gozashti L. , Lanfear R. , Haussler D. , and Corbett-Detig R. . Ultrafast Sample placement on Existing tRees (UShER) enables real-time phylogenetics for the SARS-CoV-2 pandemic. Nat Genet, 53 (6 ):809–816, Jun 2021.33972780
21. Aksamentov Ivan , Roemer Cornelius , Hodcroft Emma B. , and Neher Richard A. . Nextclade: clade assignment, mutation calling and quality control for viral genomes. Journal of Open Source Software, 6 (67 ):3773, 2021.
22. Wertheim J. O. , Kosakovsky Pond S. L. , Forgione L. A. , Mehta S. R. , Murrell B. , Shah S. , Smith D. M. , Scheffler K. , and Torian L. V. . Social and Genetic Networks of HIV-1 Transmission in New York City. PLoS Pathog, 13 (1 ):e1006000, Jan 2017.28068413
23. Campbell E. M. , Patala A. , Shankar A. , Li J. F. , Johnson J. A. , Westheimer E. , Gay C. L. , Cohen S. E. , Switzer W. M. , and Peters P. J. . Phylodynamic Analysis Complements Partner Services by Identifying Acute and Unreported HIV Transmission. Viruses, 12 (2 ), Jan 2020.
24. Kırbıyık Uzay , Binder Alison M , Ghinai Isaac , Zawitz Chad , Levin Rebecca , Samala Usha , Smith Michelle Bryant , Gubser Jane , Jones Bridgette , Varela Kate , Rafinski Josh , Fitzgerald Anne , Orris Peter , Bahls Alex , Welbel Sharon , Mennella Connie , Black Stephanie R , and Armstrong Paige A . Network characteristics and visualization of COVID-19 outbreak in a large detention facility in the United States - Cook County, Illinois, 2020. MMWR Morb Mortal Wkly Rep, 69 (44 ):1625–1630, November 2020.33151915
25. Vang K. E. , Krow-Lucal E. R. , James A. E. , Cima M. J. , Kothari A. , Zohoori N. , Porter A. , and Campbell E. M. . Participation in Fraternity and Sorority Activities and the Spread of COVID-19 Among Residential University Communities - Arkansas, August 21-September 5, 2020. MMWR Morb Mortal Wkly Rep, 70 (1 ):20–23, Jan 2021.33411698
26. McVean G. . A genealogical interpretation of principal components analysis. PLoS Genet, 5 (10 ):e1000686, Oct 2009.19834557
27. Rambaut Andrew , Pybus Oliver G. , Nelson Martha I. , Viboud Cecile , Taubenberger Jeffery K. , and Holmes Edward C. . The genomic and epidemiological dynamics of human influenza a virus. Nature, Apr 2008.
28. Jolliffe Ian T and Cadima Jorge . Principal component analysis: a review and recent developments. Phil. Trans. R. Soc. A., Apr 2016.
29. Hout Michael C. , Papesh Megan H. , and Goldinger Stephen D. . Multidimensional scaling. Wiley Online Library, 2012.
30. van der Maaten Laurens and Hinton Geoffrey . Visualizing data using t-sne. Journal of Machine Learning Research, 9 (Nov ):2579–2605, 2008.
31. McInnes Leland , Healy John , and Melville James . Umap: Uniform manifold approximation and projection for dimension reduction. arXiv, 2018.
32. Novembre John , Johnson Toby , Bryc Katarzyna , Kutalik Zoltán , Boyko Adam R , Auton Adam , Indap Amit , King Karen S , Bergmann Sven , Nelson Matthew R , and Genes mirror geography within europe. Nature, 2008.
33. Alexander David H , Novembre John , and Lange Kenneth . Fast model-based estimation of ancestry in unrelated individuals. Genome Research, 2009.
34. Auton A. , Brooks L. D. , Durbin R. M. , Garrison E. P. , Kang H. M. , Korbel J. O. , Marchini J. L. , McCarthy S. , McVean G. A. , Abecasis G. R. , Auton A. , Abecasis G. R. , Altshuler D. M. , Durbin R. M. , Abecasis G. R. , Bentley D. R. , Chakravarti A. , Clark A. G. , Donnelly P. , Eichler E. E. , Flicek P. , Gabriel S. B. , Gibbs R. A. , Green E. D. , Hurles M. E. , Knoppers B. M. , Korbel J. O. , Lander E. S. , Lee C. , Lehrach H. , Mardis E. R. , Marth G. T. , McVean G. A. , Nickerson D. A. , Schmidt J. P. , Sherry S. T. , Wang J. , Wilson R. K. , Gibbs R. A. , Boerwinkle E. , Doddapaneni H. , Han Y. , Korchina V. , Kovar C. , Lee S. , Muzny D. , Reid J. G. , Zhu Y. , Wang J. , Chang Y. , Feng Q. , Fang X. , Guo X. , Jian M. , Jiang H. , Jin X. , Lan T. , Li G. , Li J. , Li Y. , Liu S. , Liu X. , Lu Y. , Ma X. , Tang M. , Wang B. , Wang G. , Wu H. , Wu R. , Xu X. , Yin Y. , Zhang D. , Zhang W. , Zhao J. , Zhao M. , Zheng X. , Lander E. S. , Altshuler D. M. , Gabriel S. B. , Gupta N. , Gharani N. , Toji L. H. , Gerry N. P. , Resch A. M. , Flicek P. , Barker J. , Clarke L. , Gil L. , Hunt S. E. , Kelman G. , Kulesha E. , Leinonen R. , McLaren W. M. , Radhakrishnan R. , Roa A. , Smirnov D. , Smith R. E. , Streeter I. , Thormann A. , Toneva I. , Vaughan B. , Zheng-Bradley X. , Bentley D. R. , Grocock R. , Humphray S. , James T. , Kingsbury Z. , Lehrach H. , Sudbrak R. , Albrecht M. W. , Amstislavskiy V. S. , Borodina T. A. , Lienhard M. , Mertes F. , Sultan M. , Timmermann B. , Yaspo M. L. , Mardis E. R. , Wilson R. K. , Fulton L. , Fulton R. , Sherry S. T. , Ananiev V. , Belaia Z. , Beloslyudtsev D. , Bouk N. , Chen C. , Church D. , Cohen R. , Cook C. , Garner J. , Hefferon T. , Kimelman M. , Liu C. , Lopez J. , Meric P. , O’Sullivan C. , Ostapchuk Y. , Phan L. , Ponomarov S. , Schneider V. , Shekhtman E. , Sirotkin K. , Slotta D. , Zhang H. , McVean G. A. , Durbin R. M. , Balasubramaniam S. , Burton J. , Danecek P. , Keane T. M. , Kolb-Kokocinski A. , McCarthy S. , Stalker J. , Quail M. , Durbin R. M. , Balasubramaniam S. , Burton J. , Danecek P. , Keane T. M. , Kolb-Kokocinski A. , McCarthy S. , Stalker J. , Quail M. , Schmidt J. P. , Davies C. J. , Gollub J. , Webster T. , Wong B. , Zhan Y. , Auton A. , Campbell C. L. , Kong Y. , Marcketta A. , Gibbs R. A. , Yu F. , Antunes L. , Bainbridge M. , Muzny D. , Sabo A. , Huang Z. , Wang J. , Coin L. J. , Fang L. , Guo X. , Jin X. , Li G. , Li Q. , Li Y. , Li Z. , Lin H. , Liu B. , Luo R. , Shao H. , Xie Y. , Ye C. , Yu C. , Zhang F. , Zheng H. , Zhu H. , Alkan C. , Dal E. , Kahveci F. , Marth G. T. , Garrison E. P. , Kural D. , Lee W. P. , Leong W. F. , Stromberg M. , Ward A. N. , Wu J. , Zhang M. , Daly M. J. , DePristo M. A. , Handsaker R. E. , Altshuler D. M. , Banks E. , Bhatia G. , Del Angel G. , Gabriel S. B. , Genovese G. , Gupta N. , Li H. , Kashin S. , Lander E. S. , McCarroll S. A. , Nemesh J. C. , Poplin R. E. , Yoon S. C. , Lihm J. , Makarov V. , Clark A. G. , Gottipati S. , Keinan A. , Rodriguez-Flores J. L. , Korbel J. O. , Rausch T. , Fritz M. H. , Stütz A. M. , Flicek P. , Beal K. , Clarke L. , Datta A. , Herrero J. , McLaren W. M. , Ritchie G. R. , Smith R. E. , Zerbino D. , Zheng-Bradley X. , Sabeti P. C. , Shlyakhter I. , Schaffner S. F. , Vitti J. , Cooper D. N. , Ball E. V. , Stenson P. D. , Bentley D. R. , Barnes B. , Bauer M. , Cheetham R. K. , Cox A. , Eberle M. , Humphray S. , Kahn S. , Murray L. , Peden J. , Shaw R. , Kenny E. E. , Batzer M. A. , Konkel M. K. , Walker J. A. , MacArthur D. G. , Lek M. , Sudbrak R. , Amstislavskiy V. S. , Herwig R. , Mardis E. R. , Ding L. , Koboldt D. C. , Larson D. , Ye K. , Gravel S. , Swaroop A. , Chew E. , Lappalainen T. , Erlich Y. , Gymrek M. , Willems T. F. , Simpson J. T. , Shriver M. D. , Rosenfeld J. A. , Bustamante C. D. , Montgomery S. B. , De La Vega F. M. , Byrnes J. K. , Carroll A. W. , DeGorter M. K. , Lacroute P. , Maples B. K. , Martin A. R. , Moreno-Estrada A. , Shringarpure S. S. , Zakharia F. , Halperin E. , Baran Y. , Lee C. , Cerveira E. , Hwang J. , Malhotra A. , Plewczynski D. , Radew K. , Romanovitch M. , Zhang C. , Hyland F. C. , Craig D. W. , Christoforides A. , Homer N. , Izatt T. , Kurdoglu A. A. , Sinari S. A. , Squire K. , Sherry S. T. , Xiao C. , Sebat J. , Antaki D. , Gujral M. , Noor A. , Ye K. , Burchard E. G. , Hernandez R. D. , Gignoux C. R. , Haussler D. , Katzman S. J. , Kent W. J. , Howie B. , Ruiz-Linares A. , Dermitzakis E. T. , Devine S. E. , Abecasis G. R. , Kang H. M. , Kidd J. M. , Blackwell T. , Caron S. , Chen W. , Emery S. , Fritsche L. , Fuchsberger C. , Jun G. , Li B. , Lyons R. , Scheller C. , Sidore C. , Song S. , Sliwerska E. , Taliun D. , Tan A. , Welch R. , Wing M. K. , Zhan X. , Awadalla P. , Hodgkinson A. , Li Y. , Shi X. , Quitadamo A. , Lunter G. , McVean G. A. , Marchini J. L. , Myers S. , Churchhouse C. , Delaneau O. , Gupta-Hinch A. , Kretzschmar W. , Iqbal Z. , Mathieson I. , Menelaou A. , Rimmer A. , Xifara D. K. , Oleksyk T. K. , Fu Y. , Liu X. , Xiong M. , Jorde L. , Witherspoon D. , Xing J. , Eichler E. E. , Browning B. L. , Browning S. R. , Hormozdiari F. , Sudmant P. H. , Khurana E. , Durbin R. M. , Hurles M. E. , Tyler-Smith C. , Albers C. A. , Ayub Q. , Balasubramaniam S. , Chen Y. , Colonna V. , Danecek P. , Jostins L. , Keane T. M. , McCarthy S. , Walter K. , Xue Y. , Gerstein M. B. , Abyzov A. , Balasubramanian S. , Chen J. , Clarke D. , Fu Y. , Harmanci A. O. , Jin M. , Lee D. , Liu J. , Mu X. J. , Zhang J. , Zhang Y. , Gerstein M. B. , Abyzov A. , Balasubramanian S. , Chen J. , Clarke D. , Fu Y. , Harmanci A. O. , Jin M. , Lee D. , Liu J. , Mu X. J. , Zhang J. , Zhang Y. , Li Y. , Luo R. , Zhu H. , Alkan C. , Dal E. , Kahveci F. , Marth G. T. , Garrison E. P. , Kural D. , Lee W. P. , Ward A. N. , Wu J. , Zhang M. , McCarroll S. A. , Handsaker R. E. , Altshuler D. M. , Banks E. , Del Angel G. , Genovese G. , Hartl C. , Li H. , Kashin S. , Nemesh J. C. , Shakir K. , Yoon S. C. , Lihm J. , Makarov V. , Degenhardt J. , Korbel J. O. , Fritz M. H. , Meiers S. , Raeder B. , Rausch T. , Stütz A. M. , Flicek P. , Casale F. P. , Clarke L. , Smith R. E. , Stegle O. , Zheng-Bradley X. , Bentley D. R. , Barnes B. , Cheetham R. K. , Eberle M. , Humphray S. , Kahn S. , Murray L. , Shaw R. , Lameijer E. W. , Batzer M. A. , Konkel M. K. , Walker J. A. , Ding L. , Hall I. , Ye K. , Lacroute P. , Lee C. , Cerveira E. , Malhotra A. , Hwang J. , Plewczynski D. , Radew K. , Romanovitch M. , Zhang C. , Craig D. W. , Homer N. , Church D. , Xiao C. , Sebat J. , Antaki D. , Bafna V. , Michaelson J. , Ye K. , Devine S. E. , Gardner E. J. , Abecasis G. R. , Kidd J. M. , Mills R. E. , Dayama G. , Emery S. , Jun G. , Shi X. , Quitadamo A. , Lunter G. , McVean G. A. , Chen K. , Fan X. , Chong Z. , Chen T. , Witherspoon D. , Xing J. , Eichler E. E. , Chaisson M. J. , Hormozdiari F. , Huddleston J. , Malig M. , Nelson B. J. , Sudmant P. H. , Parrish N. F. , Khurana E. , Hurles M. E. , Blackburne B. , Lindsay S. J. , Ning Z. , Walter K. , Zhang Y. , Gerstein M. B. , Abyzov A. , Chen J. , Clarke D. , Lam H. , Mu X. J. , Sisu C. , Zhang J. , Zhang Y. , Gerstein M. B. , Abyzov A. , Chen J. , Clarke D. , Lam H. , Mu X. J. , Sisu C. , Zhang J. , Zhang Y. , Gibbs R. A. , Yu F. , Bainbridge M. , Challis D. , Evani U. S. , Kovar C. , Lu J. , Muzny D. , Nagaswamy U. , Reid J. G. , Sabo A. , Yu J. , Guo X. , Li W. , Li Y. , Wu R. , Marth G. T. , Garrison E. P. , Leong W. F. , Ward A. N. , Del Angel G. , DePristo M. A. , Gabriel S. B. , Gupta N. , Hartl C. , Poplin R. E. , Clark A. G. , Rodriguez-Flores J. L. , Flicek P. , Clarke L. , Smith R. E. , Zheng-Bradley X. , MacArthur D. G. , Mardis E. R. , Fulton R. , Koboldt D. C. , Gravel S. , Bustamante C. D. , Craig D. W. , Christoforides A. , Homer N. , Izatt T. , Sherry S. T. , Xiao C. , Dermitzakis E. T. , Abecasis G. R. , Min Kang H. , McVean G. A. , Gerstein M. B. , Balasubramanian S. , Habegger L. , Gerstein M. B. , Balasubramanian S. , Habegger L. , Yu H. , Flicek P. , Clarke L. , Cunningham F. , Dunham I. , Zerbino D. , Zheng-Bradley X. , Lage K. , Jespersen J. B. , Horn H. , Montgomery S. B. , DeGorter M. K. , Khurana E. , Tyler-Smith C. , Chen Y. , Colonna V. , Xue Y. , Gerstein M. B. , Balasubramanian S. , Fu Y. , Kim D. , Gerstein M. B. , Balasubramanian S. , Fu Y. , Kim D. , Auton A. , Marcketta A. , Desalle R. , Narechania A. , Sayres M. A. , Garrison E. P. , Handsaker R. E. , Kashin S. , McCarroll S. A. , Rodriguez-Flores J. L. , Flicek P. , Clarke L. , Zheng-Bradley X. , Erlich Y. , Gymrek M. , Willems T. F. , Bustamante C. D. , Mendez F. L. , Poznik G. D. , Underhill P. A. , Lee C. , Cerveira E. , Malhotra A. , Romanovitch M. , Zhang C. , Abecasis G. R. , Coin L. , Shao H. , Mittelman D. , Tyler-Smith C. , Ayub Q. , Banerjee R. , Cerezo M. , Chen Y. , Fitzgerald T. W. , Louzada S. , Massaia A. , McCarthy S. , Ritchie G. R. , Xue Y. , Yang F , Tyler-Smith C. , Ayub Q. , Banerjee R. , Cerezo M. , Chen Y. , Fitzgerald T. W. , Louzada S. , Massaia A. , McCarthy S. , Ritchie G. R. , Xue Y. , Yang F. , Gibbs R. A. , Kovar C. , Kalra D. , Hale W. , Muzny D. , Reid J. G. , Wang J. , Dan X. , Guo X. , Li G. , Li Y. , Ye C. , Zheng X. , Altshuler D. M. , Flicek P. , Clarke L. , Zheng-Bradley X. , Bentley D. R. , Cox A. , Humphray S. , Kahn S. , Sudbrak R. , Albrecht M. W. , Lienhard M. , Larson D. , Craig D. W. , Izatt T. , Kurdoglu A. A. , Sherry S. T. , Xiao C. , Haussler D. , Abecasis G. R. , McVean G. A. , Durbin R. M. , Balasubramaniam S. , Keane T. M. , McCarthy S. , Stalker J. , Durbin R. M. , Balasubramaniam S. , Keane T. M. , McCarthy S. , Stalker J. , Chakravarti A. , Knoppers B. M. , Abecasis G. R. , Barnes K. C. , Beiswanger C. , Burchard E. G. , Bustamante C. D. , Cai H. , Cao H. , Durbin R. M. , Gerry N. P. , Gharani N. , Gibbs R. A. , Gignoux C. R. , Gravel S. , Henn B. , Jones D. , Jorde L. , Kaye J. S. , Keinan A. , Kent A. , Kerasidou A. , Li Y. , Mathias R. , McVean G. A. , Moreno-Estrada A. , Ossorio P. N. , Parker M. , Resch A. M. , Rotimi C. N. , Royal C. D. , Sandoval K. , Su Y. , Sudbrak R. , Tian Z. , Tishkoff S. , Toji L. H. , Tyler-Smith C. , Via M. , Wang Y. , Yang H. , Yang L. , Zhu J. , Bodmer W. , Bedoya G. , Ruiz-Linares A. , Cai Z. , Gao Y. , Chu J. , Peltonen L. , Garcia-Montero A. , Orfao A. , Dutil J. , Martinez-Cruzado J. C. , Oleksyk T. K. , Barnes K. C. , Mathias R. A. , Hennis A. , Watson H. , McKenzie C. , Qadri F. , LaRocque R. , Sabeti P. C. , Zhu J. , Deng X. , Sabeti P. C. , Asogun D. , Folarin O. , Happi C. , Omoniwa O. , Stremlau M. , Tariyal R. , Jallow M. , Joof F. S. , Corrah T. , Rockett K. , Kwiatkowski D. , Kooner J. , Hiên T. T. , Dunstan S. J. , Hang N. T. , Fonnie R. , Garry R. , Kanneh L. , Moses L. , Sabeti P. C. , Schieffelin J. , Grant D. S. , Gallo C. , Poletti G. , Saleheen D. , Rasheed A. , Saleheen D. , Rasheed A. , Brooks L. D. , Felsenfeld A. L. , McEwen J. E. , Vaydylevich Y. , Green E. D. , Duncanson A. , Dunn M. , Schloss J. A. , Wang J. , Yang H. , Auton A. , Brooks L. D. , Durbin R. M. , Garrison E. P. , Min Kang H. , Korbel J. O. , Marchini J. L. , McCarthy S. , McVean G. A. , Abecasis G. R. , Auton A. , Brooks L. D. , Durbin R. M. , Garrison E. P. , Min Kang H. , Korbel J. O. , Marchini J. L. , McCarthy S. , McVean G. A. , and Abecasis G. R. . A global reference for human genetic variation. Nature, 526 (7571 ):68–74, Oct 2015.26432245
35. Metsky H. C. , Matranga C. B. , Wohl S. , Schaffner S. F. , Freije C. A. , Winnicki S. M. , West K. , Qu J. , Baniecki M. L. , Gladden-Young A. , Lin A. E. , Tomkins-Tinch C. H. , Ye S. H. , Park D. J. , Luo C. Y. , Barnes K. G. , Shah R. R. , Chak B. , Barbosa-Lima G. , Delatorre E. , Vieira Y. R. , Paul L. M. , Tan A. L. , Barcellona C. M. , Porcelli M. C. , Vasquez C. , Cannons A. C. , Cone M. R. , Hogan K. N. , Kopp E. W. , Anzinger J. J. , Garcia K. F. , Parham L. A. , Ramírez R. M. G. , Montoya M. C. M. , Rojas D. P. , Brown C. M. , Hennigan S. , Sabina B. , Scotland S. , Gangavarapu K. , Grubaugh N. D. , Oliveira G. , Robles-Sikisaka R. , Rambaut A. , Gehrke L. , Smole S. , Halloran M. E. , Villar L. , Mattar S. , Lorenzana I. , Cerbino-Neto J. , Valim C. , Degrave W. , Bozza P. T. , Gnirke A. , Andersen K. G. , Isern S. , Michael S. F. , Bozza F. A. , Souza T. M. L. , Bosch I. , Yozwiak N. L. , MacInnis B. L. , and Sabeti P. C. . Zika virus evolution and spread in the Americas. Nature, 546 (7658 ):411–415, 06 2017.28538734
36. He J. and Deem M. W. . Low-dimensional clustering detects incipient dominant influenza strain clusters. Protein Eng Des Sel, 23 (12 ):935–946, Dec 2010.21036781
37. Ito K. , Igarashi M. , Miyazaki Y. , Murakami T. , Iida S. , Kida H. , and Takada A. . Gnarled-trunk evolutionary model of influenza A virus hemagglutinin. PLoS One, 6 (10 ):e25953, 2011.22028800
38. Kobak D. and Linderman G. C. . Initialization is critical for preserving global data structure in both t-SNE and UMAP. Nat Biotechnol, 39 (2 ):156–157, 02 2021.33526945
39. Diaz-Papkovich Alex , Anderson-Trocmé Luke , Ben-Eghan Chief , and Gravel Simon . Umap reveals cryptic population structure and phenotype heterogeneity in large genomic cohorts. PLoS Genet, Nov 2019.
40. Becht E. , McInnes L. , Healy J. , Dutertre C. A. , Kwok I. W. H. , Ng L. G. , Ginhoux F. , and Newell E. W. . Dimensionality reduction for visualizing single-cell data using UMAP. Nat Biotechnol, Dec 2018.
41. Kobak D. and Berens P. . The art of using t-SNE for single-cell transcriptomics. Nat Commun, 10 (1 ):5416, 11 2019.31780648
42. Chari T. and Pachter L. . The specious art of single-cell genomics. PLoS Comput Biol, 19 (8 ):e1011288, Aug 2023.37590228
43. Huddleston J. , Barnes J. R. , Rowe T. , Xu X. , Kondor R. , Wentworth D. E. , Whittaker L. , Ermetal B. , Daniels R. S. , McCauley J. W. , Fujisaki S. , Nakamura K. , Kishida N. , Watanabe S. , Hasegawa H. , Barr I. , Subbarao K. , Barrat-Charlaix P. , Neher R. A. , and Bedford T. . Integrating genotypes and phenotypes improves long-term forecasts of seasonal influenza A/H3N2 evolution. eLife, 9 :e60067, Sep 2020.32876050
44. Rambaut A. . Phylogenetic analysis of nCoV-2019 genomes. https://virological.org/t/phylodynamic-analysis-176-genomes-6-mar-2020/356, mar 2020.
45. Petrova Velislava N. and Russell Colin A. . The evolution of seasonal influenza viruses. Nature Reviews Microbiology, 16 (1 ):47–60, Jan 2018.29081496
46. Hay A. J. and McCauley J. W. . The WHO global influenza surveillance and response system (GISRS)-A future perspective. Influenza Other Respir Viruses, 12 (5 ):551–557, Sep 2018.29722140
47. Arita M. , Karsch-Mizrachi I. , and Cochrane G. . The international nucleotide sequence database collaboration. Nucleic Acids Res, 49 (D1 ):D121–D124, Jan 2021.33166387
48. Neher R. A. and Bedford T. . nextflu: real-time tracking of seasonal influenza virus evolution in humans. Bioinformatics, 31 (21 ):3546–3548, Nov 2015.26115986
49. Campello Ricardo JGB , Moulavi Davoud , Zimek Arthur , and Sander Jörg . Hierarchical density estimates for data clustering, visualization, and outlier detection. ACM Transactions on Knowledge Discovery from Data (TKDD), 10 (1 ):1–51, 2015.
50. Meilă Marina . Comparing clusterings by the variation of information. In Learning Theory and Kernel Machines: 16th Annual Conference on Learning Theory and 7th Kernel Workshop, COLT/Kernel 2003, Washington, DC, USA, August 24–27, 2003. Proceedings, pages 173–187. Springer, 2003.
51. Potter Barney I , Kondor Rebecca , Hadfield James , Huddleston John , Barnes John , Rowe Thomas , Guo Lizheng , Xu Xiyan , Neher Richard A , Bedford Trevor , and Wentworth David E . Evolution and rapid spread of a reassortant A(H3N2) virus that predominated the 2017–2018 influenza season. Virus Evolution, 5 (2 ), 12 2019. vez046.
52. Zhu Na , Zhang Dingyu , Wang Wenling , Li Xingwang , Yang Bo , Song Jingdong , Zhao Xiang , Huang Baoying , Shi Weifeng , Lu Roujian , Niu Peihua , Zhan Faxian , Ma Xuejun , Wang Dayan , Xu Wenbo , Wu Guizhen , Gao George F. , and Tan Wenjie . A novel coronavirus from patients with pneumonia in china, 2019. New England Journal of Medicine, 382 (8 ):727–733, 2020.31978945
53. Kistler K. E. , Huddleston J. , and Bedford T. . Rapid and parallel adaptive mutations in spike S1 drive clade success in SARS-CoV-2. Cell Host Microbe, 30 (4 ):545–555, Apr 2022.35364015
54. Focosi D. and Maggi F. . Recombination in coronaviruses, with a focus on SARS-CoV-2. Viruses, 14 (6 ), Jun 2022.
55. Turakhia Y. , Thornlow B. , Hinrichs A. , McBroome J. , Ayala N. , Ye C. , Smith K. , De Maio N. , Haussler D. , Lanfear R. , and Corbett-Detig R. . Pandemic-scale phylogenomics reveals the SARS-CoV-2 recombination landscape. Nature, 609 (7929 ):994–997, Sep 2022.35952714
56. Konings F. , Perkins M. D. , Kuhn J. H. , Pallen M. J. , Alm E. J. , Archer B. N. , Barakat A. , Bedford T. , Bhiman J. N. , Caly L. , Carter L. L. , Cullinane A. , de Oliveira T. , Druce J. , El Masry I. , Evans R. , Gao G. F. , Gorbalenya A. E. , Hamblion E. , Herring B. L. , Hodcroft E. , Holmes E. C. , Kakkar M. , Khare S. , Koopmans M. P. G. , Korber B. , Leite J. , MacCannell D. , Marklewitz M. , Maurer-Stroh S. , Rico J. A. M. , Munster V. J. , Neher R. , Munnink B. O. , Pavlin B. I. , Peiris M. , Poon L. , Pybus O. , Rambaut A. , Resende P. , Subissi L. , Thiel V. , Tong S. , van der Werf S. , von Gottberg A. , Ziebuhr J. , and Van Kerkhove M. D. . SARS-CoV-2 Variants of Interest and Concern naming scheme conducive for global discourse. Nat Microbiol, 6 (7 ):821–823, Jul 2021.34108654
57. Hodcroft E. B. , Hadfield J. , Neher R. A. , and Bedford T. . Year-letter genetic clade naming for SARS-CoV-2 on nextstrain.org. https://nextstrain.org/blog/2020-06-02-SARSCoV2-clade-naming, jun 2020.
58. Bedford T. , Hodcroft E. B. , and Neher R. A. Updated Nextstrain SARS-CoV-2 clade naming strategy. https://nextstrain.org/blog/2021-01-06-updated-SARS-CoV-2-clade-naming, jan 2021.
59. Roemer C. , Hodcroft E. B. , Neher R. A. , and Bedford T. . SARS-CoV-2 clade naming strategy for 2022. https://nextstrain.org/blog/2022-04-29-SARS-CoV-2-clade-naming-2022, apr 2022.
60. Rambaut A. , Lam T. T. , Max Carvalho L. , and Pybus O. G. . Exploring the temporal structure of heterochronous sequences using TempEst (formerly Path-O-Gen). Virus Evol, 2 (1 ):vew007, Jan 2016.
61. Yang Tynia , Liu Jinze , McMillan Leonard , and Wang Wei . A fast approximation to multidimensional scaling. In IEEE workshop on computation intensive methods for computer vision, 2006.
62. Delicado Pedro and Pachón-García Cristian . Multidimensional scaling for big data, 2024.
63. Yang Zhirong , Peltonen Jaakko , and Kaski Samuel . Scalable optimization of neighbor embedding for visualization. In Dasgupta Sanjoy and McAllester David , editors, Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pages 127–135, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR.
64. van der Maaten Laurens . Barnes-hut-sne, 2013.
65. van der Maaten Laurens . Accelerating t-sne using tree-based algorithms. Journal of Machine Learning Research, 15 (93 ):3221–3245, 2014.
66. Armstrong G. , Rahman G. , Martino C. , McDonald D. , Gonzalez A. , Mishne G. , and Knight R. . Applications and comparison of dimensionality reduction methods for microbiome data. Front Bioinform, 2 :821861, 2022.36304280
67. Pedregosa F. , Varoquaux G. , Gramfort A. , Michel V. , Thirion B. , Grisel O. , Blondel M. , Prettenhofer P. , Weiss R. , Dubourg V. , Vanderplas J. , Passos A. , Cournapeau D. , Brucher M. , Perrot M. , and Duchesnay E. . Scikit-learn: machine learning in Python. Journal of Machine Learning Research, 12 :2825–2830, 2011.
68. Schloss P. D. , Westcott S. L. , Ryabin T. , Hall J. R. , Hartmann M. , Hollister E. B. , Lesniewski R. A. , Oakley B. B. , Parks D. H. , Robinson C. J. , Sahl J. W. , Stres B. , Thallinger G. G. , Van Horn D. J. , and Weber C. F. . Introducing mothur: open-source, platform-independent, community-supported software for describing and comparing microbial communities. Appl Environ Microbiol, 75 (23 ):7537–7541, Dec 2009.19801464
69. Schloss P. D. . Reintroducing mothur: 10 Years Later. Appl Environ Microbiol, 86 (2 ), Jan 2020.
70. Bolyen E. , Rideout J. R. , Dillon M. R. , Bokulich N. A. , Abnet C. C. , Al-Ghalith G. A. , Alexander H. , Alm E. J. , Arumugam M. , Asnicar F. , Bai Y. , Bisanz J. E. , Bittinger K. , Brejnrod A. , Brislawn C. J. , Brown C. T. , Callahan B. J. , guez A. M. , Chase J. , Cope E. K. , Da Silva R. , Diener C. , Dorrestein P. C. , Douglas G. M. , Durall D. M. , Duvallet C. , Edwardson C. F. , Ernst M. , Estaki M. , Fouquier J. , Gauglitz J. M. , Gibbons S. M. , Gibson D. L. , Gonzalez A. , Gorlick K. , Guo J. , Hillmann B. , Holmes S. , Holste H. , Huttenhower C. , Huttley G. A. , Janssen S. , Jarmusch A. K. , Jiang L. , Kaehler B. D. , Kang K. B. , Keefe C. R. , Keim P. , Kelley S. T. , Knights D. , Koester I. , Kosciolek T. , Kreps J. , Langille M. G. I. , Lee J. , Ley R. , Liu Y. X. , Loftfield E. , Lozupone C. , Maher M. , Marotz C. , Martin B. D. , McDonald D. , McIver L. J. , Melnik A. V. , Metcalf J. L. , Morgan S. C. , Morton J. T. , Naimey A. T. , Navas-Molina J. A. , Nothias L. F. , Orchanian S. B. , Pearson T. , Peoples S. L. , Petras D. , Preuss M. L. , Pruesse E. , Rasmussen L. B. , Rivers A. , Robeson M. S. , Rosenthal P. , Segata N. , Shaffer M. , Shiffer A. , Sinha R. , Song S. J. , Spear J. R. , Swafford A. D. , Thompson L. R. , Torres P. J. , Trinh P. , Tripathi A. , Turnbaugh P. J. , Ul-Hasan S. , van der Hooft J. J. J. , Vargas F. , zquez Baeza Y. , Vogtmann E. , von Hippel M. , Walters W. , Wan Y. , Wang M. , Warren J. , Weber K. C. , Williamson C. H. D. , Willis A. D. , Xu Z. Z. , Zaneveld J. R. , Zhang Y. , Zhu Q. , Knight R. , and Caporaso J. G. . Reproducible, interactive, scalable and extensible microbiome data science using QIIME 2. Nat Biotechnol, 37 (8 ):852–857, Aug 2019.31341288
71. McMurdie P. J. and Holmes S. . phyloseq: an R package for reproducible interactive analysis and graphics of microbiome census data. PLoS One, 8 (4 ):e61217, 2013.23630581
72. Lees J. A. , Harris S. R. , Tonkin-Hill G. , Gladstone R. A. , Lo S. W. , Weiser J. N. , Corander J. , Bentley S. D. , and Croucher N. J. . Fast and flexible bacterial genomic epidemiology with PopPUNK. Genome Res, 29 (2 ):304–316, Feb 2019.30679308
73. Nguyen Thao-Quyen , Hutter Carl , Markin Alexey , Thomas Megan , Lantz Kristina , Killian Mary Lea , Janzen Garrett M. , Vijendran Sriram , Wagle Sanket , Inderski Blake , Magstadt Drew R. , Li Ganwu , Diel Diego G. , Frye Elisha Anna , Dimitrov Kiril M. , Swinford Amy K. , Thompson Alexis C. , Snevik Kevin R. , Suarez David L. , Spackman Erica , Lakin Steven M. , Ahola Sara C. , Johnson Kammy R. , Baker Amy L. , Robbe-Austerman Suelee , Torchetti Mia Kim , and Anderson Tavis K. . Emergence and interstate spread of highly pathogenic avian influenza a(h5n1) in dairy cattle. bioRxiv, 2024.
74. Hadfield J. , Megill C. , Bell S. M. , Huddleston J. , Potter B. , Callender C. , Sagulenko P. , Bedford T. , and Neher R. A. . Nextstrain: real-time tracking of pathogen evolution. Bioinformatics, page bty407, May 2018.
75. Kupperman M. D. , Leitner T. , and Ke R. . A deep learning approach to real-time HIV outbreak detection using genetic data. PLoS Comput Biol, 18 (10 ):e1010598, Oct 2022.36240224
76. Stormo Gary D . Maximally efficient modeling of DNA sequence motifs at all levels of complexity. Genetics, 187 (4 ):1219–1224, February 2011.21300846
77. Jacobs Robert A. . Increased rates of convergence through learning rate adaptation. Neural Networks, 1 (4 ):295–307, 1988.
78. Belkina A. C. , Ciccolella C. O. , Anno R. , Halpert R. , Spidlen J. , and Snyder-Cappione J. E. . Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets. Nat Commun, 10 (1 ):5415, Nov 2019.31780669
79. Jariani Abbas , Warth Christopher , Deforche Koen , Libin Pieter , Drummond Alexei J , Rambaut Andrew , Matsen Frederick A IV , and Theys Kristof . SANTA-SIM: simulating viral sequence evolution dynamics under selection and recombination. Virus Evolution, 5 (1 ), March 2019.
80. Carabelli Alessandro M. , Peacock Thomas P. , Thorne Lucy G. , Harvey William T. , Hughes Joseph , de Silva Thushan I. , Peacock Sharon J. , Barclay Wendy S. , de Silva Thushan I. , Towers Greg J. , Robertson David L. , and COVID-19 Genomics UK Consortium. SARS-CoV-2 variant biology: immune escape, transmission and fitness. Nature Reviews Microbiology, 2023.
81. Hyndman R.J. and Athanasopoulos G. . Forecasting: principles and practice. OTexts, Melbourne, Australia, 3rd edition edition, 2021. Accessed on March 21, 2023.
82. Katoh Kazutaka , Misawa Kazuharu , Kuma Kei-ichi , and Miyata Takashi . MAFFT: a novel method for rapid multiple sequence alignment based on fast Fourier transform. Nucleic Acids Research, 30 (14 ):3059–3066, 07 2002.12136088
83. Katoh K. and Standley D. M. . MAFFT multiple sequence alignment software version 7: improvements in performance and usability. Mol Biol Evol, 30 (4 ):772–780, Apr 2013.23329690
84. Huddleston J. , Hadfield J. , Sibley T. R. , Lee J. , Fay K. , Ilcisin M. , Harkins E. , Bedford T. , Neher R. A. , and Hodcroft E. B. . Augur: a bioinformatics toolkit for phylogenetic analyses of human pathogens. J Open Source Softw, 6 (57 ), 2021.
85. Nguyen Lam-Tung , Schmidt Heiko A. , von Haeseler Arndt , and Minh Bui Quang . IQ-TREE: A fast and effective stochastic algorithm for estimating maximum-likelihood phylogenies. Molecular Biology and Evolution, 32 (1 ):268–274, 11 2014.25371430
86. Mölder F , Jablonski KP , Letcher B , Hall MB , Tomkins-Tinch CH , Sochat V , Forster J , Lee S , Twardziok SO , Kanitz A , Wilm A , Holtgrewe M , Rahmann S , Nahnsen S , and Köster J . Sustainable data analysis with snakemake [version 2; peer review: 2 approved]. F1000Research, 10 (33 ), 2021.
