Abstract
Human immunodeficiency virus (HIV)-1 evolves within individual hosts to escape adaptive immune responses while maintaining its capacity for replication. Coevolution between HIV-1 and the immune system generates extraordinary viral genetic diversity. In some individuals, this process also results in the development of broadly neutralizing antibodies (bnAbs) that can neutralize many viral variants, a key focus of HIV-1 vaccine design. However, a general understanding of the forces that shape virus-immune coevolution within and across hosts remains incomplete. Here we performed a quantitative study of HIV-1 evolution in humans and rhesus macaques, including individuals who developed bnAbs. We observed strong selection early in infection for mutations affecting HIV-1 envelope glycosylation and escape from autologous strain-specific antibodies, followed by weaker selection for bnAb resistance. The inferred fitness effects of HIV-1 mutations in humans and macaques were remarkably similar. Moreover, we observed a striking pattern of rapid HIV-1 fitness gains that precedes the development of bnAbs. Our work highlights strong parallels between infection in rhesus macaques and humans, and it reveals a quantitative evolutionary signature of bnAb development.
Introduction
Human immunodeficiency virus (HIV-1) rapidly mutates and proliferates in infected individuals. The immune system is a major driver of HIV-1 evolution, as the virus accumulates mutations to escape from host T cells and antibodies1–3. Due to the chronic nature of HIV-1 infection, coupled with high rates of mutation and replication, HIV-1 genetic diversity within and between infected individuals is incredibly high. Genetic diversity challenges vaccine development, as vaccine-elicited antibodies must be able to neutralize many strains of the virus to protect against infection4.
However, there exist rare antibodies that are capable of neutralizing a broad range of HIV-1 viruses. These broadly neutralizing antibodies (bnAbs) have therefore been the subject of intense research5–8. Eliciting bnAbs through vaccination remains a major goal of HIV-1 vaccine design. However, the development of exceptionally broad antibody responses is rare, and such antibodies typically develop only after several years of infection9–12.
Recent years have yielded important insights into the coevolutionary process between HIV-1 and antibodies that sometimes leads to the development of bnAbs. Clinical studies have collected serial samples of HIV-1 sequences from a few individuals who developed bnAbs and characterized the resulting antibodies, their developmental stages, and binding sites13–15. The contributions of HIV-1 and its coevolution to bnAb development are complex16,17. High viral loads and viral diversity have been positively associated with bnAb development16–18. However, superinfection, which can vastly increase HIV-1 diversity, is not always associated with bnAb development19, and it does not appear to broaden antibody responses in the absence of other factors17.
Here, we sought to characterize the evolutionary dynamics of HIV-1 that accompany the development of bnAbs in clinical data. In particular, we inferred the landscape of selective pressures that shape the evolution of HIV-1 within hosts, reflecting the effects of the immune environment. We first analyzed data from two individuals who developed bnAbs within a few years after HIV-1 infection13,14. In both individuals, HIV-1 mutations inferred to be the most beneficial were observed early in infection. In general, mutations that provided resistance to autologous strain-specific antibodies were inferred to be more strongly selected than ones that escaped from bnAbs. We also observed clusters of beneficial mutations along the HIV-1 genome, which were associated with envelope protein (Env) structure.
To confirm the generality of these patterns in a broader sample, we studied recent data from rhesus macaques (RMs) infected with simian-human immunodeficiency viruses (SHIV) that incorporated HIV-1 Env proteins derived from the two individuals above20. This study also compared patterns of Env evolution in HIV-1 and SHIV in response to host immunity. We observed striking parallels between the inferred fitness effects of Env mutations in RMs and humans, suggesting highly similar selective pressures on the virus despite different host species and differences in individual immune responses. Furthermore, we found that RMs that developed broad, potent antibody responses could clearly be distinguished from those with narrowly focused responses using the evolutionary dynamics of the virus. Specifically, the virus population in individuals who developed greater breadth was distinguished by larger and more rapid gains in fitness than in other individuals. Collectively, these results show high similarity between SHIV evolutionary dynamics in RMs and HIV-1 in humans, and that viral fitness gain is associated with antibody breadth.
Results
Quantifying HIV-1 evolutionary dynamics
We studied HIV-1 evolution accompanying the development of bnAbs in two donors, CH505 and CH848, enrolled in the Center for HIV/AIDS Vaccine Immunology 001 acute infection cohort21. CH505 developed the CD4 binding site-targeting bnAb CH103, which was first detectable 14 weeks after HIV-1 infection13. CH103 maturation was found to be associated with viral escape from another antibody lineage, CH235, that ultimately developed significant breadth22,23. CH848 developed a bnAb, DH270, targeting a glycosylated site near the third variable loop (V3) of Env14. Similar to the bnAb development process in CH505, escape from “cooperating” DH272 and DH475 lineage antibodies was observed to contribute to the maturation of DH270 (ref.14).
To quantify HIV-1 evolutionary dynamics, we sought to infer a fitness model that best explained the changes in the genetic composition of the viral population observed in each individual over time. In recent years, a wide variety of approaches have been developed to infer the fitness effects of mutations from temporal genetic data24–43. The vast majority of these methods focus on a single locus at a time, ignoring correlations between genetic variants at different loci. While the recombination rate of HIV-1 is high44,45, the virus also evolves under strong selection, which can lead to interference between clones with different beneficial mutations39,46–50. Thus, we applied MPL, an inference method that systematically accounts for genetic correlations39–43, to estimate the fitness effects of HIV-1 mutations.
Model overview
Here, we provide a brief overview of the key steps in the MPL approach to inferring selection. Further details are available in Methods and in prior work39–43. First, we assume that the effect on viral fitness of each individual mutation at each site is quantified by a selection coefficient , with positive coefficients denoting mutations that are beneficial for the virus and denoting deleterious ones. We further assume that the cumulative fitness effects of mutations are additive, such that the overall fitness of a viral sequence is given by the sum of the selection coefficients for all the mutations that it bears. That is,
(1) |
where represents the viral sequence, with equal to one if genotype has allele at site and zero otherwise. is the length of the genetic sequence, and represents the number of genetic states (i.e., for nucleotide sequences and 21 for amino acids, including gaps/deletions).
We assume that viral replication is stochastic, where viruses with higher fitness are more likely to spread infection to new cells than ones with lower fitness. Let us write the number of viruses of each genotype in the population at time as , where is the total number of possible genotypes. In our model, the probability of obtaining a new distribution of genotypes in the next generation is multinomial,
(2) |
with the total population size. The probabilities are influenced by fitness, as well as mutation, recombination, and the current frequency of each genotype (see Methods). Essentially, viruses that are fitter than the current population average are more likely to increase in frequency, while ones that are less fit are likely to decline. Mutations and recombination introduce genetic variation into the population. The population size determines the relative stochasticity of the dynamics, with smaller populations having more random fluctuations than larger ones.
Following this model, we can then quantify the probability of any evolutionary history of the viral population (i.e., the distribution of viral genotypes over time) as a function of the selection coefficients (Methods). Assuming that the population size is large and the selection coefficients are small (such that ), we can write an analytical expression for the selection coefficients that best fit the viral dynamics observed in data39,40:
(3) |
Here is the covariance matrix of allele frequencies (i.e., the linkage disequilibrium matrix) integrated over time, and is a regularization parameter. The terms and represent the net change in allele frequency and the total expected change in allele frequency due to spontaneous mutations alone, respectively (see Methods for details). Intuitively, this expression says that net allele frequency changes that cannot be explained by mutations are likely due to selection, either on that specific allele or the associated genetic background, which is quantified by . Alleles that have large, rapid changes in frequency are more likely to be under strong selection than those with smaller, slower frequency changes. Beyond HIV-1 (ref.39), this approach has been successfully applied to study the evolution of SARS-CoV-2 (ref.43) and experimental evolution in bacteria51,52.
Broad patterns of HIV-1 selection
As described above, we used MPL39,40 to infer the selection coefficients that best fit the viral dynamics observed in data from CH505 and CH848. While the great majority of HIV-1 mutations were inferred to be neutral , a few mutations substantially increase viral fitness (Fig. 1). Strongly beneficial mutations occurred in clusters along the genome and preferentially appeared in specific regions of Env (Fig. 2).
Fig. 1. Beneficial mutations occur in clusters along the genome.
Inferred fitness effects of HIV-1 mutations in CH505 (A) and CH848 (B). The position along the radius of each circle specifies the strength of selection: mutations plotted closer to the center are more deleterious, while those closer to the edge are more beneficial. For both individuals, clusters of beneficial mutations are observed in the variable loops of Env, some of which are associated with antibody escape. For CH848, a group of strongly beneficial mutations also appears in Nef.
Fig. 2. Visualization of the effects of HIV-1 mutations in CH505 on the Env trimer.
A, Side view of the Env trimer53, with detail views of selection for mutations in the CH103 binding site (B), CH235 binding site (C), and sites associated with escape from autologous strain-specific antibodies (D). E, Top view of the trimer, with detail views of variable loops (F-I) and the CD4 binding site (J). Generally, beneficial mutations appear more frequently near exposed regions at the top of the Env trimer, and deleterious mutations appear in more protected regions. Mutations near the V1/V2 apex can affect the binding and neutralization of antibodies targeting the CD4 binding site22.
To quantify patterns of selection in Env, we examined the top 2% of mutations inferred to be the most beneficial in CH505 and CH848. The fractions of nonsynonymous mutations within these subsets were 97% and 92% for CH505 and CH848, respectively. These fractions are significantly higher than chance expectations ( and , Fisher’s exact test; Methods), supporting the model’s ability to accurately infer fitness effects in this data. For CH505, we found 10.9-fold more strongly beneficial mutations in the first variable loop (V1) than expected by chance . This is consistent with the presence of V1 mutations conferring resistance to autologous strain-specific antibodies22. Mutations in V4, a region targeted by CD8+ T cells22, were also 10.0-fold enriched in this subset . For CH848, mutations in V1, V3, and V5 were enriched by factors of 14.2, 6.3, and 19.1 among the top 2% most beneficial mutations (, and ). Mutations in these regions were shown to play a role in resistance to DH270 and DH475 lineage antibodies14. To test whether our results might be biased by overall sequence variability, we examined the relationship between our inferred selection coefficients and entropy, a common measure of sequence variability. Overall, we found only a modest correlation between selection and entropy, suggesting that the signs of selection that we observe are not due to increased sequence variability alone (Supplementary Fig. 1).
Reversions and mutations affecting N-linked glycosylation motifs were also likely to be beneficial. We define reversions as mutations where the transmitted/founder (TF) amino acid changes to match the subtype consensus sequence at the same site. Among the top 2% most beneficial mutations, reversions were enriched by factors of 19.9 and 17.8 for CH505 and CH848 viruses, respectively ( and ), consistent with past work finding strong selection for reversions39,54. For CH848, this group also includes several strongly selected mutations observed in Nef (Fig. 1B), a protein that plays multiple roles during HIV-1 infection55,56. Mutations affecting N-linked glycosylation motifs (i.e., by adding, removing, or shifting a glycosylation motif) were enriched by factors of and . Changes in glycosylation patterns contributed to antibody escape for both CH505 and CH848 (refs.14,22).
Selection for antibody escape
To quantify levels of selection for antibody escape, we computed selection coefficients for mutations that were observed to contribute to resistance to bnAbs as well as bnAb precursors and autologous strain-specific antibodies (Supplementary Tables 1–3)22,57–60. We mapped the inferred selection coefficients to the Env protein structure13, highlighting the binding sites for bnAbs and resistance mutations for strain-specific antibodies, as well as important parts of Env (Fig. 2, Supplementary Fig. 2). We also analyzed when these resistance mutations were first observed in each individual.
Overall, we observed stronger selection for escape from autologous strain-specific antibodies and/or changes in glycosylation during the first six months of infection (Supplementary Tables 4–5). This was then followed by more modest selection for escape from bnAb lineages (Fig. 3). For CH505, mutations that conferred resistance to the intermediate-breadth CH235 lineage22 were less beneficial than top mutations escaping from strain-specific antibodies (Fig. 3A). In turn, resistance mutations for the broader CH103 lineage were less beneficial than CH235 resistance mutations (Fig. 3A). CH848 is similar, with some highly beneficial mutations affecting glycosylation observed early in infection (Fig. 3B). While a few mutations affecting DH270 appear strongly selected, these mutations appeared long before the DH270 lineage was detected (around 3.5 years after infection14). Thus, these mutations may have initially been selected for other reasons.
Fig. 3. Trajectories and inferred selection coefficients for immune escape mutations and mutations affecting Env glycosylation.
A, For CH505, early, strongly selected mutations include ones that escape from CD8+ T cells and autologous strain-specific antibodies (ssAbs). More moderately selected bnAb resistance mutations tend to arise later. Note that mutations that affect bnAb resistance can appear in the viral population before bnAbs are generated. Open circles and error bars reflect the mean and standard deviation of inferred selection coefficients in each category. B, For CH848, mutations affecting glycosylation dominate the early phase of evolution, followed later by mutations affecting bnAb resistance. For easier visualization, frequency trajectories are shown with exponential smoothing with a time scale of days. See Supplementary Fig. 3 for a detailed view of mutation frequency trajectories by mutation type without smoothing.
Consistent patterns of selection in SHIV evolution
Simian-human immunodeficiency viruses (SHIVs) have numerous applications in HIV/AIDS research61,62. Recently, Roark and collaborators studied SHIV-antibody coevolution in rhesus macaques (RMs), which they compared with patterns of HIV-1 evolution20. Two of the SHIV constructs in this study included envelope sequences derived from CH505 and CH848 transmitted/founder (TF) viruses. There, it was found that 2 out of 10 RMs inoculated with SHIV.CH505 and 2 out of 6 RMs inoculated with SHIV.CH848 developed antibodies with substantial breadth.
To understand whether the patterns of HIV-1 selection observed in CH505 and CH848 are repeatable, and to search for viral factors that distinguish between individuals who develop bnAbs and those who do not, we analyzed SHIV.CH505 and SHIV.CH848 evolution in RMs20. To prevent spurious inferences, we first omitted data from RMs with <3 sampling times or <4 sequences in total (Methods). After processing, we examined evolutionary data from 7 RMs inoculated with SHIV.CH505 and 6 RMs inoculated with SHIV.CH848 (Supplementary Tables 6–7). We then computed selection coefficients for SHIV mutations within each RM. Reasoning that selective pressures across SHIV.CH505 and SHIV.CH848 viruses are likely to be similar, we also inferred two sets of joint selection coefficients that best describe SHIV evolution in SHIV.CH505- and SHIV.CH848-inoculated RMs, respectively (Methods).
As before, we examined the top 2% of SHIV.CH505 and SHIV.CH848 mutations that we inferred to be the most beneficial for the virus. Overall, we found consistent selection for reversions (17.9- and 14.2-fold enrichment, and for SHIV.CH505 and SHIV.CH848, respectively), with slightly attenuated enrichment in mutations that affect N-linked glycosylation (2.7- and 4.2-fold enrichment, and ). However, there is a small subset of mutations that shift glycosylation sites by simultaneously disrupting one N-linked glycosylation motif and completing another, where highly beneficial mutations occur far more often than expected by chance (158.3- and 191.1-fold enrichment, and for CH505 and SHIV.CH505, respectively; 118.7-fold and 90.4-fold enrichment, and for CH848 and SHIV.CH848).
Intuitively, one may expect that strongly beneficial SHIV mutations are more likely to be observed in samples from multiple RMs. However, we found that the number of RMs in which a mutation is observed is only weakly associated with the fitness effect of the mutation (Supplementary Fig. 4). While substantially deleterious SHIV mutations are rarely observed across multiple RMs, neutral and nearly neutral mutations are common. Thus, in this data set, it is not generally true that SHIV mutations observed in multiple hosts must significantly increase viral fitness.
We observed some differences between HIV-1 and SHIV in the precise locations of the most beneficial Env mutations. For example, mutations in V4 are highly enriched in CH505 due to a CD8+ T cell epitope in this region, but not in SHIV.CH505 (2.7-fold enrichment, ). For SHIV.CH848, beneficial mutations are modestly enriched in V1 and V5 (4.7- and 4.2-fold, and ), as in CH848, but not for V3 (0.9-fold enrichment, ).
Despite some differences in the top mutations, patterns of selection over time in SHIV were very similar to those found for HIV-1. As before, highly beneficial mutations, including ones affecting glycosylation, tended to appear earlier in infection. This was followed by modestly beneficial mutations at later times, including ones involved in resistance to bnAbs in the RMs who developed antibodies with significant breadth (examples in Fig. 4).
Fig. 4. Example trajectories and selection coefficients for SHIV mutations that affect viral load, bnAb recognition, or glycosylation.
A, In RM5695, infected with SHIV.CH505, mutations known to increase viral load60 and ones affecting glycosylation were rapidly selected. Mutations affecting resistance to broad antibodies20 arose later under moderate selection. Open circles and error bars reflect the mean and standard deviation of inferred selection coefficients in each category. B, Slower but qualitatively similar evolutionary patterns were observed in RM6163, infected with SHIV.CH848. For easier visualization, frequency trajectories are shown with exponential smoothing with a time scale of days.
Detection of SHIV mutations that increase viral load
A major goal of nonhuman primate studies with SHIV is to faithfully recover important aspects of HIV-1 infection in humans. However, due to the divergence of simian immunodeficiency viruses and HIV-1, SHIVs are not always well-adapted to replication in RMs60. To combat this problem, a recent study identified six SHIV.CH505 mutations that increase viral load (VL) in RMs60. These mutations result in viral kinetics that better mimic HIV-1 infection in humans.
Our analysis readily identifies the SHIV.CH505 mutations shown to increase VL. Five out of the top six SHIV.CH505 mutations with the largest average selection coefficients are associated with increased VL (Supplementary Table 8). The final mutation identified by Bauer et al., N130D, is ranked tenth. We also find highly beneficial mutations in SHIV.CH848 that are distinct from those in SHIV.CH505 (Supplementary Table 9). Highly-ranked mutations identified here may be good experimental targets for future studies aimed at increasing SHIV.CH848 replication in vivo.
Fitness agreement between HIV-1 and SHIV
Next, we explored the similarity in the overall viral fitness landscapes inferred for HIV-1 and SHIV, beyond just the top mutations. First, we computed the fitness of each SHIV sequence using the joint SHIV.CH505 and SHIV.CH848 selection coefficients inferred from RM data. Then, we computed fitness values for SHIV sequences using selection coefficients inferred from HIV-1 evolution in CH505 and CH848.
We observed a remarkable agreement between SHIV fitness values computed from these two sources (Fig. 5). For both SHIV.CH505 and SHIV.CH848, the correlation between viral fitness estimated using data from humans (i.e., CH505 and CH848) and RMs is strongly and linearly correlated (Pearson’s and 0.95, ). This implies that evolutionary pressures on the envelope protein SHIV-infected RMs are highly similar to those on HIV-1 in humans with the same TF Env. In fact, this relationship holds even beyond the SHIV sequences observed during infection. Fitness estimates for sequences with randomly shuffled sets of mutations are also strongly correlated (Supplementary Fig. 5). In contrast, the inferred fitness landscapes of CH505 and CH848, which share few mutations in common, are poorly correlated (Supplementary Fig. 6). This suggests that the similarities between viral fitness values in humans and RMs are not artifacts of the model, but rather stem from similarities in underlying evolutionary drivers.
Fig. 5. Inferred fitness landscapes in HIV-1 and SHIV are highly similar.
A, Fitness of SHIV.CH505 sequences relative to the TF sequence across 7 RMs, including 2 that developed bnAbs, 1 that developed tier 2 nAbs that lacked a critical mutation for breadth, and 4 that did not develop broad antibody responses, evaluated using fitness effects of mutations using data from CH505 and using RM data. The fitness values are strongly correlated, indicating the similarity of Env fitness landscapes inferred using HIV-1 or SHIV data. Values are normalized such that the fitness gain of the TF sequence is zero. B, Fitness values for SHIV.CH848 sequences also show strong agreement between CH848 and SHIV.CH848 landscapes.
Evolutionary dynamics forecast antibody breadth
Given the similarity of HIV-1 and SHIV evolution, we sought to identify evolutionary features that distinguish between hosts who develop broad antibody responses and those who do not. Figure 5 shows that SHIV sequences from hosts with bnAbs often reach higher fitness values than those in hosts with only narrow-spectrum antibodies. We hypothesized that stronger selective pressures on the virus might drive viral diversification, stimulating the development of antibody breadth. Past studies have associated higher viral loads with bnAb development and observed viral diversification around the time of bnAb emergence13,16,17. Computational studies and experiments have also shown that sequential exposure to diverse antigens can induce cross-reactive antibodies63–65.
To further quantify SHIV evolutionary dynamics, we computed the average fitness gain of viral populations in each RM over time. We observed a striking difference in SHIV fitness gains between RMs that developed broad antibody responses and those that did not (Fig. 6). In particular, SHIV fitness increased rapidly before the development of antibody breadth. SHIV fitness gains in RM5695, which developed exceptionally broad and potent antibodies20, were especially rapid and dramatic. These fitness differences were not attributable to bnAb resistance mutations, which were only moderately selected and generally appeared after bnAbs developed.
Fig. 6. Rapid SHIV fitness gains precede the development of broadly neutralizing antibodies.
For both SHIV.CH505 (A) and SHIV.CH848 (B), viral fitness gains over time display distinct patterns in RM hosts that developed bnAbs versus those that did not. Notably, the differences in SHIV fitness gains between hosts with and without broad antibody responses appear before the development of antibody breadth, and cannot be attributed to selection for bnAb resistance mutations. RM6072 is an unusual case, exhibiting antibody development that was highly similar to CH505. Although RM6072 developed tier 2 nAbs, they lacked key mutations critical for breadth20. Points and error bars show the mean and standard deviation of fitness gains across SHIV samples in each RM at each time.
One outlier in this pattern is RM6072, infected with SHIV.CH505. Antibody development in RM6072 followed a path that was remarkably similar to CH505, including a lineage of antibodies, DH650, directed toward the CD4 binding site of Env20. However, resistance to the DH650 lineage is conferred by a strongly selected mutation that adds a glycan at site 234 (T234N, with an inferred selection coefficient of 4.5%). Broadly neutralizing antibodies similar to DH650 are able to accommodate this glycan due to shorter and/or more flexible light chains20,66, but DH650 cannot. Antibody evolution in RM6072 thus proceeded along a clear pathway toward bnAb development, but lacked critical mutations to achieve breadth.
Next, we quantified how different types of SHIV mutations contributed to viral fitness gains over time. We examined contributions from VL-enhancing mutations60, antibody escape mutations20,60, other mutations affecting Env glycosylation, and reversions to subtype consensus. We found increased fitness gains across all types of mutations in RMs that developed broad antibody responses, compared to those that did not (Supplementary Fig. 7). VL-enhancing mutations, known antibody resistance mutations, and reversions typically made the largest contributions to viral fitness.
Robustness of inferred selection to changes in the fitness model and finite sampling
In the analysis above, we used a simple model where the net fitness effect of multiple mutations is simply equal to the sum of their individual effects. Recently, methods have also been developed that can infer epistatic fitness effects from data, which include pairwise interactions between mutations40,41. We reanalyzed these data to examine how inferred fitness changes when epistasis is included in the model, using the approach of Shimagaki and Barton41 (Methods). Overall, the inferred epistatic interactions were modest (Supplementary Fig. 8). In CH505, we found that the CD4 binding site, V1 (especially sites 136–146 in HXB2 numbering) and V5 regions were modestly but significantly enriched in the most beneficial (top 1%) of epistatic interactions (2.5-, 1.2- and 1.8-fold enrichment with and , respectively). Epistatic interactions between N280S/V281A and E275K/V281G, which confer resistance to CH235 (ref.22), ranked in the top 6.5% and 13.0% of interactions. In CH848, we found 1.3-, 1.5-, and 2.3-fold enrichment in strong beneficial epistatic interactions in the CD4 binding site, V4, and V5 regions, respectively ( and ).
To compare the typical fitness effects of individual mutations in the model with epistasis to those in the additive model, we computed effective selection coefficients for the epistatic model. For each mutant allele at each site , we computed the average difference in fitness between sequences in the data set with the mutation and hypothetical sequences that are the same as those in the data, except with the mutant allele reverted to the TF one. In this way, the effective selection coefficient measures the typical effect of each mutation in the data set, while also accounting for epistatic interactions with the sequence background. We found that the effective selection coefficients were highly correlated with the selection coefficients from the additive model (Supplementary Fig. 9). We also found strong agreement between the additive and epistatic model fitness values for each sequence in both HIV-1 and SHIV data (Supplementary Fig. 10).
Finite sampling of sequence data could also affect our analyses. To further test the robustness of our results, we inferred selection coefficients using bootstrap resampling, where we resample sequences from the original ensemble, maintaining the same number of sequences for each time point and subject. The selection coefficients from the bootstrap samples are consistent with the original data (see Supplementary Fig. 11 for a typical example), with Pearson’s values of around 0.85 for HIV-1 data sets and 0.95 for SHIV data sets, respectively.
Discussion
HIV-1 evolves under complex selective pressures within individual hosts, balancing replicative efficiency with immune evasion. Here, we quantitatively studied the evolution of HIV-1 and SHIV (featuring HIV-1-derived Env sequences) across multiple hosts, including some who developed broad antibody responses against the virus. Our study highlighted how different classes of mutations (e.g., mutations affecting T cell escape or Env glycosylation) affect fitness in vivo. In both HIV-1 and SHIV, we found strong selection for reversions to subtype consensus and some mutations that affected N-linked glycosylation motifs or resistance to autologous strain-specific antibodies. Few CD8+ T cell epitopes were identified in this data set, but the T cell escape mutations that we did observe were highly beneficial for the virus. Consistent with past work studying VRC26 escape in CAP256, we observed more modest selection for bnAb resistance mutations39.
Overall, we found striking similarities between Env evolution in humans and RMs. Importantly, these parallels extend beyond the observation of repetitive mutations: the number of hosts in which a mutation was observed was only weakly associated with the mutation’s fitness effect (Supplementary Fig. 4). Our inferred Env fitness values in humans and RMs were highly correlated, indicating that the functional and immune constraints shaping Env evolution in HIV-1 and SHIV infection are very similar. Our findings therefore reinforce SHIV as a model system that closely mirrors HIV-1 infection.
We discovered that the speed of SHIV fitness gains was clearly higher in RMs that developed broad antibody responses than in those with narrow-spectrum antibodies. Fitness gains in the viral population preceded the development of bnAbs, and they were not driven by bnAb resistance mutations. This suggests that rapid changes in the viral population are a cause rather than a consequence of antibody breadth. While our sample is limited to 13 RMs and two founder Env sequences, we find a clear separation between RMs that did or did not develop antibody breadth. Thus, the dynamics of viral fitness may serve as a quantitative signal associated with bnAb development.
The induction of bnAbs is a major goal of HIV-1 vaccine design8. Both computational63,65,67,68 and experimental64,69,70 studies, as well as observations from individuals who developed bnAbs13,14,22, suggest that the co-evolution of antibodies and HIV-1 is important to stimulate broad antibody responses. Our results could thus inform HIV-1 vaccine research. While precise immune responses and viral escape pathways can differ across individuals, the quantitative similarity in viral evolutionary constraints across humans and RMs suggests that SHIV data can provide a valuable source of information about Env variants that contribute to bnAb development, especially when detailed longitudinal data from humans does not exist. While the concept of sequential immunization is well-established10,63,64,71,72, our findings also suggest a possible new design principle. Immunogens could be engineered to reproduce the dynamics of viral population change that are associated with rapid fitness gains, which we found to precede the emergence of bnAbs. This emphasis on broader, population-level dynamics could complement investigations of the molecular details of virus and antibody coevolution.
As noted above, Roark and collaborators also performed a detailed comparison of HIV-1 and SHIV evolution with the same TF Env sequences20. One of their main conclusions was that most Env mutations were selected for escape from CD8+ T cells or antibodies. We found that many antibody resistance mutations identified by Roark et al. are also positively selected in our analysis. Mutations at sites 166 and 169 were shown to confer resistance to a V2 apex bnAb, RHA1, isolated in RM5695 (ref.20). We inferred moderately positive selection coefficients of 0.49% and 0.43% for R166K and R169K, respectively. The same mutations were found in RM6070, which also developed V2 apex bnAbs, with a selective advantage of 1.7% (Supplementary Table 10). Mutations conferring resistance to autologous strain-specific nAbs were identified at multiple sites by Roark and colleagues: 130, 234, 279, 281, 302, 330, and 334 in RM6072, which developed antibody responses targeting the CD4 binding site (DH650) and V3 (DH647 and DH648) regions. Mutations Y330H and N334S, which confer resistance to V3 autologous nAbs, were detected in all RMs infected with SHIV.CH505, with selective advantages of 3.0% and 4.6% in RM6072, and 1.7% and 3.2% on average across RMs, respectively. Overall, we found that mutations conferring resistance to autologous strain-specific antibodies were common and more strongly selected than bnAb resistance mutations (Supplementary Tables 10–11).
We note that our conclusions about the phenotypic effects of HIV-1 mutations under selection are constrained by the available data. While we observed strong selection for strain-specific antibody resistance mutations, these results could also be affected by the effects of these mutations on viral replication independent of immune escape. In particular, many ssAb resistance mutations are also reversions to the subtype consensus sequence, which have often been observed to improve viral fitness39,54. For example, N334S, K302N, and T234N are all reversions. These are among the most beneficial mutations inferred for SHIV.CH505 (Supplementary Table 8). In future work, it would be interesting to attempt to fully separate the fitness effects of mutations due to antibody escape and intrinsic replication (cf.42). Although we have systematically compiled information about mutations known to affect antibody resistance and glycosylation, this data is necessarily incomplete. Some of the strongly beneficial mutations with unknown functional effects that we observe could therefore reflect escape from unmapped immune responses.
There are additional methodological and technical limitations that should be considered in the interpretation of our results. Most notably, we assume that the viral fitness landscape is static in time. While we do not expect selection for effective replication (“intrinsic” fitness) to change substantially over time, pressure for immune escape could vary along with the immune responses that drive them. In prior work, we have found that constant selection coefficients typically reflect the average fitness effect of a mutation when its true contribution to fitness is time-varying42,43. This may not adequately description mutational effects that undergo large or rapid shifts in time. Future work should also examine temporal patterns in selection for individual mutations.
While we found a strong relationship between viral fitness dynamics and the emergence of bnAbs, it may not be true that the former stimulates the latter. For example, bnAbs may have been present within each host before they were experimentally detected. Rapid viral fitness gains within hosts that developed broad antibody responses could then have been driven by undetected bnAb lineages. However, we did not find strong selection for known bnAb resistance mutations, and in at least one case (RM5695), rapid fitness gains (roughly 2 weeks after infection) substantially preceded bnAb detection (16 weeks). Still, given the limited size of the data set that we studied, it is unclear the extent to which our results will transfer to larger and broader data sets.
Among other analyses, Roark et al. used LASSIE73 to identify putative sites under selection (Supplementary Tables 12–13). This method works by identifying sites where non-TF alleles reach high frequencies. We found modest overlap between the sites under selection as identified by LASSIE and the mutations that we inferred to be the most strongly selected. For SHIV.CH505, the E640D mutation at site 640 identified by LASSIE is ranked second among 664 mutations in our analysis, and mutations at the remaining 5 sites identified by LASSIE are all within the top 20% of mutations that we infer to be the most beneficial. For SHIV.CH848, the R363Q mutation that is ranked first in our analysis appears at one of the 17 sites identified by LASSIE. Some mutations at the majority of these 17 sites fall within the top 20% most beneficial mutations in our analysis, but some are outliers. In particular, we infer both S291A/P to be somewhat deleterious, with S291P ranked 810th out of 863 mutations.
Beyond the specific context of HIV-1 and bnAb development, our study also provides insight into viral evolution across hosts and related host species. Parallels between the HIV-1 and SHIV fitness landscapes that we infer suggest that there are strong constraints on viral protein function, with few paths to significantly higher fitness. This is consistent with the ideas of methods that use sequence statistics across multiple individuals and hosts to predict the fitness effects of mutations74–80. However, the relationship between the number of individuals in which a mutation was observed and its inferred fitness effect was fairly weak. This suggests that mutational biases and/or sequence space accessibility may play significant roles in short-term viral evolution, even for highly mutable viruses such as HIV-1 and SHIV. As described above, high frequency mutations were also not necessarily highly beneficial. While the recombination rate of HIV-1 is high, correlations between mutations persist, making it difficult to unambiguously interpret frequency changes as signs of selection39.
Our results also point to strong similarities in the immune environment across closely related host species, including preferential targeting of specific parts of viral surface proteins by antibodies. This is supported by the enrichment of beneficial mutations within variable loop regions and at sites that affect the glycosylation of Env. However, despite these constraints, there may still exist a large number of neutral or nearly-neutral mutational paths that remain unexplored.
Overall, our findings support the potential predictability of viral evolution, at least over short time scales. While there are contingencies in evolution – for example, disparate host immune responses or strong epistatic constraints between mutations – these are not so pervasive that they completely change the effective viral fitness landscape or paths of evolution across hosts, given the same founder virus sequence. Similar observations of parallel evolution in HIV-1 have been reported in monozygotic twins infected by the same founder virus81, common patterns of immune escape across hosts78,82 and drug resistance83–85, and long-term experimental evolution86. Our results thus contribute to a growing body of research identifying predictable features in viral evolution. Understanding such features could ultimately inform practical applications such as anticipating the emergence of drug resistance or designing vaccines to limit likely pathways of escape.
Methods
Data
We retrieved HIV-1 sequences from CH505 (703010505) and CH848 (703010848) from the HIV sequence database at Los Alamos National Laboratory (LANL)87. The rhesus macaque (RM) SHIV sequences88 were obtained from GenBank89. We then co-aligned SHIV.CH505 and SHIV.CH848 sequences with CH505 and CH848 HIV-1 sequences, respectively, using HIValign90.
CH505.
CH505 developed two distinct lineages of CD4 binding site (CD4bs) bnAbs, CH103 and CH235 (refs.91,92). CH103 antibodies were detectable by 14 weeks after infection and further developed neutralization breadth between 41–92 weeks93. IC50 values of CH235 against the TF virus were 6.5-fold lower than those of CH103 (ref.91). CH235 lineages could neutralize autologous viruses at week 30. However, viruses that acquired mutations at loop D from 53–100 weeks escaped CH235 neutralization91. Although the neutralization breadth of CH235 was not as broad as that of CH103, this lineage played a critical role; escaping mutations from the CH235 lineage stimulated the development of another lineage with broader neutralization depth91. Mutations in loop D enabled the virus to escape from CH235, but these sequential mutations in loop D, such as E275K, N279D, and V281S, favorably bound to the mature CH103 and continuously increased the binding affinity between mature CH103 and loop D91. Gradually, CH103 matured, developing a broader neutralization breadth.
CH848.
CH848 developed DH270, a bnAb that targets the glycosylated site adjacent to the third variable loop (V3). DH270 was detectable three and a half years after infection94. Similar to the CH505 case, the CH848 case exhibited cooperative virus and antibody coevolution. The earlier antibody lineages, DH272 and DH475, could neutralize autologous viruses until week 51 and weeks 15–39, respectively. The virus escaped from DH272 and DH475 afterward, with escape mutations including a longer V1V2 loop. DH270 then developed, with potent and broad neutralization breadth94.
Rhesus macaques.
Chimeric viruses, SHIVs, were constructed by bearing the transmitted/founder (TF) Env from three HIV-1 patients, including CH505 and CH848 (ref.88). In some RMs, SHIV developed similar patterns of mutations to those observed in human donors. In our analysis, we considered RMs with SHIV sequences sampled at at least three points in time. This yielded a set of 7 RMs and 6 RMs for SHIV.CH505 and SHIV.CH848, respectively. The Supplementary Tables 6–7 summarize the number of sequences, time points, and the development of bnAbs for each individual in the SHIV cases as well as HIV-1 cases.
Sequence data processing
Data quality control.
To focus our analysis on functional sequences, we removed sequences with more than 200 gaps. To eliminate rare insertions or possible alignment errors, we also masked sites where gaps occurred in more than 95% of sequences within each individual host. To limit errors in virus frequencies, we only considered data from time points with four or more sequences.
Identifying reversions.
A mutation is classified as a reversion if the new (mutant) nucleotide matches with the nucleotide at the same site in the HIV-1 consensus sequence from the same subtype. Here, all viruses were subtype C, so we compared with the subtype C consensus sequence as defined by LANL.
Identifying mutations that affect N-linked glycosylation.
To identify mutations that affect glycosylation, we search for Env mutations that modify the N-linked glycosylation motif Asn-X-Ser/Thr, where X can be any amino acid except proline. We identified three types of mutations affecting glycosylation: “shields,” which complete a previously incomplete glycosylation motif, “holes,” which disrupt an existing glycosylation motif, and “shifts,” which simultaneously complete one N-linked glycosylation motif and disrupt another.
Enrichment analysis.
We used fold enrichment values and Fisher’s exact test to quantify the excess or lack of mutations. For a particular subset of mutations (for example, the top beneficial mutations), we first computed the number of mutations in that subset that do and do not have a particular property (for example, nonsynonymous mutations in the CD4 binding site). We then computed the total number of mutations that do and do not have the property ( and , respectively) across the entire data set. The fold enrichment value is then . The term quantifies the fraction of mutations having specific properties across the selected mutations, while the denominator is the fraction of all mutations that have the property. Fisher’s exact values are computed from the table with in the first row, and in the second row95.
Inferring fitness effects of mutations
In this section, we describe the inference framework used to infer the fitness effects of mutations (selection coefficients) from temporal genetic data.
Evolutionary model.
We model viral evolution with the Wright-Fisher (WF) model, a fundamental model in population genetics96. In this model, a population of individuals (viruses or infected cells, in our case) undergo discrete rounds of selection, mutation, and replication. Each genotype is represented by a sequence , where is equal to one if genotype has allele at locus and zero otherwise. Here and represent the length of the genetic sequence (number of loci) and the number of statues at each locus (i.e., number of nucleotides or amino acids), respectively. We use and for DNA and amino acid sequences, respectively, in real HIV-1 and SHIV data.
We define the fitness of an individual with genetic sequence by
(4) |
Here is a selection coefficient, quantifying the fitness effect of allele at locus . If , the allele is beneficial (enhancing replication), and if it is deleterious (impairing replication). By convention, we set the selection coefficient for TF alleles to zero. Individuals with higher fitness values are more likely to replicate than those with lower fitness.
Mutations introduce new genotypes and drive the evolution of the population. Let us define as the probability of mutation from genotype to genotype per replication cycle. Below, we will express this probability in terms of a mutation rate per site per round of replication. In the analysis of real data, we use asymmetric mutation rates estimated from intra-host HIV-1 data97.
Given these parameters, the WF model describes the dynamics of the frequencies of different genotypes in the population over time. We write the frequency of genotype at time as . Given that the frequency of genotypes in the population at time is , where is the total number of genotypes, the probability distribution of the frequency of genotypes in the next generation is
(5) |
Here is
(6) |
where is the fitness value of genotype , based on Eq. (4). Across generations, the probability of an entire evolutionary trajectory, defined by the vector of genotype frequencies at each time, is then
(7) |
Diffusion limit.
When the population size is sufficiently large, the evolution of the population defined in Eq. (5) can be reasonably well approximated by a Gaussian process, which is a solution to the Fokker-Planck (forward Kolmogorov) equation98,99.
(8) |
with the drift vector and the diffusion matrix such that
(9) |
and
(10) |
Dimensional reduction.
While the WF process in genotype space provides valuable insights into genotype dynamics, the mathematical expressions are sometimes challenging to interpret. To obtain more intuitive expressions, we can project the dynamics onto the space of allele frequencies,
(11) |
One can then find the drift vector and diffusion matrix in allele frequency space,
(12) |
and
(13) |
Here, is the frequency of individuals with alleles and at loci and , and is net expected change in frequency of allele at due to mutations, which is given explicitly in Eq. (17) below. The first term in Eq. (??) gives the expected change in the frequency due to the direct fitness effect , while the second term represents the contributions due to indirect or genetic linkage effects with other alleles .
Maximum path likelihood.
Following recent work100, we employed Bayes’ rule to find the selection coefficients that best explain the data. These are the coefficients that maximize the posterior distribution
(14) |
which is a product of the likelihood of the evolutionary trajectory observed in the data Eq. (7) (under the diffusion limit Eq. (8)) and a prior distribution for the selection coefficients. We chose a Gaussian prior distribution with zero mean and a covariance of , where is the identity matrix. This prior distribution penalizes the inferences of large selection coefficients when they are not well-supported by the data. The maximum a posteriori selection coefficients are then given by100
(15) |
Here , and represent the covariance matrix, vector of frequency changes, and mutational flux integrated over the evolution
(16) |
The mutational flux is characterized by the rates of mutations from nucleotides to , denoted by , which are determined from longitudinal HIV-1 populations in untreated patients97. The change of the nucleotide frequency at locus due to mutation is given by:
(17) |
Inverting the integrated covariance matrix effectively reveals the underlying direct allele interactions and resolves the genetic linkage effects.
The shift in the covariance diagonal in Eq. (15), arising from the selection coefficients’ posterior distribution, reflects the uncertainty in the selection distribution. We used for all data sets, but the model is robust to variation in the strength of regularization100. For the mutation rates, we incorporated the transition probabilities among arbitrary DNA nucleotides, estimated from whole-genome deep sequencing of multiple untreated HIV-1 patients followed for 5 to 8 years post-infection97.
Integration of covariance.
When the time interval of the observation is sufficiently short, the trajectory of the allele frequency would be continuous and ideally it would be a smooth curve101. To accurately estimate the covariance matrix, we employ piecewise linear interpolation for frequencies. Let , then the linear interpolation for a frequency vector can be expressed as:
(18) |
which yields,
For simplicity in notation, we omitted nucleotide indices. The explicit expression of the integrated covariance is given in refs.100,101.
Joint RM model
In addition to fitness models derived from SHIV data for individual RMs, we inferred a joint model under the assumption that virus evolution within each individual RM with the same TF virus is governed by a similar fitness landscape. This method improves inference accuracy from the WF process and deep mutational scanning data102–104. The joint path likelihood for allele frequency trajectories across RMs with the same TF virus is then
(19) |
Here, is the allele frequency of the -th individual and is the number of replicate individuals (i.e., the number of RMs sharing the same TF virus). The initial state is for all for individuals with the same TF virus. The solution of the joint path likelihood is given by
(20) |
Here, the overbar denotes the sum over the replicate RMs.
We emphasize that the joint selection coefficients in Eq. (20) are not the same as selection coefficients that are simply averaged across RMs with the same TF virus. The joint selection coefficients are more robust, as they are guided by the level of evidence within each individual rather than naive averaging.
Geometrical interpretation of the fitness comparison
The Pearson values we utilized to compare the fitness landscapes denoted as and can be expressed by the following simple relation:
(21) |
Here, and represent the covariance and variance values estimated from the samples being compared, . is the covariance matrix defined between arbitrary loci. The last equation can be interpreted as an angle between two vectors, and , with a metric matrix ; if , the Pearson value clearly becomes 1. However, the “similarity” also depends on how these vectors are projected by ; eigenmodes associated with larger variance of statistics will be more emphasized. The last expression readily implies an interpretation for the case of shuffled sequences; shuffling the sequences equates to diluting the covariance between loci, resulting in the metric matrix becoming a diagonal matrix. Removing the off-diagonal elements corresponds to lifting the constraints on the fitness landscape.
Epistatic fitness model
We consider the following pairwise epistatic fitness function, which depends on epistatic interactions across all possible pairs of loci:
(22) |
Our goal is to obtain the epistatic interactions as well as the selection coefficients from temporal genetic sequences.
The basic logic for inferring these fitness parameters parallels the additive case. The only practical difference is that epistatic interactions can influence the dynamics of additive and pairwise mutation frequencies. Under the diffusion limit, we obtain the following drift terms, which align with Eq. (12) in the additive model,
(23) |
and diffusion matrices,
(24) |
Here, and represent the expected frequency changes due to mutations for additive and pairwise terms, while represents the changes in pairwise frequencies due to recombination. These explicit expressions indicate that the remains the same as in the additive fitness case; therefore, Eq. (17) holds. The pairwise term is given as
(25) |
and the is expressed as
(26) |
where denotes the recombination rate. In this study, we set . More detailed derivations are provided in the previous studies102,103.
The technical challenge of the epistasis inference is that the diffusion matrix involves third- and fourth-order interactions, and the number of matrix elements scales as , while the computational cost to invert it scales as . Recently, a more efficient computational method was proposed, reducing both the necessary memory usage and computational times by (ref.103). The essential idea involves factorizing the higher-order covariance matrix using the rectangular matrix such that , where scales as while . This method resolves the linear equation without obtaining an explicit expression of and avoids any computations involving more than operations103.
Gauge transformation
Since constant shifts in fitness parameters do not affect relative fitness, it is always possible to transform fitness values without changing the resulting genotype distribution. For example, in the additive model, individual selection coefficients can be shifted as
where is the allele of a chosen reference genotype (e.g., the TF sequence) at site . This transformation preserves relative fitness but it ensures that , making inferred selection coefficients more interpretable.
In statistical physics, such transformations, where model parameters are changed without altering the underlying probability distribution—are referred to as gauge transformations105,106. Similar transformations have been employed in recent studies to improve interpretability and sparsity in epistatic models107. We can apply an analogous transformation to epistatic interactions:
(27) |
Under this transformation, any selection coefficients or epistatic terms involving TF alleles are zero by definition, while relative fitness remains unchanged.
Regularization
Regularization is used to reduce the effective number of parameters in the fitness model. In our analysis, we applied strong regularization to any selection or epistatic coefficients involving TF alleles, ensuring they are effectively zero under the gauge transformation. Following prior work108, we penalized epistatic interactions between loci more than 50 nucleotides apart on the reference sequence with the same strong regularization. We also used the same moderate regularization value of for all other epistatic terms, and used for selection coefficients, consistent with the additive model.
Supplementary Material
ACKNOWLEDGEMENTS
The work of K.S.S. and J.P.B. reported in this publication was supported by the National Institute of General Medical Sciences of the National Institutes of Health under Award Number R35GM138233.
Code availability
Sets of processed data and computer code used in this study are available in the GitHub repository of https://github.com/bartonlab/paper-HIV-coevolution. This repository contains source files that process HIV-1 and SHIV sequences, infer selection coefficients, and identify and characterize mutations. The included Jupyter notebooks can be run to reproduce the figures presented here. The original HIV-1 sequences can be retrieved from the LANL database (https://www.hiv.lanl.gov/content/index), and SHIV sequences can be found at GenBank (https://www.ncbi.nlm.nih.gov/).
References
- 1.Wei X. et al. Antibody neutralization and escape by hiv-1. Nature 422, 307–312 (2003). [DOI] [PubMed] [Google Scholar]
- 2.Allen T. M. et al. Selective escape from cd8+ t-cell responses represents a major driving force of human immunodeficiency virus type 1 (hiv-1) sequence diversity and reveals constraints on hiv-1 evolution. Journal of virology 79, 13239–13249 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Li B. et al. Rapid reversion of sequence polymorphisms dominates early human immunodeficiency virus type 1 evolution. Journal of virology 81, 193–201 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Altfeld M. & Allen T. M. Hitting hiv where it hurts: an alternative approach to hiv vaccine design. TRENDS in Immunology 27, 504–510 (2006). [DOI] [PubMed] [Google Scholar]
- 5.Kwong P. D., Mascola J. R. & Nabel G. J. Broadly neutralizing antibodies and the search for an hiv-1 vaccine: the end of the beginning. Nature Reviews Immunology 13, 693–701 (2013). [DOI] [PubMed] [Google Scholar]
- 6.Burton D. R. & Hangartner L. Broadly neutralizing antibodies to hiv and their role in vaccine design. Annual review of immunology 34, 635–659 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Sok D. & Burton D. R. Recent progress in broadly neutralizing antibodies to hiv. Nature immunology 19, 1179–1188 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Haynes B. F. et al. Strategies for hiv-1 vaccines that induce broadly neutralizing antibodies. Nature Reviews Immunology 23, 142–158 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Doria-Rose N. A. et al. Breadth of human immunodeficiency virus-specific neutralizing activity in sera: clustering analysis and association with clinical variables. Journal of virology 84, 1631–1636 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Haynes B. F., Kelsoe G., Harrison S. C. & Kepler T. B. B-cell–lineage immunogen design in vaccine development with hiv-1 as a case study. Nature biotechnology 30, 423–433 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Haynes B. F. et al. Hiv-host interactions: implications for vaccine design. Cell host & microbe 19, 292–303 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Hraber P. et al. Prevalence of broadly neutralizing antibody responses during chronic hiv-1 infection. AIDS (London, England) 28, 163 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Liao H.-X. et al. Co-evolution of a broadly neutralizing hiv-1 antibody and founder virus. Nature 496, 469–476 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Bonsignori M. et al. Staged induction of hiv-1 glycan–dependent broadly neutralizing antibodies. Science translational medicine 9, eaai7514 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Doria-Rose N. A. et al. Developmental pathway for potent v1v2-directed hiv-neutralizing antibodies. Nature 509, 55–62 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Moore P. L., Williamson C. & Morris L. Virological features associated with the development of broadly neutralizing antibodies to hiv-1. Trends in microbiology 23, 204–211 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Landais E. & Moore P. L. Development of broadly neutralizing antibodies in hiv-1 infected elite neutralizers. Retrovirology 15, 1–14 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Gray E. S. et al. The neutralization breadth of hiv-1 develops incrementally over four years and is associated with cd4+ t cell decline and high viral load during acute infection. Journal of virology 85, 4828–4840 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Cornelissen M. et al. The neutralizing antibody response in an individual with triple hiv-1 infection remains directed at the first infecting subtype. AIDS research and human retroviruses 32, 1135–1142 (2016). [DOI] [PubMed] [Google Scholar]
- 20.Roark R. S. et al. Recapitulation of hiv-1 env-antibody coevolution in macaques leading to neutralization breadth. Science 371, eabd2638 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Tomaras G. D. et al. Initial b-cell responses to transmitted human immunodeficiency virus type 1: virion-binding immunoglobulin m (igm) and igg antibodies followed by plasma anti-gp41 antibodies with ineffective control of initial viremia. Journal of virology 82, 12449–12463 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Gao F. et al. Cooperation of b cell lineages in induction of hiv-1-broadly neutralizing antibodies. Cell 158, 481–491 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Bonsignori M. et al. Maturation pathway from germline to broad hiv-1 neutralizer of a cd4-mimic antibody. Cell 165, 449–463 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Bollback J. P., York T. L. & Nielsen R. Estimation of 2 n es from temporal allele frequency data. Genetics 179, 497–502 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Illingworth C. J. & Mustonen V. Distinguishing driver and passenger mutations in an evolutionary history categorized by interference. Genetics 189, 989–1000 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Illingworth C. J. & Mustonen V. A method to infer positive selection from marker dynamics in an asexual population. Bioinformatics 28, 831–837 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Malaspinas A.-S., Malaspinas O., Evans S. N. & Slatkin M. Estimating allele age and selection coefficient from time-serial data. Genetics 192, 599–607 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Mathieson I. & McVean G. Estimating selection coefficients in spatially structured populations from time series data of allele frequencies. Genetics 193, 973–984 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Lacerda M. & Seoighe C. Population genetics inference for longitudinally-sampled mutants under strong selection. Genetics 198, 1237–1250 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Feder A. F., Kryazhimskiy S. & Plotkin J. B. Identifying signatures of selection in genetic time series. Genetics 196, 509–522 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Steinrücken M., Bhaskar A. & Song Y. S. A novel spectral method for inferring general diploid selection from time series genetic data. The annals of applied statistics 8, 2203 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Foll M. et al. Influenza virus drug resistance: a time-sampled population genetics perspective. PLoS genetics 10, e1004185 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Terhorst J., Schlötterer C. & Song Y. S. Multi-locus analysis of genomic time series data from experimental evolution. PLoS genetics 11, e1005069 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Schraiber J. G., Evans S. N. & Slatkin M. Bayesian inference of natural selection from allele frequency time series. Genetics 203, 493–511 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Tataru P., Simonsen M., Bataillon T. & Hobolth A. Statistical inference in the wright–fisher model using allele frequency data. Systematic biology 66, e30–e46 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Paris C., Servin B. & Boitard S. Inference of selection from genetic time series using various parametric approximations to the wright-fisher model. G3: Genes, Genomes, Genetics 9, 4073–4086 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Mathieson I. & Terhorst J. Direct detection of natural selection in bronze age britain. Genome Research 32, 2057–2067 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.He Z., Dai X., Lyu W., Beaumont M. & Yu F. Estimating temporally variable selection intensity from ancient dna data. Molecular Biology and Evolution 40, msad008 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Sohail M. S., Louie R. H., McKay M. R. & Barton J. P. Mpl resolves genetic linkage in fitness inference from complex evolutionary histories. Nature biotechnology 39, 472–479 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Sohail M. S., Louie R. H., Hong Z., Barton J. P. & McKay M. R. Inferring epistasis from genetic time-series data. Molecular biology and evolution 39, msac199 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Shimagaki K. S. & Barton J. P. Efficient epistasis inference via higher-order covariance matrix factorization. Genetics iyaf118 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Gao Y. & Barton J. P. A binary trait model reveals the fitness effects of hiv-1 escape from t cell responses. Proceedings of the National Academy of Sciences 122, e2405379122 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Lee B. et al. Inferring effects of mutations on sars-cov-2 transmission from genomic surveillance data. Nature Communications 16, 441 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Neher R. A. & Leitner T. Recombination rate and selection strength in hiv intra-patient evolution. PLoS computational biology 6, e1000660 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Romero E. V. & Feder A. F. Elevated hiv viral load is associated with higher recombination rate in vivo. Molecular Biology and Evolution 41, msad260 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Rouzine I. M. & Weinberger L. S. The quantitative theory of within-host viral evolution. Journal of Statistical Mechanics: Theory and Experiment 2013, P01009 (2013). [Google Scholar]
- 47.Pandit A. & de Boer R. J. Reliable reconstruction of hiv-1 whole genome haplotypes reveals clonal interference and genetic hitchhiking among immune escape variants. Retrovirology 11, 56 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Garcia V. & Regoes R. R. The effect of interference on the cd8+ t cell escape rates in hiv. Frontiers in Immunology 5, 661 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Garcia V., Feldman M. W. & Regoes R. R. Investigating the consequences of interference between multiple cd8+ t cell escape mutations in early hiv infection. PLoS computational biology 12, e1004721 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Williams K.-A. & Pennings P. Drug resistance evolution in hiv in the late 1990s: hard sweeps, soft sweeps, clonal interference and the accumulation of drug resistance mutations. G3: Genes, Genomes, Genetics 10, 1213–1223 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Li Y. & Barton J. P. Estimating linkage disequilibrium and selection from allele frequency trajectories. Genetics 223, iyac189 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Li Y. & Barton J. P. Correlated allele frequency changes reveal clonal structure and selection in temporal genetic data. Molecular Biology and Evolution 41, msae060 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Jardine J. G. et al. Minimally mutated hiv-1 broadly neutralizing antibodies to guide reductionist vaccine design. PLoS pathogens 12, e1005815 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Zanini F. et al. Population genomics of intrapatient hiv-1 evolution. Elife 4, e11282 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Das S. R. & Jameel S. Biology of the hiv nef protein. Indian J Med Res 121, 315–32 (2005). [PubMed] [Google Scholar]
- 56.Barton J. P. et al. Modelling and in vitro testing of the hiv-1 nef fitness landscape. Virus evolution 5, vez029 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.McCurley N. P. et al. Hiv transmitted/founder vaccines elicit autologous tier 2 neutralizing antibodies for the cd4 binding site. PLoS One 12, e0177863 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Kong R. et al. Antibody lineages with vaccine-induced antigen-binding hotspots develop broad hiv neutralization. Cell 178, 567–584 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Saunders K. O. et al. Stabilized hiv-1 envelope immunization induces neutralizing antibodies to the cd4bs and protects macaques against mucosal infection. Science translational medicine 14, eabo5598 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Bauer A. et al. Adaptation of a transmitted/founder simian-human immunodeficiency virus for enhanced replication in rhesus macaques. PLoS Pathogens 19, e1011059 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61.Hatziioannou T. & Evans D. T. Animal models for hiv/aids research. Nature Reviews Microbiology 10, 852–867 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Li H. et al. Envelope residue 375 substitutions in simian–human immunodeficiency viruses enhance cd4 binding and replication in rhesus macaques. Proceedings of the National Academy of Sciences 113, E3413–E3422 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Wang S. et al. Manipulating the selection forces during affinity maturation to generate cross-reactive hiv antibodies. Cell 160, 785–797 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64.Escolano A. et al. Sequential immunization elicits broadly neutralizing anti-hiv-1 antibodies in ig knockin mice. Cell 166, 1445–1458 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65.Sprenger K. G., Louveau J. E., Murugan P. M. & Chakraborty A. K. Optimizing immunization protocols to elicit broadly neutralizing antibodies. Proceedings of the National Academy of Sciences 117, 20077–20087 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66.Zhou T. et al. Multidonor analysis reveals structural elements, genetic determinants, and maturation pathway for hiv-1 neutralization by vrc01-class antibodies. Immunity 39, 245–258 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67.Shaffer J. S., Moore P. L., Kardar M. & Chakraborty A. K. Optimal immunization cocktails can promote induction of broadly neutralizing abs against highly mutable pathogens. Proceedings of the National Academy of Sciences 113, E7039–E7048 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Nourmohammad A., Otwinowski J. & Plotkin J. B. Host-pathogen coevolution and the emergence of broadly neutralizing antibodies in chronic infections. PLoS genetics 12, e1006171 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Dosenovic P. et al. Immunization for hiv-1 broadly neutralizing antibodies in human ig knockin mice. Cell 161, 1505–1515 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 70.Williams W. B. et al. Vaccine induction of heterologous hiv-1 neutralizing antibody b cell lineages in humans. medRxiv 2023–03 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Pancera M. et al. Crystal structure of pg16 and chimeric dissection with somatically related pg9: structure-function analysis of two quaternary-specific antibodies that effectively neutralize hiv-1. Journal of virology 84, 8098–8110 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Klein F. et al. Antibodies in hiv-1 vaccine development and therapy. Science 341, 1199–1204 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 73.Hraber P. et al. Longitudinal antigenic sequences and sites from intra-host evolution (lassie) identifies immune-selected hiv variants. Viruses 7, 5443–5475 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 74.Ferguson A. L. et al. Translating hiv sequences into quantitative fitness landscapes predicts viral vulnerabilities for rational immunogen design. Immunity 38, 606–617 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 75.Mann J. K. et al. The fitness landscape of hiv-1 gag: advanced modeling approaches and validation of model predictions by in vitro testing. PLoS computational biology 10, e1003776 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 76.Łuksza M. & Lässig M. A predictive fitness model for influenza. Nature 507, 57–61 (2014). [DOI] [PubMed] [Google Scholar]
- 77.Lässig M., Mustonen V. & Walczak A. M. Predicting evolution. Nature ecology & evolution 1, 0077 (2017). [DOI] [PubMed] [Google Scholar]
- 78.Barton J. P. et al. Relative rate and location of intra-host hiv evolution to evade cellular immunity are predictable. Nature communications 7, 11660 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 79.Louie R. H., Kaczorowski K. J., Barton J. P., Chakraborty A. K. & McKay M. R. Fitness landscape of the human immunodeficiency virus envelope protein that is targeted by antibodies. Proceedings of the National Academy of Sciences 115, E564–E573 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 80.Hie B., Zhong E. D., Berger B. & Bryson B. Learning the language of viral evolution and escape. Science 371, 284–288 (2021). [DOI] [PubMed] [Google Scholar]
- 81.Draenert R. et al. Constraints on hiv-1 evolution and immunodominance revealed in monozygotic adult twins infected with the same virus. The Journal of experimental medicine 203, 529–539 (2006). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 82.Choisy M., Woelk C. H., Guégan J.-F. & Robertson D. L. Comparative study of adaptive molecular evolution in different human immunodeficiency virus groups and subtypes. Journal of virology 78, 1962–1970 (2004). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 83.Wensing A. M. et al. 2017 update of the drug resistance mutations in hiv-1. Topics in antiviral medicine 24, 132 (2016). [PMC free article] [PubMed] [Google Scholar]
- 84.Feder A. F. et al. More effective drugs lead to harder selective sweeps in the evolution of drug resistance in hiv-1. Elife 5, e10670 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 85.Feder A. F., Harper K. N., Brumme C. J. & Pennings P. S. Understanding patterns of hiv multi-drug resistance through models of temporal and spatial drug heterogeneity. Elife 10, e69032 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 86.Bons E., Leemann C., Metzner K. J. & Regoes R. R. Long-term experimental evolution of hiv-1 reveals effects of environment and mutational history. PLoS Biology 18, e3001010 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 87.Los Alamos National Laboratory. Hiv sequence database (2023). URL https://www.hiv.lanl.gov. Accessed: 703010505 and 703010848 inpatient code.
- 88.Roark R. S. et al. Recapitulation of hiv-1 env-antibody coevolution in macaques leading to neutralization breadth. Science 371, eabd2638 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 89.Benson D. A. et al. Genbank. Nucleic acids research 41, D36–D42 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 90.Los Alamos National Laboratory. Hivalign: Hiv sequence alignment tool (2023). URL https://www.hiv.lanl.gov/content/sequence/VIRALIGN/viralign.html.
- 91.Gao F. et al. Cooperation of b cell lineages in induction of hiv-1-broadly neutralizing antibodies. Cell 158, 481–491 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 92.Kreer C. et al. Probabilities of developing hiv-1 bnab sequence features in uninfected and chronically infected individuals. Nature Communications 14, 7137 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 93.Liao H.-X. et al. Co-evolution of a broadly neutralizing hiv-1 antibody and founder virus. Nature 496, 469–476 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 94.Bonsignori M. et al. Staged induction of hiv-1 glycan–dependent broadly neutralizing antibodies. Science translational medicine 9, eaai7514 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 95.Ruxton G. D. & Neuhäuser M. Good practice in testing for an association in contingency tables. Behavioral Ecology and Sociobiology 64, 1505–1513 (2010). [Google Scholar]
- 96.Ewens W. J. Mathematical population genetics: theoretical introduction, vol. 1 (Springer, 2004). [Google Scholar]
- 97.Zanini F. et al. Population genomics of intrapatient hiv-1 evolution. Elife 4, e11282 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 98.Kimura M. Diffusion models in population genetics. Journal of Applied Probability 1, 177–232 (1964). [Google Scholar]
- 99.Crow J. F. An introduction to population genetics theory (Scientific Publishers, 2017). [Google Scholar]
- 100.Sohail M. S., Louie R. H., McKay M. R. & Barton J. P. Mpl resolves genetic linkage in fitness inference from complex evolutionary histories. Nature biotechnology 39, 472–479 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 101.Shimagaki K. & Barton J. P. Bézier interpolation improves the inference of dynamical models from data. Physical Review E 107, 024116 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 102.Sohail M. S., Louie R. H., Hong Z., Barton J. P. & McKay M. R. Inferring epistasis from genetic time-series data. Molecular biology and evolution 39, msac199 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 103.Shimagaki K. S. & Barton J. P. Efficient epistasis inference via higher-order covariance matrix factorization. Genetics iyaf118 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 104.Hong Z., Shimagaki K. S. & Barton J. P. popdms infers mutation effects from deep mutational scanning data. Bioinformatics 40, btae499 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 105.Weigt M., White R. A., Szurmant H., Hoch J. A. & Hwa T. Identification of direct residue contacts in protein–protein interaction by message passing. Proceedings of the National Academy of Sciences 106, 67–72 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 106.Morcos F. et al. Direct-coupling analysis of residue coevolution captures native contacts across many protein families. Proceedings of the National Academy of Sciences 108, E1293–E1301 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 107.Rizzato F. et al. Inference of compressed potts graphical models. Physical Review E 101, 012309 (2020). [DOI] [PubMed] [Google Scholar]
- 108.Shimagaki K. S. & Barton J. P. Efficient epistasis inference via higher-order covariance matrix factorization. Genetics iyaf118 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 109.Bauer A. et al. Adaptation of a transmitted/founder simian-human immunodeficiency virus for enhanced replication in rhesus macaques. PLoS Pathogens 19, e1011059 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 110.Bricault C. A. et al. Hiv-1 neutralizing antibody signatures and application to epitope-targeted vaccine design. Cell host & microbe 25, 59–72 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 111.LaBranche C. C. et al. Neutralization-guided design of hiv-1 envelope trimers with high affinity for the unmutated common ancestor of ch235 lineage cd4bs broadly neutralizing antibodies. PLoS pathogens 15, e1008026 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 112.Saunders K. O. et al. Targeted selection of hiv-specific antibody mutations by engineering b cell maturation. Science 366, eaay7199 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 113.Henderson R. et al. Structural basis for breadth development in the hiv-1 v3-glycan targeting dh270 antibody clonal lineage. Nature Communications 14, 2782 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 114.Saunders K. O. et al. Stabilized hiv-1 envelope immunization induces neutralizing antibodies to the cd4bs and protects macaques against mucosal infection. Science translational medicine 14, eabo5598 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Sets of processed data and computer code used in this study are available in the GitHub repository of https://github.com/bartonlab/paper-HIV-coevolution. This repository contains source files that process HIV-1 and SHIV sequences, infer selection coefficients, and identify and characterize mutations. The included Jupyter notebooks can be run to reproduce the figures presented here. The original HIV-1 sequences can be retrieved from the LANL database (https://www.hiv.lanl.gov/content/index), and SHIV sequences can be found at GenBank (https://www.ncbi.nlm.nih.gov/).