Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.05.08.652803

Untangling the effects of within-host and between-host natural selection in viruses with applications to evolution of HIV-1 co-receptor usage

Abstract

The fitness of a pathogen can be characterised at multiple levels corresponding to different stages of its life cycle, including replication within target cells (replicative capacity), immune evasion, and the capacity to infect new hosts (transmissibility). Pathogens evolve towards greater fitness within hosts, which can potentially compromise transmissibility. Typically, epidemiological studies for measuring pathogen fitness compute a single selection coefficient for pathogen variants that encompasses all stages of the pathogen life cycle. To address this problem, we develop a population-genetic model and software for the inference of multi-level selection coefficients which represent relative within-host fitness and transmissibility. Our approach builds on population genetic models previously applied to macro-evolution, whereby speciation and extinction rates are state-dependent. We relate the state-dependence in speciation and extinction rates to competing within- and between-host selection. Evolution of beneficial phenotypes within hosts may occur rapidly (higher speciation), but reduce rates of dispersal between hosts (higher extinction). This new coalescent-based method also accounts for highly nonlinear-population dynamics and variable sampling through time making it suitable for epidemiological studies. We derive the equilibrium proportion of a variant with multi-level selection under mutation-selection balance and show how this can be used in combination with the coalescent to greatly increase accuracy and precision of estimated selection coefficients. We characterise the accuracy of this method using a variety of birth-death and coalescent simulations before analysing a real dataset of HIV-1 genetic sequences from a large population-based sample of 4056 people living with HIV in Zambia. We quantified the multi-level relative fitness underlying HIV-1 co-receptor switching. In accordance with previous observations, we estimate that the relative transmissibility of X4-tropic virus is 9%, while within-host switching to X4-tropism is approximately seven-fold higher than switching to R5-tropism, indicating a strong within-host and between-host tradeoff of co-receptor usage. Our methods are available in an open-source R package musseco, providing a general-purpose tool for inferring multi-level selection coefficients for epidemiological sequence data. Author SummaryThe fitness of a pathogen can be characterised at each stage of its life cycle. However, epidemiological studies measuring pathogen fitness typically estimate a single value encompassing the entire life cycle. Pathogens evolve towards greater fitness within hosts, but this can compromise the capacity to infect new hosts. Our new method quantifies relative fitness at both levels. This method accounts for rapidly changing pathogen populations and variable sampling through time making it suitable for epidemiological studies. We tested our method using simulations and demonstrate its application by analysing real HIV-1 genetic sequences from people living with HIV in Zambia. This method sheds new light on long-standing questions about the relative fitness of HIV-1 variants which utilise different host-cell co-receptors. Using our new method, we estimate that the capacity of X4 variants to infect new people is just 9% of that of R5 variants, while within-host switching from R5 to X4 usage is seven times greater than the reverse switch. This indicates a strong within-host and between-host trade-off in co-receptor usage.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Drake, K., Franceschi, V. B., Nascimento, F. F., Volz, E. M.. 2025-05-12. Untangling the effects of within-host and between-host natural selection in viruses with applications to evolution of HIV-1 co-receptor usage. https://doi.org/10.1101/2025.05.08.652803

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

RELAX does not reproduce its own estimates at default settings, and its output does not show it

Selection-intensity estimates from RELAX are reported as a point value of K with a likelihood-ratio P. We report that, at default settings and on data of ordinary size, the program does not reproduce its own fits. Of 27 enzyme entries refitted under two optimiser configurations, none reproduced its log-likelihood to within 0.01 units; the median change was 103 units, the largest over 3,400, and four verdicts reversed. Eighty null orthologues reproduced none. A byte-identical command returned a distinct likelihood on every repetition, single-threaded, across three releases, and on alignments simulated under the fitted model, where 3.3 per cent of replicates reproduced. The documented random-number seed never reaches the generator when assigned on the command line, yet reads back as the value supplied. PAML localises the cause: its two-ratio model, without site classes, reproduced its log-likelihood for all 288 genes; its site-class models agreed for 27 to 67 per cent. The instability follows the mixture over sites, not the program. The output does not show it: 46 of 410 fits ended with a negative likelihood-ratio statistic, impossible under convergence, and 123 of 410 report a K re-estimated under a domain restriction rather than the unconstrained maximum. Of 234 published studies using RELAX, none reported a seed. Seeding while holding the thread count at one reproduced sixty of sixty runs on twenty genes under two releases; the seed alone reproduced none of five, and no documentation states the second condition. We recommend that fits be repeated and their dispersion published.

evolutionary biology↗

Sequential accumulation of adaptive alleles forms an inversion supergene in deer mice

Supergenes are clusters of co-inherited loci that affect multiple or complex phenotypes. Despite the growing number of chromosomal inversions identified as supergenes in natural populations, their molecular basis and evolutionary history often remain obscure. Here, we identified two candidate genes, Slc45a2 and Npr3, within a 41-Mb inversion supergene in the deer mouse (Peromyscus maniculatus) that respectively drive darker coats and longer tails - two traits associated with forest adaptation. Mice homozygous for the inversion (inv/inv) exhibit elevated Slc45a2 expression in melanocytes relative to the congenic standard genotype (std/std), disrupting pheomelanin production. In parallel, downregulation of Npr3 in inv/inv mouse growth plates prolongs postnatal growth of caudal vertebrae, resulting in tail elongation. Population-level analyses further implicate that this supergene arose through the subsequent accumulation of the Npr3 allele within the inversion, rather than by capturing all beneficial mutations at its origin.

evolutionary biology↗

Toxin structure shapes palatability in a chemically defended butterfly

The toxicity of chemical defences is well studied, but the potential contribution of compound structure to predator deterrence remains largely unexplored. Whether predation acts more strongly on toxicity or unpalatability remains largely untested, partly because few systems allow toxin structure to vary independently of quantity. Heliconius sara larvae provide such a system: those reared on Passiflora auriculata sequester cyclopentenyl cyanogenic glucosides (CGs), while those reared on P. biflora biosynthesise comparable quantities of aliphatic CGs. Using two invertebrate predators, Camponotus floridanus ants and Hierodula membranacea mantids, we tested whether this structural difference affects palatability independent of toxicity. Mantids rejected larvae with cyclopentenyl CGs more often than larvae with aliphatic CGs, despite no detectable difference in total CG content. This pattern was mirrored in extract-based assays with ants, independently of cyanide release: extracts with cyclopentenyl CGs remained deterrent, while extracts with aliphatic CGs did not differ in deterrence from water. Live larvae, by contrast, elicited similar responses from ants regardless of CG structure. These results show that variation in toxin structure can strongly affect palatability, with some compounds conferring greater protection than others. This demonstrates the importance of chemical structural diversity in the evolution of chemical defences.

evolutionary biology↗