{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T01:06:32Z","timestamp":1788915992695,"version":"build-2803163510"},"reference-count":52,"publisher":"The Royal Society","issue":"242","license":[{"start":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T00:00:00Z","timestamp":1788912000000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100004440","name":"Wellcome Trust","doi-asserted-by":"publisher","award":["220885\/Z\/20\/Z"],"award-info":[{"award-number":["220885\/Z\/20\/Z"]}],"id":[{"id":"10.13039\/100004440","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000265","name":"UK Medical Research Council","doi-asserted-by":"crossref","award":["MR\/X020258\/1"],"award-info":[{"award-number":["MR\/X020258\/1"]}],"id":[{"id":"10.13039\/501100000265","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Global Health EDCTP3 Joint Undertaking"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2026,9,9]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>The fitness of a pathogen can be characterized at multiple levels corresponding to different life cycle stages. Typically, epidemiological studies for measuring pathogen fitness compute a single selection coefficient for pathogen variants that encompasses the entire lifecycle. However, evolution towards greater fitness within hosts can potentially compromise transmissibility. To address this, we develop a population-genetic model and software for the inference of multi-level selection coefficients. Our approach builds on population-genetic models previously applied to macro-evolution, whereby speciation and extinction rates are state-dependent. We relate this state dependence to within- and between-host selection. Evolution of beneficial phenotypes within hosts may occur rapidly (higher \u2018speciation\u2019), but reduce rates of dispersal between hosts (higher \u2018extinction\u2019). This new coalescent-based method improves on existing multi-state speciation and extinction models by accounting for highly nonlinear population dynamics and variable sampling through time, making it suitable for epidemiology. We characterize the accuracy of this method using birth\u2013death and coalescent simulations before analysing a real dataset of HIV-1 genetic sequences. We quantified the multi-level relative fitness underlying HIV-1 \u2018co-receptor switching\u2019. 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 7-fold higher than switching to R5-tropism, indicating a strong within-host and between-host trade-off of co-receptor usage.<\/jats:p>","DOI":"10.1098\/rsif.2025.1012","type":"journal-article","created":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T00:06:48Z","timestamp":1788912408000},"source":"Crossref","is-referenced-by-count":0,"title":["Untangling the effects of within-host and between-host natural selection in viruses with applications to evolution of HIV-1 co-receptor usage"],"prefix":"10.1098","volume":"23","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-1280-9523","authenticated-orcid":false,"given":"Kieran O.","family":"Drake","sequence":"first","affiliation":[{"name":"MRC Centre for Global Infectious Disease Analysis, School of Public Health, Imperial College London , London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0006-9337","authenticated-orcid":false,"given":"Vinicius Bonetti","family":"Franceschi","sequence":"additional","affiliation":[{"name":"MRC Centre for Global Infectious Disease Analysis, School of Public Health, Imperial College London , London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9426-6835","authenticated-orcid":false,"given":"Fabr\u00edcia F.","family":"Nascimento","sequence":"additional","affiliation":[{"name":"MRC Centre for Global Infectious Disease Analysis, School of Public Health, Imperial College London , London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6268-8937","authenticated-orcid":false,"given":"Erik","family":"Volz","sequence":"additional","affiliation":[{"name":"MRC Centre for Global Infectious Disease Analysis, School of Public Health, Imperial College London , London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"name":"on behalf of the PANGEA Consortium","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"175","published-online":{"date-parts":[[2026,9,9]]},"reference":[{"key":"2026090820064327200_bib1","doi-asserted-by":"crossref","first-page":"411","DOI":"10.1017\/S0031182000055360","article-title":"Coevolution of hosts and parasites","volume":"85","author":"Anderson","year":"1982","journal-title":"Parasitology"},{"key":"2026090820064327200_bib2","doi-asserted-by":"crossref","first-page":"1254031","DOI":"10.1126\/science.1254031","article-title":"Selection bias at the heterosexual HIV-1 transmission bottleneck","volume":"345","author":"Carlson","year":"2014","journal-title":"Science"},{"key":"2026090820064327200_bib3","doi-asserted-by":"crossref","first-page":"1243727","DOI":"10.1126\/science.1243727","article-title":"Virulence and pathogenesis of HIV-1 infection: an evolutionary perspective","volume":"343","author":"Fraser","year":"2014","journal-title":"Science"},{"key":"2026090820064327200_bib4","doi-asserted-by":"crossref","first-page":"e20492","DOI":"10.7554\/eLife.20492","article-title":"A transmission-virulence evolutionary trade-off explains attenuation of HIV-1 in Uganda","volume":"5","author":"Blanquart","year":"2016","journal-title":"eLife"},{"key":"2026090820064327200_bib5","doi-asserted-by":"crossref","first-page":"701","DOI":"10.1080\/10635150701607033","article-title":"Estimating a binary character's effect on speciation and extinction","volume":"56","author":"Maddison","year":"2007","journal-title":"Syst. Biol."},{"key":"2026090820064327200_bib6","doi-asserted-by":"crossref","first-page":"724","DOI":"10.1038\/s41576-023-00610-z","article-title":"Fitness, growth and transmissibility of SARS-CoV-2 genetic variants","volume":"24","author":"Volz","year":"2023","journal-title":"Nat. Rev. Genet."},{"key":"2026090820064327200_bib7","doi-asserted-by":"crossref","first-page":"1354","DOI":"10.1128\/jvi.66.3.1354-1360.1992","article-title":"Biological phenotype of human immunodeficiency virus type 1 clones at different stages of infection: progression of disease is associated with a shift from monocytotropic to T-cell-tropic virus population","volume":"66","author":"Schuitemaker","year":"1992","journal-title":"J. Virol."},{"key":"2026090820064327200_bib8","doi-asserted-by":"crossref","first-page":"657","DOI":"10.1146\/annurev.immunol.17.1.657","article-title":"Chemokine receptors as HIV-1 correceptors: roles in viral entry, tropism, and disease","volume":"17","author":"Berger","year":"1999","journal-title":"Annu. Rev. Immunol."},{"key":"2026090820064327200_bib9","doi-asserted-by":"crossref","first-page":"e00793-17","DOI":"10.1128\/JVI.00793-17","article-title":"Pace of coreceptor tropism switch in HIV-1-infected individuals after recent infection","volume":"91","author":"Arif","year":"2017","journal-title":"J. Virol."},{"key":"2026090820064327200_bib10","doi-asserted-by":"crossref","first-page":"466","DOI":"10.1086\/431519","article-title":"Molecular and clinical epidemiology of CXCR4-using HIV-1 in a large population of antiretroviral-naive individuals","volume":"192","author":"Brumme","year":"2005","journal-title":"J. Infect. Dis."},{"key":"2026090820064327200_bib11","doi-asserted-by":"crossref","first-page":"681","DOI":"10.7326\/0003-4819-118-9-199305010-00004","article-title":"Prognostic value of HIV-1 syncytium-inducing phenotype for rate of CD4+ cell depletion and progression to AIDS","volume":"118","author":"Koot","year":"1993","journal-title":"Ann. Intern. Med."},{"key":"2026090820064327200_bib12","doi-asserted-by":"crossref","first-page":"621","DOI":"10.1084\/jem.185.4.621","article-title":"Change in coreceptor use correlates with disease progression in HIV-1-infected individuals","volume":"185","author":"Connor","year":"1997","journal-title":"J. Exp. Med."},{"key":"2026090820064327200_bib13","doi-asserted-by":"crossref","first-page":"312","DOI":"10.1038\/nrmicro1387","article-title":"Selective transmission of CCR5-utilizing HIV-1: the \u2018gatekeeper\u2019 problem resolved","volume":"4","author":"Margolis","year":"2006","journal-title":"Nat. Rev. Microbiol."},{"issue":"S6","key":"2026090820064327200_bib14","article-title":"Selective transmission of R5 HIV-1 variants: where is the gatekeeper","volume":"9","author":"Grivel","year":"2011","journal-title":"J. Transl. Med."},{"key":"2026090820064327200_bib15","doi-asserted-by":"crossref","first-page":"174","DOI":"10.1093\/infdis\/jir714","article-title":"Presence of CXCR4-using HIV-1 in patients with recently diagnosed infection: correlates and evidence for transmission","volume":"205","author":"Chalmet","year":"2012","journal-title":"J. Infect. Dis."},{"key":"2026090820064327200_bib16","doi-asserted-by":"crossref","first-page":"163","DOI":"10.1093\/infdis\/jir719","article-title":"Transmission of the X4 phenotype of HIV-1: is there evidence against the \u2018random transmission\u2019 hypothesis","volume":"205","author":"Hedskog","year":"2012","journal-title":"J. Infect. Dis."},{"key":"2026090820064327200_bib17","doi-asserted-by":"crossref","first-page":"vead055","DOI":"10.1093\/ve\/vead055","article-title":"Fitness effects of mutations to SARS-CoV-2 proteins","volume":"9","author":"Bloom","year":"2023","journal-title":"Virus Evol."},{"key":"2026090820064327200_bib18","doi-asserted-by":"crossref","first-page":"e03568","DOI":"10.7554\/eLife.03568","article-title":"Predicting evolution from the shape of genealogical trees","volume":"3","author":"Neher","year":"2014","journal-title":"eLife"},{"key":"2026090820064327200_bib19","doi-asserted-by":"crossref","first-page":"vex003","DOI":"10.1093\/ve\/vex003","article-title":"In vivo mutation rates and the landscape of fitness costs of HIV-1","volume":"3","author":"Zanini","year":"2017","journal-title":"Virus Evol."},{"key":"2026090820064327200_bib20","doi-asserted-by":"crossref","first-page":"e12303","DOI":"10.1371\/journal.pone.0012303","article-title":"Transmission of single HIV-1 genomes and dynamics of early immune escape revealed by ultra-deep sequencing","volume":"5","author":"Fischer","year":"2010","journal-title":"PLoS ONE"},{"key":"2026090820064327200_bib21","doi-asserted-by":"crossref","first-page":"20140945","DOI":"10.1098\/rsif.2014.0945","article-title":"Sampling through time and phylodynamic inference with coalescent and birth\u2013death models","volume":"11","author":"Volz","year":"2014","journal-title":"J. R. Soc. Interface"},{"key":"2026090820064327200_bib22","article-title":"MuSSECo: multi-state speciation and extinction coalescent","author":"Volz"},{"key":"2026090820064327200_bib23","doi-asserted-by":"crossref","first-page":"1084","DOI":"10.1111\/j.2041-210X.2012.00234.x","article-title":"Diversitree: comparative phylogenetic analyses of diversification in R","volume":"3","author":"FitzJohn","year":"2012","journal-title":"Methods Ecol. Evol."},{"key":"2026090820064327200_bib24","doi-asserted-by":"crossref","first-page":"28","DOI":"10.1111\/2041-210X.12628","article-title":"GGTREE: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data","volume":"8","author":"Yu","year":"2017","journal-title":"Methods Ecol. Evol."},{"key":"2026090820064327200_bib25","doi-asserted-by":"crossref","first-page":"187","DOI":"10.1534\/genetics.111.134627","article-title":"Complex population dynamics and the coalescent under neutrality","volume":"190","author":"Volz","year":"2012","journal-title":"Genetics"},{"key":"2026090820064327200_bib26","doi-asserted-by":"crossref","first-page":"e1006546","DOI":"10.1371\/journal.pcbi.1006546","article-title":"Bayesian phylodynamic inference with complex models","volume":"14","author":"Volz","year":"2018","journal-title":"PLoS Comput. Biol."},{"key":"2026090820064327200_bib27","doi-asserted-by":"crossref","first-page":"vead028","DOI":"10.1093\/ve\/vead028","article-title":"Model design for nonparametric phylodynamic inference and applications to pathogen surveillance","volume":"9","author":"Didelot","year":"2023","journal-title":"Virus Evol."},{"key":"2026090820064327200_bib28","volume-title":"Coalescent.jl","author":"Volz"},{"key":"2026090820064327200_bib29","doi-asserted-by":"crossref","first-page":"487","DOI":"10.1111\/2041-210X.14038","article-title":"TiPS: rapidly simulating trajectories and phylogenies from compartmental models","volume":"14","author":"Danesh","year":"2023","journal-title":"Methods Ecol. Evol."},{"key":"2026090820064327200_bib30","doi-asserted-by":"crossref","first-page":"msac092","DOI":"10.1093\/molbev\/msac092","article-title":"AliSim: a fast and versatile phylogenetic sequence simulator for the genomic era","volume":"39","author":"Ly-Trong","year":"2022","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib31","doi-asserted-by":"crossref","first-page":"1530","DOI":"10.1093\/molbev\/msaa015","article-title":"IQ-TREE 2: new models and efficient methods for phylogenetic inference in the genomic era","volume":"37","author":"Minh","year":"2020","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib32","doi-asserted-by":"crossref","first-page":"207","DOI":"10.1056\/NEJMoa1814556","article-title":"Effect of universal testing and treatment on HIV incidence\u2014HPTN 071 (PopART)","volume":"381","author":"Hayes","year":"2019","journal-title":"N. Engl. J. Med."},{"key":"2026090820064327200_bib33","doi-asserted-by":"crossref","first-page":"e62","DOI":"10.1016\/S2666-5247(23)00220-3","article-title":"Demographics of sources of HIV-1 transmission in Zambia: a molecular epidemiology analysis in the HPTN 071 PopART study","volume":"5","author":"Hall","year":"2024","journal-title":"Lancet Microbe"},{"key":"2026090820064327200_bib34","doi-asserted-by":"crossref","first-page":"e144","DOI":"10.1093\/nar\/gku739","article-title":"COMET: adaptive context-based modeling for ultrafast HIV-1 subtype identification","volume":"42","author":"Struck","year":"2014","journal-title":"Nucleic Acids Res."},{"key":"2026090820064327200_bib35","doi-asserted-by":"crossref","first-page":"772","DOI":"10.1093\/molbev\/mst010","article-title":"MAFFT multiple sequence alignment software version 7: improvements in performance and usability","volume":"30","author":"Katoh","year":"2013","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib36","doi-asserted-by":"crossref","first-page":"1083","DOI":"10.1089\/aid.2017.0061","article-title":"HIV-1 full-genome phylogenetics of generalized epidemics in sub-Saharan Africa: impact of missing nucleotide characters in next-generation sequences","volume":"33","author":"Ratmann","year":"2017","journal-title":"AIDS Res. Hum. Retroviruses"},{"key":"2026090820064327200_bib37","first-page":"57","article-title":"Some probabilistic and statistical problems in the analysis of DNA sequences","volume-title":"Some mathematical questions in biology\u2014DNA sequence analysis","author":"Tavar\u00e9","year":"1986"},{"key":"2026090820064327200_bib38","doi-asserted-by":"crossref","first-page":"587","DOI":"10.1038\/nmeth.4285","article-title":"ModelFinder: fast model selection for accurate phylogenetic estimates","volume":"14","author":"Kalyaanamoorthy","year":"2017","journal-title":"Nat. Methods"},{"key":"2026090820064327200_bib39","doi-asserted-by":"crossref","first-page":"307","DOI":"10.1093\/molbev\/msaa193","article-title":"Additive uncorrelated relaxed clock models for the dating of genomic epidemiology phylogenies","volume":"38","author":"Didelot","year":"2021","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib40","doi-asserted-by":"crossref","first-page":"vex025","DOI":"10.1093\/ve\/vex025","article-title":"Scalable relaxed clock phylogenetic dating","volume":"3","author":"Volz","year":"2017","journal-title":"Virus Evol."},{"key":"2026090820064327200_bib41","doi-asserted-by":"crossref","first-page":"13 376","DOI":"10.1128\/JVI.77.24.13376-13388.2003","article-title":"Improved coreceptor usage prediction and genotypicmonitoring of R5-to-X4 transition by motif analysis of humanimmunodeficiency virus type 1 env V3 loop sequences","volume":"77","author":"Jensen","year":"2003","journal-title":"J. Virol."},{"key":"2026090820064327200_bib42","doi-asserted-by":"crossref","first-page":"4698","DOI":"10.1128\/JVI.80.10.4698-4704.2006","article-title":"A reliable phenotype predictor for human immunodeficiency virus type 1 subtype C based on envelope V3 sequences","volume":"80","author":"Jensen","year":"2006","journal-title":"J. Virol."},{"key":"2026090820064327200_bib43","article-title":"MuSSECo R package (v1.0.0)","author":"Volz","year":"2026"},{"key":"2026090820064327200_bib44","doi-asserted-by":"crossref","first-page":"713","DOI":"10.1093\/molbev\/mss265","article-title":"Improving Bayesian population dynamics inference: a coalescent-based model for multiple loci","volume":"30","author":"Gill","year":"2013","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib45","doi-asserted-by":"crossref","first-page":"1276","DOI":"10.1093\/molbev\/msx077","article-title":"Phylodynamic inference across epidemic scales","volume":"34","author":"Volz","year":"2017","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib46","doi-asserted-by":"crossref","first-page":"10 752","DOI":"10.1073\/pnas.96.19.10752","article-title":"The molecular clock of HIV-1 unveiled through analysis of a known transmission history","volume":"96","author":"Leitner","year":"1999","journal-title":"Proc. Natl Acad. Sci. USA"},{"key":"2026090820064327200_bib47","doi-asserted-by":"crossref","first-page":"2472","DOI":"10.1093\/molbev\/msu179","article-title":"Timing and order of transmission events is not directly reflected in a pathogen phylogeny","volume":"31","author":"Romero-Severson","year":"2014","journal-title":"Mol. Biol. Evol."},{"key":"2026090820064327200_bib48","doi-asserted-by":"crossref","first-page":"E1156","DOI":"10.1073\/pnas.1103764108","article-title":"Role of donor genital tract HIV-1 diversity in the transmission bottleneck","volume":"108","author":"Boeras","year":"2011","journal-title":"Proc. Natl Acad. Sci. USA"},{"key":"2026090820064327200_bib49","doi-asserted-by":"crossref","first-page":"3017","DOI":"10.1038\/s41467-019-10724-w","article-title":"Mapping the drivers of within-host pathogen evolution using massive data sets","volume":"10","author":"Palmer","year":"2019","journal-title":"Nat. Commun."},{"key":"2026090820064327200_bib50","article-title":"MuSSECo simulation and analysis scripts (v1.0.0)","author":"Nascimento","year":"2026"},{"key":"2026090820064327200_bib51","article-title":"Scripts for analysis of empirical HIV-1 data (v1.0.0)","author":"Franceschi","year":"2026"},{"key":"2026090820064327200_bib52","article-title":"Supplementary material from: Untangling the effects of within-host and between-host natural selection in viruses with applications to evolution of HIV-1 co-receptor usage","author":"Drake","year":"2026"}],"container-title":["Journal of the Royal Society Interface"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/royalsocietypublishing.org\/rsif\/article-pdf\/doi\/10.1098\/rsif.2025.1012\/6165318\/rsif.2025.1012.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/royalsocietypublishing.org\/rsif\/article-pdf\/doi\/10.1098\/rsif.2025.1012\/6165318\/rsif.2025.1012.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T00:06:55Z","timestamp":1788912415000},"score":1,"resource":{"primary":{"URL":"https:\/\/royalsocietypublishing.org\/rsif\/article\/23\/242\/20251012\/483207\/Untangling-the-effects-of-within-host-and-between"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,9]]},"references-count":52,"journal-issue":{"issue":"242","published-print":{"date-parts":[[2026,9,9]]}},"URL":"https:\/\/doi.org\/10.1098\/rsif.2025.1012","relation":{},"ISSN":["1742-5662"],"issn-type":[{"value":"1742-5662","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,9]]},"article-number":"20251012"}}