Skip to content
#software testing Open access

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

Sep 2026 · Journal of The Royal Society Interface · 36 references
HIV Research and Treatment Evolution and Genetic Dynamics Mathematical and Theoretical Epidemiology and Ecology Models

Abstract

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 Summary The 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.

View source

Similar papers

#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54
#computer vision Review Mar 2008

Agile methods in European embedded software development organisations: a survey on the actual use and usefulness of Extreme Programming and Scrum

The results show that the embedded industry has been able to apply agile methods in its development processes and that the appreciation of the agile methods and their individual practices appears to increase once adopted and applied in practice.

O. Salo, P. Abrahamsson · 238 citations · ⚡9
#computer vision Open access Jul 2017

What happens when software developers are (un)happy

Consequences of happiness and unhappiness that are beneficial and detrimental for developers' mental well-being, the software development process, and the produced artifacts are found.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 236 citations · ⚡13
#computer vision Open access Oct 2004

Mobile-D: an agile approach for mobile application development

The Mobile-D approach is briefly outlined here and the experiences gained from four case studies are discussed, which helped develop an agile development approach for mobile application development.

P. Abrahamsson, Antti Hanhineva, H. Hulkko et al. · 225 citations · ⚡18

Related blog posts

GPT-Lab Sep 17, 2026

Beyond Prompt Engineering: The Role of Tacit Knowledge in Software Engineering

AI is making software generation faster, but speed does not remove the need for expertise. As more work is delegated to AI, tacit knowledge may become one of the most important human advantages in software engineering. The post Beyond Prompt Engineering: The Role of Tacit Knowledge in Software Engineering appeared first on GPT-Lab.

MIT News · Artificial Intelligence Aug 17, 2026

Q&A: Rethinking how innovation happens

In his latest book, Professor Eugene Fitzgerald examines the forces that turn breakthroughs into value — and why innovation resists simple formulas.

Microsoft Research Blog Aug 12, 2026

MindTopo reveals VLMs’ spatial reasoning abilities

A path, a fence, a knot. MindTopo sets a new benchmark for testing how AI understands topological relationships and highlights new opportunities to strengthen spatial reasoning and planning. The post MindTopo reveals VLMs’ spatial reasoning abilities appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.