PROTECT YOUR DNA WITH QUANTUM TECHNOLOGY
Orgo-Life the new way to the future Advertising by Adpathway-
Loading metrics
Open Access
Peer-reviewed
Research Article
- Olav N. L. Aga,
- Sabrina J. Moyo,
- Joel Manyahi,
- Upendo Kibwana,
- Iren H. Löhr,
- Nina Langeland,
- Bjørn Blomberg,
- Iain G. Johnston
x
- Published: June 12, 2026
- https://doi.org/10.1371/journal.pbio.3003848
This is an uncorrected proof.
Abstract
Antimicrobial resistance (AMR) is a substantial and growing global health burden. Understanding, and predicting, its evolution in specific pathogens will help responses across scales from individual patient cases to large-scale policy. Here, we use global data on AMR features, predicted from 47k Klebsiella pneumoniae genomes, with hypercubic transition path sampling to infer the evolutionary pathways by which AMR features in K. pneumoniae (KpAMR) are acquired across 102 countries, territories, and areas. We identify “globally consistent” evolutionary behaviors that hold across countries, and “globally divergent” behaviors including carbapenem and fluoroquinolone resistance that vary across countries. We show how these divergent dynamics covary both with public health superregion and drug use policy, and reveal competing evolutionary pathways within and between countries. Using newly sequenced data across several decades from sub-Saharan Africa, we show that this inferred global roadmap of KpAMR evolution successfully predicts prospective evolutionary dynamics. Together, we hope that the ability to characterize and predict evolutionary dynamics of AMR acquisition, connected to socio-economic and drug policy predictors, will help strengthen our understanding of AMR evolution worldwide.
Citation: Aga ONL, Moyo SJ, Manyahi J, Kibwana U, Löhr IH, Langeland N, et al. (2026) Evolutionary inference reveals global natural histories and predicted pathways of antimicrobial resistance in Klebsiella pneumoniae. PLoS Biol 24(6): e3003848. https://doi.org/10.1371/journal.pbio.3003848
Academic Editor: J. Arjan G. M. de Visser, Wageningen University, NETHERLANDS, KINGDOM OF THE
Received: March 25, 2026; Accepted: May 28, 2026; Published: June 12, 2026
Copyright: © 2026 Aga et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The code base for this study is publically available at https://github.com/StochasticBiology/kp-evolution-inference. A Zenodo repository including this codebase, raw FASTA files for the newly-sequenced Kp genomes, and cached versions of the raw data for all figures is available at https://doi.org/10.5281/zenodo.20408311.
Funding: This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 Research and Innovation Programme [Grant agreement No. 805046 (EvoConBiO) to I.G.J.]. This project was supported by the Trond Mohn Foundation [project HyperEvol under grant agreement No. TMS2021TMT09 to I.G.J.], through the Centre for Antimicrobial Resistance in Western Norway (CAMRIA) [TMS2020TMT11] to N.L.) This project has received support from ERA-Net: JPI-AMR STRESST project (NFR333432) to N.L. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. URLs: ERC https://erc.europa.eu/homepage Trond Mohn Foundation https://mohnfoundation.no/ JPI-AMR https://jpiamr.eu/.
Competing interests: The authors have declared that no competing interests exist.
Abbreviations: AMR, antimicrobial resistance; ESBLs, extended-spectrum betalactams; HyperTraPS, hypercubic transition path sampling; Kp, Klebsiella pneumoniae; KpAMR, AMR in Kp; PCA, principal components analysis
Introduction
Antimicrobial resistance (AMR), the resistance of microbial pathogens to the medicines we use to treat them, is a major threat to global health. Antibiotic resistance, the resistance of bacteria to antibacterials, is an important subset of AMR. In 2019 and 2021, 1.27m and 1.14m deaths, respectively, were attributable to bacterial AMR (many more were associated with AMR), with highest rates in sub-Saharan Africa [1,2]. The evolution of genetic and phenotypic features that cause AMR in bacterial pathogens is the focus of tremendous research interest, from basic biology through epidemiology, clinical studies, and health policy.
Klebsiella pneumoniae (Kp) is a gram-negative bacterium and a major cause of nosocomial infections across settings. (Related species and subspecies of Kp form the KpSC (species complex); in this report, we will focus on K. pneumoniae sensu stricto). Kp is found in multiple environmental niches and can both cause opportunistic infections in hospitalized patients and community acquired infections, including severe infections caused by hypervirulent strains [3]. Kp has been identified as an important trafficker for antibiotic resistance genes from different ecological niches into several other clinically important pathogenic bacteria [4]. Kp contributes significantly to the global burden of AMR. In 2021, 45,600 and 36,000 deaths were attributed to carbapenem and fluoroquinolone-resistant Kp, respectively. In 2021, Kp accounted for 12.7% of all deaths attributable to AMR in the population over 5 years old and 19.4% of AMR-attributable deaths in children under five years [2].
Given the substantial health burden associated with the evolution of AMR in Kp, large-scale data-driven research has explored the genomic structure of, and AMR features in, Kp populations [3,5–8]. Here, we consider a complementary perspective: the evolutionary pathways by which these features are acquired [9]. Many related subquestions here can broadly be unified as: from a global perspective, in what orders are AMR features acquired over different instances of pathogen evolution? For example, given a newly observed isolate in the clinic with a given set of AMR features, can we predict which drug resistance(s) will evolve next (and thereby inform treatment guidelines accordingly)? And can we identify which extrinsic features—from physical environment, demography, drug policy, or others—nfluence the evolutionary acquisition of AMR?
These questions require approaches that can use the expanding volumes of AMR data to make and train descriptive and predictive evolutionary models. The factors shaping evolutionary pathways of AMR are increasingly studied with a combination of modeling and bioinformatic approaches [10], including connections with drug use [11], the role of structure and heterogeneity in bacterial populations [12], and evolutionary connections between AMR features [13]. However, the large sets of potentially coupled features involved in typical AMR systems are often challenging to address using traditional methods from evolutionary biology. For example, an often-studied dataset of Mycobacterium tuberculosis isolates contains susceptibility-resistance information for a panel of 10 different drugs [14]. Comparative methods like the Mk (Markov k-state) model often struggle for more than around 7 potentially coupled characters under study [15]. An alternative class of methods for studying the evolution of multiple characters—evolutionary accumulation modeling or EvAM—has emerged jointly from the cancer and evolution literatures [9,16,17], but has traditionally considered relatively few characters in independent samples, while AMR research questions often involve many different drug resistance features in samples connected by phylogenetic relationships where presence may be due to inheritance from a common ancestor rather than independent acquisitions [18–20].
Hypercubic transition path sampling (HyperTraPS) is an EvAM approach designed to incorporate phylogenetic information into the (Bayesian) inference of evolutionary pathways for multiple interacting characters [21–23]. Other EvAM approaches including TreeMHN [24], HyperHMM [25], and HyperMk [15], also support phylogenetically coupled data, but we focus on HyperTraPS here because of its flexibility and support for relatively large numbers of features [9,21]. In this article, we harness large-scale global datasets on AMR in Kp (KpAMR) with HyperTraPS to learn the structure and variability of evolutionary pathways of drug resistance in Kp across the globe, as well as the extrinsic factors shaping these pathways.
Results
Local and global inferred pathways of AMR evolution in Klebsiella
To learn and compare the likely pathways by which KpAMR is acquired in different countries, we obtained a dataset of 47,721 genomes from 102 different countries, territories and areas, and extracted details of the presence or absence of genes corresponding to each of 22 AMR classes, using PathogenWatch and Kleborate [5,26] (Methods; Fig 1A and 1B). We refer to presence/absence of resistance genes for each of these classes as binary “resistance characters” (“character” referring to a particular property of a species in evolutionary biology). The set of characters we consider, following Kleborate, is given in the Fig 1 caption; in this report, we will use the shorthand defined there, grouping genes by drug resistance class (and Lahey class for β-lactamases) [26–28].
Fig 1. Using global genomic data on KpAMR to learn evolutionary pathways.
(A) We use 47,721 Klebsiella pneumoniae (Kp) isolates from around the world, with (i) country-specific counts of isolates given by color and years of isolation given in (ii). (B) UpSet plot giving counts of the 30 most common KpAMR character profiles across these isolates (bar colors give number of acquired characters). (C) (i) Example source data from Romania, with 118 Kp isolates connected via a putative phylogeny derived from LIN codes (see Methods) and assigned presence (dark pixel) or absence (white pixel) markers for resistance to each of 22 antibiotic groups. (ii) A subset of the hypercubic transition graph inferred by HyperTraPS for Romanian data. Each edge’s width gives the probability of a transition involving a single character acquisition from the upper state to the lower state. The uppermost state is the ancestral state with no AMR characters. Only early transitions above a threshold probability 0.025 are plotted for clarity. (iii) Summary “bubble plot” of evolutionary pathways inferred for Romanian data with HyperTraPS. The area of a bubble gives the posterior probability that a given character (row) is acquired at a given ordering in the accumulative evolutionary process. For example, Bla_chr is inferred to be a likely early acquisition, while Bla_ESBL-a likely occurs later and Tgc_a is inferred likely later still (or never). Color follows a spectrum from early to late orderings. Character names: AGly (resistance to aminoglycosides); Col (colistin); Fcyn (Fosfomycin); Flq (Fluoroquinolones); Gly (Glycopeptides); MLS (Macrolides); Phe (Phenicols); Rif (Rifampin); Sul (Sulfonamides); Tet (Tetracyclines); Tgc (Tigecycline); Tmt (Trimethoprim); Bla_a (β-lactam resistance without extended spectrum or inhibitor-resistance); Bla_inhR (resistance to β-lactam/inhibitor combinations); Bla_ESBL (resistance to extended-spectrum β-lactams); Bla_ESBL_inhR (resistance to extended-spectrum β-lactam/inhibitor combinations); Bla_Carb (resistance to carbapenems); SHV (SHV β-lactamase with expanded enzyme activity), Bla_chr (SHV alleles conferring resistance to ampicillin), Omp (outer membrane protein). More details available via Kleborate documentation at https://github.com/klebgenomics/Kleborate. We will use -a: acquired (via horizontal gene transfer); -m: mutation; -chr: chromosomal (intrinsic). The map in this figure is from R package maps [76] which uses geographical data from Natural Earth as a base layer https://www.naturalearthdata.com/downloads/50m-physical-vectors/ (public domain https://www.naturalearthdata.com/about/terms-of-use/). The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
For each country in our dataset, we next used HyperTraPS, a machine learning approach, to infer the “pathways” of KpAMR character acquisition: that is, the ordered sequences with which characters are acquired over time (see Methods). Fig 1C illustrates this pipeline for a single country example (Romania, chosen for its moderate number of samples). HyperTraPS takes presence-absence patterns of characters on a phylogeny as input (Fig 1Ci) and outputs an evolutionary model describing the pathways of character acquisition most supported by the data [9,21–23]. The full output of the inference process is a parameterized transition network describing the probability of different sequences of transitions through the state space of possible resistance characters (Fig 1Cii). This model can be summarized, for example, as the set of posterior probabilities Pij with which character i is acquired at ordering j in a putative evolutionary process (Fig 1Ciii). We refer to a plot where Pij is visualized with point size, as in Fig 1Ciii, a “bubble plot”.
In Methods, we describe some nuances involved in using HyperTraPS with these data. KpAMR characters may be acquired reversibly (for example, via plasmid gain and loss), while the model underlying HyperTraPS pictures acquisitions as irreversible. This irreversibility picture reduces a potentially vast (or infinite) intractable set of possible evolutionary pathways to a tractable set (Methods; [29,30]). This increases the uncertainty of inference and challenges the inference of character interactions, but evolutionary orderings—which characters are likely present when another is acquired—can generally be robustly inferred (demonstrated in S1A and S1C Fig and more deeply in [31]). The approach does not assume an “end point” of all acquired KpAMR characters exists, that acquisitions occur one at a time, nor that populations are perfectly sampled, homogeneous, or perfectly representative of the labeled country of origin with no mixing [12,32]. The LINcode taxonomy linking observations (see Methods) is used to guard against potential pseudoreplication due to relatedness of samples [18–20,33], but in practise (given the deep-branching nature of many relationships) has a negligible effect on inference outputs [31,34] (S1B Fig). Finally, HyperTraPS does not assume the presence, absence, or form of interactions between features—evolutionary dynamics can be reported for a “null model” of independent characters (with prevalence reflecting individual rates) and/or interacting characters (where rates depend on acquired characters) from the same model framework. Our focus is on characterizing likely ordering dynamics, and not directly on the interactions between characters.
While Fig 1C demonstrates our approach for a single country, Fig 2A gives the average acquisition probabilities across all countries in our dataset (including grouping by health region from the Global Burden of Disease initiative [2]), and S2 Fig gives the corresponding summary plots for every country in the dataset. Resistance to some antibiotic groups is consistently observed across all countries: following very common presence of Bla-chr and SHV-m, resistance characters against betalactams and extended-spectrum betalactams (ESBLs) (Bla-a, Bla_ESBL-a) are often acquired earlier, while resistance to colistin (drug of last resort for multi-drug resistant Kp; Col-a and Col-m) is acquired later. Country-specific differences exist in the evolutionary acquisition of other characters, including resistance to carbapenems (Bla_Carb-a).
Fig 2. Global structure of inferred pathways of KpAMR evolution.
(A) Global plot of summarized KpAMR evolutionary dynamics aggregated across countries. Characters displaying bimodal acquisition distributions—characteristic of distinct evolutionary pathways—are highlighted. (B) Principal components analysis (PCA) of country-specific “bubble plots” as in Fig 1Ciii, reflecting inferred evolutionary dynamics of KpAMR in different countries. Individual countries are plotted on PCAs 1–2 (i) and 2–3 (ii), individually and with ellipses demarcating their corresponding Global Burden of Disease region ([2]; acronyms below). (C) Example “bubble plots” from countries (arrowed in (B)) reflecting the extremes of PCA1 (i) and PCA2 (ii). In (i), Venezuela reflects poorly characterized evolutionary dynamics, with relatively uniform probabilities everywhere; Nigeria reflects precisely characterized evolutionary dynamics, with individual characters having highly likely, precisely specified orderings. In (ii), country-specific differences in orderings emerge, including in those characters highlighted. For example, KpAMR evolution in South Korea is likely to involve Flq-m acquisition earlier than other characters; evolution in The Gambia is likely to involve Flq-m acquisition later than other characters. GBD regions: CEEECA, Central Europe, Eastern Europe, Central Asia; HI, High-income; LAC, Latin American and Caribbean; NAME, North Africa and Middle East; SA, South Asia; SEEAO, South-east and East Asia and Oceania; SSAf, sub-Saharan Africa. Zanzibar (dark outline) is from data newly sequenced in this study. Character names given in Fig 1 caption. The globe image is public domain from WikiCommons https://commons.wikimedia.org/wiki/File:Globe.svg. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
In several instances, bimodality in the inferred evolutionary dynamics is observed. That is, a given character may be acquired at an earlier stage or a later stage in the evolutionary process, but not at intermediate stages. Such bimodality is characteristic of mutually repressing interactions between characters, and equivalently of several different evolutionary pathways existing in a system. Examples can readily be seen in Fig 1C for Romania and Fig 2A for the global mean behavior, where SHV-m is likely acquired either very early or at more intermediate stages, with little probability in between. These competing dynamics are directly visible in Fig 1Cii, where distinct, canalized pathways exist: one involving SHV-m as the first acquisition, one involving Bla_chr as the first acquisition and SHV-m only following rather later. Across countries (S2 Fig), bimodality is observed in several characters: some examples are in Bla_chr (Tanzania, Zambia); Bla-a (Ireland, S Korea; Bla_ESBL-a (Laos); and SHV-m (Romania and at least 15 other countries across GDB regions), reflecting multiple evolution pathways for both HGT-mediated and other KpAMR character acquisitions. Correspondingly, the country-specific inferred orderings of KpAMR characters generally correlate, but rather weakly (R2 = 0.41), with the simple prevalence of characters in that country’s source data (S3 Fig).
Across subsets of countries, interactions between our KpAMR resistance characters are observed (S4 Fig). For example, in around a quarter of cases, the acquisition of tigecycline resistance (Tgc_a) is inferred to promote the acquisition of glycopeptide resistance (Gly_a), and the acquisition of sulfonamide resistance (Sul_a) is inferred to promote the acquisition of trimethoprim resistance (Tmt_a). This latter observation reflects an independently known connection: sul and dfr genes providing Sul_a and Tmt_a resistance, respectively, are often genetically linked, and mechanistically act on connected steps in the folate synthesis pathway [35,36]. In some cases, the acquisition of MLS resistance (MLS_a) is inferred to repress the acquisition of carbapenem resistance (Bla_carb_a), suggesting possible interactions that could be clinically exploited in combination therapies (see Discussion). However, the inference of interactions between reversibly acquired features is challenging using HyperTraPS [31], so these observations must be regarded with some caution.
While S2 Fig gives a detailed “roadmap” of KpAMR evolution across countries, it is hard to immediately extract global-scale insights from this representation. We therefore next considered how to compare these results in a reduced-dimensionality picture.
Global consistency in evolutionary acquisition of resistance to a subset of drug families
To proceed, we used principal components analysis (PCA) to embed the high-dimensional set of posterior probabilities in a 3D space (Fig 2B). Here, the axes of highest variance in the inferred evolutionary pathways are identified and used to naturally lay out the individual country outputs. Comparison of country-by-country behavior along these axes can then reveal major sources of variability (and similarity) in inferred KpAMR evolution across countries. We underline that migration means that samples from one country likely represent a mixture of bacteria that have evolved in, and outside, that country, and that perfect separation between intrinsic dynamics of countries is therefore not possible with these data (see Methods).
Inferred evolutionary pathways for Kp across countries consistently involve early acquisition of characters conferring resistance to aminoglycosides, sulfonamides, trimethoprim, and betalactams (Agly, Sul, Tmt, and Bla characters). Aminoglycosides and sulfonamides were both discovered and entered clinical use early in the mid 20th century. Resistance properties inferred to be acquired at later orderings include extended-spectrum beta-lactam and phenicol resistance, acquired via mobile genetic elements (Bla_ESBL-a, Phe-a). Acquisitions inferred to be acquired late across countries include inhR-driven resistance (Bla_inhR-a, Bla_ESBL_inhR-a), and resistance to later- and final-line drugs including colistin, fosfomycin, tigecyclin, and glycopeptides (Col-a, Fcyn-a, Tgc-a, Gly-a). These form a set of “globally consistent” evolutionary observations.
Country-to-country differences in evolutionary acquisition of resistance to carbapenems, fluoroquinolones, tetracycline, and others
The general patterns above appear across evolutionary dynamics across countries and regions, with the first principal component of inferred Kp variability (accounting for 23% of the overall variance) simply reporting the precision with which these patterns can be characterized (Figs 2Ci and 3). In countries supporting less precise inference (for example, with limited datasets), the expected ordering of these characters is more uniform and closer to the average null hypothesis of all characters behaving equally; in countries with more precise output the expected orderings diverge to early and late values (Figs 2Ci and 3).
Fig 3. KpAMR characters determining aspects of global variability in evolutionary dynamics.
Each country has an expected acquisition ordering for each KpAMR character. The plots show how these patterns of expected ordering are linked to the principal components of global KpAMR evolution variability in Fig 2B: each point plots a country’s expected ordering for a given drug against the country’s position in PCA1 (top, gray); PCA2 (center, red); and PCA3 (bottom, blue). (A) “Globally consistent” characters: those that covary tightly with PCA1. All characters here have either early or late expected orderings across all countries (either left or right of the central vertical line). Their position on PCA1 reflects the precision of the inference output. Less precise outputs (low PCA1 values, like Venezuela in Fig 2C) will have orderings close to the central “null”; more precise outputs (high PCA1 values, like Nigeria in Fig 2C) will have more divergent “early” and “late” orderings towards the edges of the plot. (B, C) “Globally divergent” characters: those that covary more tightly with PCA2 (B) or PCA3 (C). Expected orderings in these character sets span a wider range, showing sources of variability in the evolutionary dynamics that are independent of PCA1 (and hence less influenced by observational uncertainty). An alternative visualization is given in S5 Fig. Character names given in Fig 1 caption. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
Once variability in this precision is accounted for (by considering the first principal component), variability corresponding to other differences in the inferred dynamics can be extracted. Several characters covary comparatively little with the (precision-aligned) PCA1 and instead show stronger covariance with PCA2 or PCA3, suggesting that there is genuine country-to-country variability in these characters after controlling for differences in observational noise (Figs 2Cii, 3, and 5). PCA2 (accounting for 15% of overall variance) displays strong covariance with carbapenem, fluoroquinolone, MLS, and tetracycline resistance and OMP mutation (Bla_Carb-a, Flq-m, MLS-a, Tet-a, Omp-m,). PCA3 (accounting for 8% of overall variance) displays covariance with Flq-a, Rif-a, SHV-m. None of these “globally divergent” characters display the “null-to-extreme” divergence seen in those characters most closely related to PCA1, suggesting genuine country-to-country differences in evolutionary dynamics, rather than observational differences, are responsible for this variability.
Fig 4. Geographical and drug policy influence on inferred AMR evolutionary pathways.
(A, B) Distributions of country-specific PCA projection values across different GBD regions for (A) PCA2 and (B) PCA3. In (A), sub-Saharan African countries show systematically higher positions in PCA2 than other regions. (C) Inferred acquisition orderings of KpAMR characters by GBD region. The left five characters covary with PCA2; the right three covary with PCA3. Carbapenem resistance and OMP mutations are inferred to be acquired substantially later in sub-Saharan Africa; rifampicin and fluoroquinolone resistance are inferred to be acquired substantially earlier in S, SE, E Asia, and Oceania. New Zanzibar data from this study is shown by large circles. (D) Connecting AMR character acquisition propensity with drug treatment regimens across countries. Median (across observed years 2016–2021) per-capita drug use in different drug classes (J codes), with expected acquisition ordering of associated resistance characters. “Globally consistent” characters Tet-a, Bla_inhR-a, Sul-a, Agly-a were associated with PCA1 in the global analysis and display little correlation between evolutionary ordering and drug use levels. “Globally divergent” characters Bla_Carb-a and MLS-a were associated with PCA2 in the global analysis and display stronger correlations, with earlier evolution of resistance linked to higher levels of drug use. Character names given in Fig 1 caption; p-values are from linear regression against a null hypothesis of zero slope. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
Fig 5. Validating prospective predictions of evolutionary transitions with newly sequenced KpAMR data.
(A) Pathogenwatch (gray) and newly sequenced 2001−2002 (blue) and 2017−2018 (red) genome properties from Tanzania, connected by a phylogeny estimated from average nucleotide identity (ANI). More details in S6 Fig. (B) For each independent transition in the set of newly sequenced observations, we used HyperTraPS trained on existing data to predict which characters would likely evolve next given the ancestral state. The bars show the predicted rankings of the characters that were truly observed to evolve in the data. The trained model (red) usually predicted top rankings for the characters that were truly next acquired, marginally outperforming a model based purely on character prevalence (blue). (C) Proportion of Tanzanian isolates in Kleborate and new datasets (uncorrected for relatedness) where different KpAMR characters are present. Character names given in Fig 1 caption. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
Geographical correlates with Kp evolutionary dynamics
To explore the sources of this evolutionary variability in more detail, we asked whether geographical region was linked to different variants of the inferred evolutionary dynamics (after accounting for observational differences). We first asked whether countries from different regions showed systematic differences in their PCA2 and PCA3 projections—corresponding to different orderings of the “globally divergent” country-specific characters above (Fig 4). We found that sub-Saharan Africa was a dramatic outlier in PCA2, involving notably later acquisition of carbapenem and fluoroquinolone resistance and OMP mutation than the other regions (Fig 4A and 4C). This ordering result agrees with the continuous-time history of treatment in the region, where carbapenem and fluoroquinolone use was established later (especially for children) than in other regions. Other regions were broadly consistent in PCA2 but showed substantial differences in PCA3. These differences correspond mainly to acquired resistance to fluoroquinolone and rifampicin, with substantially earlier inferred acquisition in South-Southeast-East Asia and Oceania, and substantially later in Central and Eastern Europe, Central Asia, and sub-Saharan Africa (Fig 4B and 4C).
Policy predictors of variance in AMR evolutionary dynamics
We next asked whether known policy of antibiotic use influence the inferred evolutionary dynamics from our analysis. We gathered statistics on drug use from 2016 to 2021 in countries available from WHO GLASS surveillance programme [37] and looked at correlations between per-capita drug use statistics and the inferred evolutionary dynamics of resistance to those drugs (Fig 4D). We found that for those drug types associated with PCA1 (where variability in inferred dynamics is largely determined by observation uncertainty) there was little correlation between drug use and the ordering of resistance acquisition. However, for carbapenems, associated with PCA2 (more non-observational country-to-country variability), there was a link between drug usage statistics and inferred resistance evolution, with carbepenam resistance (Bla-carb-a) more generally present before other acquisitions in countries with high drug use rates. This observation could arise through increased Bla-carb-a acquisition rate, or (perhaps more likely) a reduced loss rate of the Bla-carb-a feature once acquired (see Methods). The direction of this correlation was also observed in MLS, also associated with PCA2, though this relationship did not show statistical support at the p < 0.05 level. This pattern of correlations is consistent with the picture above: acquisition of some (PCA1) KpAMR characters is relatively constant across countries and circumstances, while other (PCA2) characters are more plastic and depend more tightly on country- and region-specific drivers. We note, however, that the GLASS data only cover a subset of years for which bacterial samples exist in our data (Fig 1A) and that KpAMR evolution is not constrained only within these dates (see Methods), so our drug use measure is only an imperfect estimate of the strength of any selective pressure shaping the dynamics.
Testing predictions of AMR evolutionary dynamics with newly sequenced, cross-decadal data
One motivating application of evolutionary inference to AMR problems is the ability to predict the next steps in evolutionary pathways [9]. A question of potentially direct clinical relevance is: given a clinically observed isolate with a given set of AMR characters, which character(s) will likely evolve next—and can treatment guidelines be adapted accordingly? Previous studies of AMR with HyperTraPS have demonstrated its ability to predict properties of evolutionary transitions in a withheld subset of the overall dataset, following the common training-test machine learning paradigm [21]. Here, we are in the unique position of using independently obtained Kp genome data to test the predictions of the evolutionary models trained above.
We sequenced Kp isolates from patients with bloodstream infections in 2001−2002 and 2017−2018 in Tanzania and 2015−2016 in Zanzibar, collected in previous studies [38–41] (Fig 5; see Methods). Bioinformatic analysis placed these new genomes in a phylogenetic tree with a subset of existing genomes from the training data, including their AMR profiles (Figs 5A and 6). Using only transitions independent of those in the training data (see Methods), we tested the predictions of the HyperTraPS model trained on data from Tanzania. Specifically, for each new transition, we queried the trained model about likely next steps from the ancestral state, and recorded the predicted ranks of the next steps actually present in the transition (Fig 5B). By far the most common outcome was that the true next step was ranked first (predicted to be most likely). For these data, we considered the number of instances where one model outperformed the other, in the sense of assigning a lower predicted rank (closer to the effective rank-1 “truth”) to a given transition. The trained model outperformed a naïve model (based only on the relative prevalence of KpAMR traits) in a limited subset (6/34 = 18%) of cases, and underperformed in 1/34 = 3% of cases. This is because the newly-observed data showed little evidence of higher-order effects (including bimodal ordering distributions and interactions between characters), which HyperTraPS can readily capture (demonstrated in previous applications to AMR data [21,20], but a prevalence-only model cannot (hence the variability in S3 Fig).
This analysis demonstrates that within-country predictions of future evolutionary dynamics are possible given a trained HyperTraPS model. We also asked whether the model could predict evolutionary dynamics at the regional scale. We use Zanzibar as a test case here—a region of Tanzania that was not explicitly represented in the original Kleborate training dataset. Our findings would predict KpAMR in Zanzibar to fall into the sub-Saharan Africa set of behaviors, with high values on PCA2 and associated signatures of late carbapenem resistance and others (Fig 4A). To this end, we applied HyperTraPS inference to newly sequenced isolates from Zanzibar. The resulting inferred dynamics clearly place Zanzibar within the set of sub-Saharan Africa behaviors (Fig 2B), with high values on PCA2 arising from later acquisition of carbapenem resistance, and high values on PCA3 arising from later acquisition of rifampicin resistance (Fig 4A and 4B).
We also explored the representation of different KpAMR characters in the snapshot genome sequences alone, without connecting with evolutionary dynamics. Fig 5C shows the relative prevalence of acquired KpAMR characters in existing and newly-sequenced data, not accounting for phylogenetic relatedness (and without representation of an explicit non-AMR control group). With this sampling, most characters showed an increase from 2001−2002to 2015−2016, particularly in mobile genetic acquisition of fluoroquinolone resistance, while the relative prevalence of acquired phenicol resistance and fluoroquinolone resistance mutations decreased. Proportions of these characters were in broad agreement with known coarser-grained observations from Tanzania [42,43] and existing Tanzanian genomes from Pathogenwatch, but we observed more acquired rifampicin resistance and lower acquired phenicol resistance than in existing samples. Our samples from Zanzibar showed lower relative proportions of aminoglycoside and β-lactam resistance, and higher prevalence of outer membrane protein mutations.
We have embedded the trained HyperTraPS KpAMR models in an online Shiny app https://stochasticbiology.shinyapps.io/amr-predict/. Here, a country of interest can be specified, and the KpAMR profile of a sample given by specifying presence or absence of each of our characters. The app will then give the inferred probabilities of each next possible character acquisition, as well as a transition graph describing the likely subsequent pathways for up to five acquisitions in the future (S7 Fig).
Discussion
Powerful data-driven approaches to study the evolution of AMR are emerging in parallel with large genomic datasets [3,5–8]. Most of these studies focus on the current genomic structure of pathogen populations. In this research, we have attempted to take a complementary perspective, using large-scale genome data while focusing on the (inferred) evolutionary dynamics that produce these genomic patterns. We believe that this new way of working has substantial power to support other data-driven approaches, particularly in the prediction of unseen and future evolutionary behaviors of pathogens [20].
The core technology we use, HyperTraPS, is an instance of evolutionary accumulation modeling or EvAM [16,44]. EvAM has previously been used to learn AMR pathways, including in HIV [45] and multidrug resistance in tuberculosis [9,21,22,25]. One question that has remained is to what extent such results reflect universal, general behaviors, versus a response to the specific selective pressures arising from a given country’s drug use (for example). Our global comparison suggests a form of answer to this question. A subset of the KpAMR characters we consider appear to behave similarly across countries regardless of specific selective pressure, drug regimes, and other differences (those aligned with PCA1). Another set of characters (those aligned with PCA2–3) evolves in a way that is more dependent on country- and region-specific influences, which we have shown include public health superregions and drug use levels—although certainly other factors, from population change to the prevalence of other diseases, will also influence these dynamics [10,11]. While these results are specific to Kp, and the characters we consider, this combination of global and country-specific behaviors may reasonably hold across other pathogens.
Inferring evolutionary dynamics of multiple, coupled traits across groups is a challenging problem. There will be countless, multiscale selective influences that impact the evolution of specific lineages of Kp around the globe. Our perspective attempts to “coarse-grain” away from these (unobservable) specific pressures and consider their aggregated effect on large-scale genomic properties in populations. This perspective is not without difficulties. In Methods, we describe in more depth several resolutions to challenges including reversibility of KpAMR acquisitions (for example, via plasmid gain and loss), phylogenetic relatedness, mixing between countries, imperfect observations, and presence or absence of interactions between characters. As described there and studied in [31], evolutionary orderings from HyperTraPS inference are rather robust to these issues in real data, which tend to increase uncertainty rather than systematically bias the outputs of inference. The “controlling” for uncertainty via PCA1 in our analysis is therefore expected to ameliorate the effects of these issues. As shown in S1C Fig, the inference of which characters are likely present when another is acquired is congruent across our method and an alternative that, while limited in scale, can directly allow for reversibility [15].
In learning estimates for evolutionary dynamics, HyperTraPS attempts to infer any potential interactions between characters—for example, demonstrating an independently known positive connection between sulfonamide and trimethoprim resistance [35,36]. Negative interactions, where the acquisition of one character makes acquiring another character less likely, could (if truly present) form the basis of a combination therapy XY, where resistance to drug X makes resistance to drug Y less likely. These interactions correspond to the phenomenon of collateral sensitivity in AMR, where resistance to one drug induces sensitivity to another [46,47]: for example, in Escherichia coli, beta-lactamase expression is linked to heightened sensitivity to colistin (among others) [48]. While not observed consistently throughout all countries in our dataset, a subset of countries showed statistical support for some such “repressive interactions” (S4 Fig). These include, for example, MLS resistance repressing the acquisition of carbapenem resistance. However, this is one aspect of inference which is challenged when a reversible process is modeled irreversibly [31], and such indications can only suggest more detailed followup investigation to verify and explore mechanisms behind these possibly exploitable collateral interactions.
In conclusion, we hope to show that evolutionary accumulation modeling—inferring the historic evolutionary pathways of AMR acquisition, in addition to considering contemporary properties—can complement and enhance established ways of working in AMR genomic analysis. By considering the dynamics by which global KpAMR patterns have become established, a collection of research directions are opened or expanded, including the similarities and differences between countries, links with social and environmental covariates, and predictions of future dynamics. We anticipate that these methods may readily be applied to provide insight into AMR evolution in other pathogens in future.
Methods
Existing Klebsiella data acquisition
We obtained all 47,721 Klebsiella pneumoniae sensu stricto records from pathogenwatch as of March 2024 [5]. The most common isolation years were 2015–2020, with a peak at 2018 (Fig 1A). We used AMR features (genes and mutations) reported by drug class as reported by Kleborate version 2.3 [26]. Kleborate groups genes or mutations known to confer resistance to clinically relevant antibiotic groups and related phenotypes. Betalactamases are further grouped by enzyme activity [26]. We consider a set of L = 22 drug classes for each genome, dichotomizing Kleborate output by the presence of any gene or mutation related to each group. That is, if there is any gene or mutation present for a resistance phenotype, the isolate is considered resistant, otherwise it is considered susceptible. This assumption holds for most resistance phenotypes considered in this study. However, fluoroquinolone resistance (Flq-m) often requires multiple mutations to cause resistance. Thus, the presence of these characters cannot be interpreted as a resistance phenotype, but rather an increased MIC (minimum inhibitory concentration). The isolates were divided by country based on metadata, and countries were grouped into superregions as defined by the Global Burden of Disease regional classification system [49]. A coarse-grained phylogeny was generated via LIN-codes (Life Identification Numbers: a systematic, stable quantitative system for genomic classification based on nucleotide identities [50], pre-computed for our dataset [51]) using lincoding.py supplied by [51]. 2,102 genomes were excluded due to missing metadata. Any country with less than two genomes available were excluded due to the inability to construct a tree. The resistance profiles and phylogenetic tree were combined into a phylogenetic tree annotated with resistance to drug classes.
Evolutionary pathway inference with hypercubic transition path sampling (HyperTraPS)
HyperTraPS [21] models an “evolutionary space” containing every possible state of a system involving L binary characters, then infers the probabilities of (Markovian) transitions between states in this space (here, involving the ordered accumulation of different AMR characters) that is most compatible with observed data [22,23]. A recent overview of the method in an AMR context is given in [9]. The source data is a collection of length-L “barcodes” labeling presence or absence of our characters—resistance to drug classes as defined in Kleborate—on the tips of a phylogeny. Ancestral state reconstruction (here, assuming that AMR resistance character accumulation is rare and irreversible, so that an ancestor possesses a character if and only if all descendants possess it) is by default used to infer ancestral states, and thereby construct a set of transitions from the data. This process is used solely to guard against pseudoreplication, and for these (largely deeply-branching) datasets, the inclusion of phylogenetic detail (and hence the details of ancestral state reconstruction) has a negligible influence on the inference outputs (S1B Fig). The resulting transitions are the input data for the HyperTraPS algorithm. The target of inference is an L × L matrix , where
is the base rate for acquiring character i, and
is the influence that acquisition of character j has on the base rate of acquisition of character i (as in mutual hazard networks [52]). Specifically, the probability of acquiring character i from the state corresponding to binary vector s is
, where
is over all characters absent in s [21]. In this way, positive and negative interactions between the acquisition of different AMR characters is supported, so that (for example) acquisition of resistance to drug X can make acquisition of resistance to drug Y more (or less) likely. The output of the inference process is, more broadly, a transition matrix
, with elements
describing the probability with which an isolate in state a will next transition to state b. For each of the 102 countries, territories and areas we ran HyperTraPS on three different random seeds to ensure that the results were consistent across runs (S2 Fig). Simulations were run for 106 steps with 103 random walkers for sampling, employing a penalized likelihood involving the HyperTraPS-estimated likelihood for a given set of transitions given a parameterization
, computed with the probability term above calculated over sampled paths, and a unit penalty for each non-zero parameter (see [21]). The US genomes were sub-sampled to a subset of 1,000 genomes; three different subsamples clustered closer together than with any other countries in the PCA plot.
Synthetic control study for inference of reversible characters
To determine the effect of our assumption of irreversible accumulation of AMR characters (given that the loss of plasmids is not uncommon in Kp evolution [7]), we constructed a synthetic control study. A random phylogeny over 128 tips was constructed using a birth-death process with birth rate 1 and death rate 0.5 (chosen empirically to roughly match the phylogenies from our case studies) using phangorn [53]. A synthetic accumulation process reflecting a single evolutionary pathway was simulated on this phylogeny. Different loss processes—including uniform rate over a subset of features, heterogeneous, and random rates—were simulated in different instances (details in S1A Fig caption). The same HyperTraPS pipeline (assuming irreversibility), including ancestral state reconstruction and pathway inference, was run on both the pre-loss and post-loss datasets, and the outputs compared (S1A Fig). We also applied HyperMk [15], an EvAM approach supporting reversible dynamics, to a reduced subset of the KpAMR data (HyperMk is limited in the scale of data it can analyze), showing both a tight agreement with the HyperTraPS output and that model selection criteria favor the irreversible model (S1C Fig). These are a small-scale illustrative examples; the inference of reversible dynamics under an irreversible model is the focus of study in [31].
Global structure in inferred pathways
The outputs of HyperTraPS can be summarized as a matrix P, where element Pij gives the posterior probability that character i is acquired at ordering j in a putative evolutionary process from an ancestor with no AMR characters towards a final state with all AMR characters. For example, P32 gives the probability that the third character is the second to be acquired in such an evolutionary process. We obtained this matrix for each country in our dataset, then performed PCA on the set of matrices [54]. We observed the structure of matrices with “bubble plots”, where an array of points is plotted with areas proportional to Pij.
Drug usage data
We collected antibiotic consumption data from 57 countries, territories and areas enrolled in WHO Glass surveillance program in the period 2016–2021 [37]. Overlaying the consumption data with the countries that had 3 or more available genomes reduced the number to 53. We use the median consumption statistics over the available time points for each country.
New Klebsiella data acquisition
The 79 newly sequenced Kp isolates in this article are derived from a collection of studies performed in Tanzania and Zanzibar over the last three decades. These comprise bacterial isolates from (a) blood samples from pediatric patients with bloodstream infections in Dar-es-Salaam, Tanzania in 2001–2002; (b) blood samples from adult patients with bloodstream infections in Dar-es-Salaam, Tanzania in 2017–2018; (c) fecal samples from the patients in (b); and (d) blood samples from adult and pediatric patients with bloodstream infections in Mnazi Mmoja hospital, Zanzibar in 2015–2016. These cultures were sequenced by MicrobesNG (MicrobesNG, Birmingham, UK) using Illumina HiSeq technology. Assembled contigs were provided by the sequencing service, which formed the initial step for the bioinformatics pipeline below.
New Klebsiella data analysis
The analysis pipeline begins with the contigs from the initial sequencing and assembly process. We first used dnadiff, which wraps nucmer from the MUMmer 3.0 package [55], to scaffold the contigs from a given isolate on the Klebsiella reference genome GCA_000240185.2_ASM24018v2 [56] and report statistics of the alignment. We retained only isolates with <20% unaligned bases as instances of Klebsiella. Combining the newly sequenced isolates with the existing Tanzanian genomes from Pathogenwatch, we then ran pairwise dnadiff across the combined set. We extracted the average identity across the aligned regions for each pair and recorded this as the ANI (average nucleotide identity). We then used d = 1 − ANI as a distance measure for phylogenetic tree estimation using the unweighted pair group method with arithmetic mean (UPGMA) [57] implemented in the phangorn [53] package in R (R Core 58]. We confirmed that an alternative method, neighborhood joining [59], did not give qualitatively different results for the predictions of AMR evolution. We used AMR profiles of existing and new isolates to reconstruct ancestral states across this complete tree, then identified the set of subtrees that had only newly-sequenced isolates at their tips. As transitions within such subtrees are independent of transitions in the (Pathogenwatch) training data set, we used this set of transitions as our independent test set.
Testing predicted dynamics from the trained model on new data
We queried the model fitted from the training data to predict the likely next states from each precursor state in this independent set of transitions [9,21]. We ranked the possible next steps from each state from most likely to least likely under the fitted model. We then recorded the ranks corresponding to the actual step(s) corresponding to the observed transition, and compared these to a null model where each possible transition could occur with probability given by its relative prevalence in the training data. For the Shiny app in S7 Fig, we report the probabilities of each possible next acquisition step given a provided current state, and construct the transition network starting from that current state and involving up to five further acquisitions.
Notes on nuances and resolutions in applying HyperTraPS to KpAMR data
The model underlying HyperTraPS pictures acquisitions as occurring irreversibly, while KpAMR characters—particularly those acquired through plasmid exchange—may be gained and lost many times by a lineage [20]. The fundamental reason we use an irreversible model is computational tractability. If reversible transitions are allowed, a potentially infinite set of evolutionary pathways (involving repeated acquisition and loss of characters) can connect any two states, complicating the computation of these pathways and their interpretation. In practise—including in AMR systems—only a limited number of the vast space of possible pathways play important roles in evolutionary dynamics [29,30], and powerful results have been demonstrated for accessibility of pathways sets on hypercubic evolution landscapes [60,61].
While applying irreversible models to systems involving reversibility increases the uncertainty of the inference process and challenges the inference of the detailed interactions between features, inferred evolutionary dynamics and particularly acquisition orderings is robust to this challenge—illustrated with some simple examples in S1A Fig, comparison with an EvAM approach allowing for reversibility [15] in S1C Fig, and the focus of study in [31]. This holds both for comparable loss rates across features and for distinct loss propensities, in which case the approach functions to infer the gain/loss rate ratio—which itself determines evolutionary orderings and prevalence patterns [31]. Generally, the outputs of HyperTraPS infer and report which features are likely present when a given feature is gained—a quantity that remains well-defined across irreversible and reversible cases. The congruence of this inference across reversible and irreversible approaches can be seen, for example, in S1C Fig.
We also note that the model does not assume that a final “end point” with all characters present is ever reached (or indeed possible), instead leaving uncertain all acquisitions that are not observed in real data. HyperTraPS invokes a “emission” picture, comparable to a hidden Markov model, to connect with observations [23], and therefore does not require complete information or homogeneous populations—it can naturally account for limited sampling of a broader, potentially heterogeneous population [32].
HyperTraPS does not a priori assume that the inferred evolutionary dynamics are a consequence of independent character accumulation (where each character’s observed prevalence is determined by a single acquisition rate) or interactions between characters (where the acquisition of a character is influenced by the presence of others) [31]. The “null model” of independence is challenged, for example, by instances of bimodality in inferred orderings – where a character may be acquired before many others or after many others, but not at intermediate stages. But the inferred evolutionary trajectories may be reported and analyzed regardless of which generative model is most supported. (We note, in parallel to this point, that simultaneous acquisition of multiple features is very compatible with our approach; the resulting output simply places equal probabilities over all compatible ordering pathways.)
Our samples are connected by a phylogeny, which we estimate with a taxonomy constructed from LINcodes (see Methods). Accounting for this phylogeny allows us to control against pseudoreplication, where individuals inheriting characters from a common ancestor are interpreted as independent acquisition instances of those characters [18–20,33]. Our approach uses the relative evolutionary timings from the source data phylogeny (for example, Fig 1Ci) to report the orderings of events: which acquisitions precede or follow which others, given that characters may influence each other, with the timescale of these events (see Discussion). In our case, much of the taxonomy corresponds to LINcode elements reflecting a deep timescale, with only separations within the final clusters corresponding to separation timescales under 1,000 years (following a back-of-the-envelope calculation in footnote below). For many KpAMR features, a picture of independent acquisitions is then not unreasonable, as many KpAMR acquisitions may have occurred on a shorter timescale (that of modern human medicine). However, our phylogenetically-embedded approach only biases the inference in the case of strong connection between acquisition patterns and sampling [31], otherwise simply increasing the uncertainty of the inferences [31,34]. In many real-world EvAM cases, whether or not phylogeny is included has an effect on uncertainty but no detectable impact on estimated orderings—demonstrated for two countries in our dataset in S1B Fig. As we control for the different uncertainties across countries in the followup PCA analysis, we use this approach to correct for potential instances of pseudoreplication.
The large majority of genomes with timing information were isolated in the period 2015–2020 (Fig 1A). Our approach here does not directly consider the specific, real-world timings of the evolutionary transitions involved. The precise timescales of the evolutionary process are in principle addressable using a version of our approach called HyperTraPS-CT (continuous time) [21], but this requires a consistent estimation of divergence times between all isolates in the dataset. Importantly, our approach here does not completely neglect a timescale—it is implicit in the phylogenetic relationships included in the source data, and this inclusion both accounts for the temporal ordering of events and “pseudoreplication” as above. However, this approach based on relative evolutionary timings means that we cannot directly tie differences in inferred evolutionary behavior to known real-world historical events shaping AMR profiles: shifts in drug policy, for example, or outbreaks or other events changing the effective size of the evolving population. While our results, focusing on the ordering of acquisition events, already demonstrate descriptive and predictive power in KpAMR evolution across countries, a continuous time picture on a smaller scale in the future (perhaps a single country or small set) would enable finer-grained linking between model prediction and the real-world details of policy and disease history.
Our samples are labeled by country of collection, which we treat as a covariate in our analysis. However, of course, bacteria and their hosts are not physically limited to remain within a given country. The phylogeography of Kp has been studied in depth, for example, in [6,62,63] and certainly involves mixing of strains across borders. Our analysis and interpretation do not assume that observations from a country all and exclusively reflect evolution in that country alone; our regional and correlative downstream analysis accepts that mixing can readily take place and attempts to identify variability that can be observed despite this mixing (which, in the limiting case, would lead to homogeneous inferred dynamics worldwide).
The terminal clusters in our LIN-derived taxonomy reflect ANI > 99.84%, giving a per-site substitution proportion of at most 0.0016. Estimates for Kp substitution rates are around 1.5 × 10−6 substitutions per site per year [64]. A substitution proportion of 0.0016 might then be expected over a timescale of 0.0016/1.5 × 10−6 ≈ 103 years, reflecting an estimate for the longest timescale of separation within the terminal clusters.
Supporting information
S1 Fig. Limited issues with modeling reversible dynamics.
Plots involve a dataset (left) and “bubble plot” summary of inference as in the text (right). (A) HyperTraPS recovers accumulation orderings from reversible processes. Synthetic datasets involving the progressive accumulation, and loss, of characters X1 to X10, with different accumulation and loss rates (i)–(vi). For (i) accumulation rate = 1 and no loss take place. For (ii)–(vi) accumulation rate = 2 and (ii) loss rate is 0.1 for features 1–5 and 0 otherwise; (iii) loss rate increases linearly from 0.05 for feature 1 to 0.5 for feature 10; (iv) loss rate increases linearly from 0.2 for feature 1–2 for feature 10; (v) loss rate for each feature is drawn from U(0, 0.5); (vi) loss rate for each feature is drawn from U(0, 1). The output inferred from HyperTraPS accurately reports the accumulation ordering of characters, with differences in uncertainty, and ambiguity about characters which are not observed across all samples. This small-scale case study reflects a specific instance of the picture explored more generally in [31]. In all cases, inferred ordering can be interpreted as reporting which features are present when another is gained (see Methods). (B) Limited impact of neglecting phylogenies. Datasets from (i) Romania; (ii) Senegal. Inferences shown ignoring phylogeny (cross-sectional picture) vs. including phylogenetic information for ancestral state reconstruction and considering transitions down lineages. Here (and generally), many samples are related only via deep branches and are effectively independent; more recent relatedness within clades has a marginal effect on the uncertainty of posteriors but no noticeable effect on inferred orderings, in agreement with [34,31]. (C) Agreement of irreversible and reversible inference. (i) A reduced subset of the full KpAMR dataset, involving 5 features chosen to reflect a spread of prevalences: Bla_ESBL_a (1), Sul_a (2), Bla_chr (3), Tet_a (4), Rif_a (5). With this reduced set, the HyperMk approach [15] can be used to perform inference allowing for reversibility. Both the bubble plot summary (ii) and the inferred transition network (iii) for HyperMk (“Rev”) are very similar to the HyperTraPS outputs assuming an irreversible picture (“Irrev”), with HyperMk supporting reversible versions of all the same transitions identified (also observed in [31]); the Akaike Information Criterion favors the irreversible picture (393 vs. 553). The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
https://doi.org/10.1371/journal.pbio.3003848.s001
(TIF)
S2 Fig. All posterior orderings of AMR character acquisitions.
This “global roadmap” summarizes “bubble plots” describing inferred evolutionary dynamics of KpAMR characters in different countries. Each row is a country, ordered vertically by descending number of Kp samples. Each column is a KpAMR character; the horizontal axis within columns gives evolutionary orderings (from early to late). The size of a point gives the probability that that character is acquired at that ordering in that country. For example, across the vast majority of datasets (including the top row, USA, for example), Bla_chr has a high probability of early acquisition and Gly_acquired has a high probability of late acquisition. In Cameroon, all characters have similar inferred evolutionary orderings, reflecting the limited data available to make more precise statements. Character names given in Fig 1 caption. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
https://doi.org/10.1371/journal.pbio.3003848.s002
(TIF)
S4 Fig. Inferred interactions between KpAMR characters.
An arrow from character X to character Y reports an inferred interaction between the evolutionary acquisition of those characters. Blue arrow: acquiring X makes acquiring Y more likely (“promoting”). Red arrow: acquiring X makes acquiring Y less likely (“repressing”). The number on each arrow gives the number of countries in which that interaction was inferred; only interactions appearing in >15% of countries with a posterior coefficient of variation under 1 are shown. Character names given in Fig 1 caption. However, as the inference of character interactions with HyperTraPS is challenging for reversible systems [31], these results should be treated with caution. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
https://doi.org/10.1371/journal.pbio.3003848.s004
(TIF)
S5 Fig. KpAMR characters determining aspects of global variability in evolutionary dynamics (alternative visualization).
Connected to Fig 3. KpAMR characters (horizontal axis) are plotted by their expected acquisition ordering (vertical axis) for each country (points). The country’s projection on PCA1, PCA2, and PCA3, for those characters that most strongly covary with each PCA axis, are given by the color of a point. As in Fig 3, those characters that covary with PCA1 form a consistent spectrum linked to precision: low values of PCA1 correspond to less precise, more uniform timing, while higher values lead to more precise earlier or later timings. Characters covarying with the other PCAs display wider ranges connected to PCA1-independent variability. Character names given in Fig 1 caption. The data and code underlying this figure can be found at https://doi.org/10.5281/zenodo.20408311.
https://doi.org/10.1371/journal.pbio.3003848.s005
(TIF)
S7 Fig. Shiny app for predictions of future KpAMR character acquisitions.
A country of interest is specified, and the KpAMR profile of a sample given by specifying presence or absence of each of our characters. The graphical outputs then give the inferred probabilities of each next possible character acquisition (which can be downloaded in CSV format), as well as a transition graph describing the likely subsequent pathways for up to five acquisitions in the future. Available at https://stochasticbiology.shinyapps.io/amr-predict/.
https://doi.org/10.1371/journal.pbio.3003848.s007
(TIF)
Acknowledgments
The authors are grateful to the CAMRIA collaboration, the Stochastic Biology Group at UiB, and delegates to the Nordic AMR conferences 2024 and 2026 for useful discussions.
References
- 1. Antimicrobial Resistance Collaborators. Global burden of bacterial antimicrobial resistance in 2019: a systematic analysis. Lancet. 2022;399(10325):629–55. pmid:35065702
- 2. GBD 2021 Antimicrobial Resistance Collaborators. Global burden of bacterial antimicrobial resistance 1990-2021: a systematic analysis with forecasts to 2050. Lancet. 2024;404(10459):1199–226. pmid:39299261
- 3. Wyres KL, Lam MMC, Holt KE. Population genomics of Klebsiella pneumoniae. Nat Rev Microbiol. 2020;18(6):344–59. pmid:32055025
- 4. Wyres KL, Holt KE. Klebsiella pneumoniae as a key trafficker of drug resistance genes from environmental to clinically important bacteria. Curr Opin Microbiol. 2018;45:131–9. pmid:29723841
- 5. Argimón S, David S, Underwood A, Abrudan M, Wheeler NE, Kekre M, et al. Rapid genomic characterization and global surveillance of Klebsiella using pathogenwatch. Clin Infect Dis. 2021;73(Suppl_4):S325–35. pmid:34850838
- 6. Hetland MAK, Winkler MA, Kaspersen HP, Håkonsholm F, Bakksjø R-J, Bernhoff E, et al. A genome-wide One Health study of Klebsiella pneumoniae in Norway reveals overlapping populations but few recent transmission events across reservoirs. Genome Med. 2025;17(1):42. pmid:40296028
- 7. Holt KE, Wertheim H, Zadoks RN, Baker S, Whitehouse CA, Dance D, et al. Genomic analysis of diversity, population structure, virulence, and antimicrobial resistance in Klebsiella pneumoniae, an urgent threat to public health. Proc Natl Acad Sci U S A. 2015;112(27):E3574-81. pmid:26100894
- 8. Munk P, Brinch C, Møller FD, Petersen TN, Hendriksen RS, Seyfarth AM, et al. Genomic analysis of sewage from 101 countries reveals global landscape of antimicrobial resistance. Nat Commun. 2022;13(1):7251. pmid:36456547
- 9. Renz J, Dauda KA, Aga ONL, Diaz-Uriarte R, Löhr IH, Blomberg B, Johnston IG. Evolutionary accumulation modelling in AMR: Machine learning to infer and predict evolutionary dynamics of multi-drug resistance (arXiv:2411.00219). arXiv. 2024.
- 10. Blanquart F. Evolutionary epidemiology models to predict the dynamics of antibiotic resistance. Evol Appl. 2019;12(3):365–83. pmid:30828361
- 11. Olesen SW, Barnett ML, MacFadden DR, Brownstein JS, Hernández-Díaz S, Lipsitch M, et al. The distribution of antibiotic use and its association with antibiotic resistance. Elife. 2018;7:e39435. pmid:30560781
- 12. Krieger MS, Denison CE, Anderson TL, Nowak MA, Hill AL. Population structure across scales facilitates coexistence and spatial heterogeneity of antibiotic-resistant infections. PLoS Comput Biol. 2020;16(7):e1008010. pmid:32628660
- 13. Lehtinen S, Blanquart F, Lipsitch M, Fraser C, with the Maela Pneumococcal Collaboration. On the evolutionary ecology of multidrug resistance in bacteria. PLoS Pathog. 2019;15(5):e1007763. pmid:31083687
- 14. Casali N, Nikolayevskyy V, Balabanova Y, Harris SR, Ignatyeva O, Kontsevaya I, et al. Evolution and transmission of drug-resistant tuberculosis in a Russian population. Nat Genet. 2014;46(3):279–86. pmid:24464101
- 15. Johnston IG, Diaz-Uriarte R. A hypercubic Mk model framework for capturing reversibility in disease, cancer, and evolutionary accumulation modelling. bioRxiv. 2024:2024.06.27.600959.
- 16. Diaz-Uriarte R, Herrera-Nieto P. EvAM-Tools: tools for evolutionary accumulation and cancer progression models. Bioinformatics. 2022;38(24):5457–9. pmid:36287062
- 17. Schill R, Klever M, Rupp K, Hu YL, Lösch A, Georg P, et al. Reconstructing disease histories in huge discrete state spaces. KI - Künstliche Intelligenz. 2024.
- 18. Dewar AE, Belcher LJ, West SA. A phylogenetic approach to comparative genomics. Nat Rev Genet. 2025;26(6):395–405. pmid:39779997
- 19. Maddison WP, FitzJohn RG. The unsolved challenge to phylogenetic correlation tests for categorical characters. Syst Biol. 2015;64(1):127–36. pmid:25209222
- 20. Renz J, Dauda KA, Aga ONL, Diaz-Uriarte R, Löhr IH, Blomberg B, et al. Evolutionary accumulation modeling in AMR: machine learning to infer and predict evolutionary dynamics of multi-drug resistance. mBio. 2025;16(6):e0048825. pmid:40396716
- 21. Aga ONL, Brun M, Dauda KA, Diaz-Uriarte R, Giannakis K, Johnston IG. HyperTraPS-CT: inference and prediction for accumulation pathways with flexible data and model structures. PLoS Comput Biol. 2024;20(9):e1012393. pmid:39231165
- 22. Greenbury SF, Barahona M, Johnston IG. HyperTraPS: inferring probabilistic patterns of trait acquisition in evolutionary and disease progression pathways. Cell Syst. 2020;10(1):39-51.e10. pmid:31786211
- 23. Johnston IG, Williams BP. Evolutionary inference across eukaryotes identifies specific pressures favoring mitochondrial gene retention. Cell Syst. 2016;2(2):101–11. pmid:27135164
- 24. Luo XG, Kuipers J, Beerenwinkel N. Joint inference of exclusivity patterns and recurrent trajectories from tumor mutation trees. Nat Commun. 2023;14(1):3676. pmid:37344522
- 25. Moen MT, Johnston IG. HyperHMM: efficient inference of evolutionary and progressive dynamics on hypercubic transition graphs. Bioinformatics. 2023;39(1):btac803. pmid:36511587
- 26. Lam MMC, Wick RR, Watts SC, Cerdeira LT, Wyres KL, Holt KE. A genomic surveillance framework and genotyping tool for Klebsiella pneumoniae and its related species complex. Nat Commun. 2021;12(1):4188. pmid:34234121
- 27. Gupta SK, Padmanabhan BR, Diene SM, Lopez-Rojas R, Kempf M, Landraud L, et al. ARG-ANNOT, a new bioinformatic tool to discover antibiotic resistance genes in bacterial genomes. Antimicrob Agents Chemother. 2014;58(1):212–20. pmid:24145532
- 28. Tsang KK, Lam MMC, Wick RR, Wyres KL, Bachman M, Baker S, et al. Diversity, functional classification and genotyping of SHV β-lactamases in Klebsiella pneumoniae. Microb Genom. 2024;10(10):001294. pmid:39432416
- 29. DePristo MA, Hartl DL, Weinreich DM. Mutational reversions during adaptive protein evolution. Mol Biol Evol. 2007;24(8):1608–10.
- 30. Weinreich DM, Delaney NF, Depristo MA, Hartl DL. Darwinian evolution can follow only very few mutational paths to fitter proteins. Science. 2006;312(5770):111–4. pmid:16601193
- 31. Johnston IG. Extracting useful information about reversible evolutionary processes from irreversible evolutionary accumulation models. arXiv. 2026.
- 32. Diaz-Uriarte R, Johnston IG. A picture guide to cancer progression and evolutionary accumulation models: systematic critique, plausible interpretations, and alternative uses. IEEE Access. 2025;13:62306–40.
- 33. Boyko JD, Beaulieu JM. Reducing the biases in false correlations between discrete characters. Syst Biol. 2023;72(2):476–88. pmid:36173613
- 34. Dauda KA, Aga ONL, Johnston IG. Clustering large-scale biomedical data to model dynamic accumulation processes in disease progression and anti-microbial resistance evolution. IEEE Access. 2025;13:13816–31.
- 35. Hipólito A, García-Pastor L, Vergara E, Jové T, Escudero JA. Profile and resistance levels of 136 integron resistance genes. NPJ Antimicrob Resist. 2023;1(1):13. pmid:39843947
- 36. Sköld O. Resistance to trimethoprim and sulfonamides. Vet Res. 2001;32(3–4):261–73. pmid:11432417
- 37.
Global antimicrobial resistance and use surveillance system (GLASS) report 2022. World Health Organization; 2022.
- 38. Blomberg B, Manji KP, Urassa WK, Tamim BS, Mwakagile DSM, Jureen R, et al. Antimicrobial resistance predicts death in Tanzanian children with bloodstream infections: a prospective cohort study. BMC Infect Dis. 2007;7:43. pmid:17519011
- 39. Moyo SJ, Manyahi J, Blomberg B, Tellevik MG, Masoud NS, Aboud S, et al. Bacteraemia, malaria, and case fatality among children hospitalized with fever in Dar es Salaam, Tanzania. Front Microbiol. 2020;11:2118. pmid:33013772
- 40. Onken A, Said AK, Jørstad M, Jenum PA, Blomberg B. Prevalence and antimicrobial resistance of microbes causing bloodstream infections in Unguja, Zanzibar. PLoS One. 2015;10(12):e0145632. pmid:26700032
- 41. Onken A, Moyo S, Miraji MK, Bohlin J, Marijani M, Manyahi J, et al. Predominance of multidrug-resistant Salmonella Typhi genotype 4.3.1 with low-level ciprofloxacin resistance in Zanzibar. PLoS Negl Trop Dis. 2024;18(4):e0012132. pmid:38630840
- 42. Mapunjo S, Mbwasi R, Nkiligi EA, Wilbroad A, Francis EN, Msovela K, et al. National consumption of antimicrobials in Tanzania: 2020-2022. JAC Antimicrob Resist. 2025;7(2):dlaf026. pmid:40046067
- 43. Sangeda RZ, Saburi HA, Masatu FC, Aiko BG, Mboya EA, Mkumbwa S, et al. National antibiotics utilization trends for human use in Tanzania from 2010 to 2016 inferred from Tanzania Medicines and Medical Devices Authority Importation Data. Antibiotics (Basel). 2021;10(10):1249. pmid:34680829
- 44. Diaz-Uriarte R, Johnston IG. A picture guide to cancer progression and monotonic accumulation models: evolutionary assumptions, plausible interpretations, and alternative uses. arXiv. 2024.
- 45. Beerenwinkel N, Däumer M, Sing T, Rahnenfuhrer J, Lengauer T, Selbig J, et al. Estimating HIV evolutionary pathways and the genetic barrier to drug resistance. J Infect Dis. 2005;191(11):1953–60. pmid:15871130
- 46. Pál C, Papp B, Lázár V. Collateral sensitivity of antibiotic-resistant microbes. Trends Microbiol. 2015;23(7):401–7. pmid:25818802
- 47. Szybalski W, Bryson V. Genetic studies on microbial cross resistance to toxic agents i. J Bacteriol. 1952;64(4):489–99.
- 48. Herencias C, Álvaro-Llorente L, Ramiro-Martínez P, Fernández-Calvet A, Muñoz-Cazalla A, DelaFuente J, et al. β-lactamase expression induces collateral sensitivity in Escherichia coli. Nat Commun. 2024;15(1):4731. pmid:38830889
- 49. Rudd KE, Johnson SC, Agesa KM, Shackelford KA, Tsoi D, Kievlan DR, et al. Global, regional, and national sepsis incidence and mortality, 1990–2017: analysis for the Global Burden of Disease Study. Lancet. 2020;395(10219):200–11.
- 50. Marakeby H, Badr E, Torkey H, Song Y, Leman S, Monteil CL, et al. A system to automatically classify and name any individual genome-sequenced organism independently of current biological classification and nomenclature. PLoS One. 2014;9(2):e89142. pmid:24586551
- 51. Hennart M, Guglielmini J, Bridel S, Maiden MCJ, Jolley KA, Criscuolo A, et al. A dual barcoding approach to bacterial strain nomenclature: genomic taxonomy of Klebsiella pneumoniae strains. Mol Biol Evol. 2022;39(7):msac135. pmid:35700230
- 52. Schill R, Solbrig S, Wettig T, Spang R. Modelling cancer progression using Mutual Hazard Networks. Bioinformatics. 2020;36(1):241–9. pmid:31250881
- 53. Schliep KP. Phangorn: phylogenetic analysis in R. Bioinformatics. 2011;27(4):592–3.
- 54. Williams BP, Johnston IG, Covshoff S, Hibberd JM. Phenotypic landscape inference reveals multiple evolutionary paths to C4 photosynthesis. Elife. 2013;2:e00961. pmid:24082995
- 55. Kurtz S, Phillippy A, Delcher AL, Smoot M, Shumway M, Antonescu C, et al. Versatile and open software for comparing large genomes. Genome Biol. 2004;5(2):R12. pmid:14759262
- 56. Liu P, Li P, Jiang X, Bi D, Xie Y, Tai C, et al. Complete genome sequence of Klebsiella pneumoniae subsp. pneumoniae HS11286, a multidrug-resistant strain isolated from human sputum. J Bacteriol. 2012;194(7):1841–2.
- 57. Sokal RR, Michener CD. A statistical method for evaluating systematic relationships. Univ Kansas Sci Bull. 1958;38:1409.
- 58.
R Core Team. R: A language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing; 2022.
- 59. Saitou N, Nei M. The neighbor-joining method: a new method for reconstructing phylogenetic trees. Mol Biol Evol. 1987;4(4):406–25. pmid:3447015
- 60. Krug J, Oros D. Evolutionary accessibility of random and structured fitness landscapes. J Stat Mech. 2024;2024(3):034003.
- 61. Schmiegelt B, Krug J. Accessibility percolation on Cartesian power graphs. J Math Biol. 2023;86(3):46. pmid:36790641
- 62. Han JH, Lapp Z, Bushman F, Lautenbach E, Goldstein EJC, Mattei L, et al. Whole-genome sequencing to identify drivers of carbapenem-resistant Klebsiella pneumoniae transmission within and between regional long-term acute-care hospitals. Antimicrob Agents Chemother. 2019;63(11):e01622-19. pmid:31451495
- 63. Wu Y, Jiang T, He X, Shao J, Wu C, Mao W, et al. Global phylogeography and genomic epidemiology of carbapenem-resistant blaOXA-232–carrying Klebsiella pneumoniae sequence type 15 lineage. Emerg Infect Dis. 2023;29(11):2246–56.
- 64. Aguilar-Bultet L, García-Martín AB, Vock I, Maurer Pekerman L, Stadler R, Schindler R, et al. Within-host genetic diversity of extended-spectrum beta-lactamase-producing Enterobacterales in long-term colonized patients. Nat Commun. 2023;14(1):8495. pmid:38129423
- 65.
Ahlmann-Eltze C. ggupset: combination Matrix Axis for ‘ggplot2’ to Create ‘UpSet’ Plots. 2025.
- 66. Arel-Bundock V, Enevoldsen N, Yetman C. countrycode: an R package to convert country names and country codes. JOSS. 2018;3(28):848.
- 67. Bates D, Mächler M, Bolker B, Walker S. Fitting linear mixed-effects models using lme4. J Stat Soft. 2015;67(1).
- 68.
Clarke E, Sherrill-Mix S, Dawson C. ggbeeswarm: categorical scatter (violin point) plots. 2016. Available from: https://cir.nii.ac.jp/crid/1360019690351052672
- 69. Harris CR, Millman KJ, van der Walt SJ, Gommers R, Virtanen P, Cournapeau D, et al. Array programming with NumPy. Nature. 2020;585(7825):357–62. pmid:32939066
- 70.
Kassambara A. Ggpubr: “ggplot2” based publication ready plots. R Package Version 0.4. 0, 438. 2020.
- 71. Revell LJ. phytools: an R package for phylogenetic comparative biology (and other things). Methods Ecol Evol. 2011;3(2):217–23.
- 72.
Slowikowski K. ggrepel: automatically position non-overlapping text labels with ‘ggplot2’. R package version 0.9. 1, 2021. 2021.
- 73.
Wickham H. ggplot2: elegant graphics for data analysis. Springer-Verlag; 2016.
- 74. Wickham H, Averick M, Bryan J, Chang W, McGowan L, François R, et al. Welcome to the Tidyverse. JOSS. 2019;4(43):1686.
- 75.
Wickham H, François R, Henry L, Müller K, Vaughan D. Dplyr: a grammar of data manipulation. R package version 1.1. 2. Computer Software. 2023.
- 76.
Becker RA, Wilks AR, Brownrigg R, Minka TP, Deckmyn A. maps: draw geographical maps. R Package Version. 2018.






















English (US) ·
French (CA) ·