Introduction

Environmental perturbations, such as temperature1,2,3, nutrient4, pH5,6,7, and antibiotic treatment8,9,10,11,12, can cause drastic perturbations to microbial community compositions and functionality. In the host gut microbiome, for example, antibiotic treatment leads to the acute decrease of species richness as well as persistent alterations that were observed in taxonomy, metabolic output, and antibiotic resistance13,14. More importantly, these alterations have a long-lasting impact on both adults and infants, raising risks of secondary infections and disease developments15,16,17,18,19. Therefore, many studies have examined the mechanisms underlying such restructuring dynamics in response to antibiotics12,20,21,22 and its functional implications23. A major focus of these studies is the presence of resistant species and their selection.

Even communities consisting of primarily antibiotic-susceptible species or strains exhibit highly complex responses upon antibiotic treatment. Pre-treatment microbiota structure can be one of the determinants of dynamics14 but the varying phenotypic levels of antibiotic susceptibility among subpopulations can be the most significant factor that governs their survival dynamics24. Such heterogeneous resistance and cross-protection of sensitive populations change the community compositions21,22,25,26,27,28. Due to the complexity of the system, the mechanism is not clearly understood12.

One of the most well-established mechanisms that drive population restructuring in antibiotic-sensitive populations is the positive correlation between growth and lysis rates29,30,31,32,33,34. In clonal populations, faster-growing bacteria are killed faster by antibiotics (Fig. 1a). This notion has been widely demonstrated quantitatively in β-lactam treatment, where the killing rate is linearly correlated to the growth rate30,31,32,33,34. In single cells, this linear correlation can be explained by antibiotic-mediated filamentation: on average, faster-growing cells reach a critical length faster, leading to their faster lysis33. Given this explanation, one might, in general, expect the enrichment of a slow-growing population after antibiotic treatment, as shown by a significant fraction increase in the slow-growing subpopulation of Salmonella in mice35.

Fig. 1: Enrichment dynamics in response to antibiotics.
Fig. 1: Enrichment dynamics in response to antibiotics.
Full size image

a Bacterial responses to antibiotic treatment from single cells to community dynamics. In a single population, faster-growing cells are killed faster, leading to a positive linear correlation between the growth rate and the killing rate. Antibiotic treatment can lead to either an increase in the slow- or fast-growing fractions of the community, depending on growth and lysis rate correlations or subpopulation interactions, while concurrently reducing the overall population size. b Modeling the impact of interactions and variability of growth and lysis correlations on the community restructuring induced by antibiotics. When a clonal population grows under community interactions or in different environments, changes in effective growth rate alter the lysis rate along the linear correlation (growth rate modulation). Also, each subpopulation may follow a distinct linear correlation (G/L variability). Incorporating these two factors, subpopulation temporal dynamics can then be modeled. The abundance of i-th subpopulation (Si) increases and decreases with growth (Gi) and lysis (Li) rates, where the Gi accounts for logistic growth from the maximum growth rate (Gm,i) and interactions (Iij) from j-th subpopulations. Li follows a unique, strain-specific linear correlation with Gi, represented by the slope (ai) and intercept (bi).

In contrast to this intuitive expectation, studies have demonstrated the enrichment of fast-growing subpopulations during antibiotic treatment. In one example of a pair-wise community, where the ratio of the growth rates is predicted to be larger than that of the lysis rates from the measured susceptibilities, Amor and Gore reported that a faster-growing Corynebacterium ammoniagenes population was enriched over a slower-growing Lactobacillus plantarum population in vitro36.

However, in most cases, the linear correlation alone does not appear to explain the experimentally observed community dynamics. Schlomann et al. found that a faster-growing Vibrio cholerae population was enriched over a slower-growing Enterobacter cloacae population after sublethal antibiotic treatment in the zebrafish gut37. This enrichment was due to cell entanglement of the slow-growing subpopulation after antibiotic exposure and physical expulsion of aggregates from the host. In contrast, the mechanism is not always clear. For example, Certain et al. reported depletion of faster-growing cells in vitro (culture tubes) but their enrichment in vivo (mouse gut)38. This study suggested that potential intrinsic differences between antibiotic responses in vitro and in vivo led to diverging enrichment outcomes.

Here, we sought to determine the impact of two additional factors, variability in lysis kinetics and strain-to-strain interactions, on community composition dynamics. The variability in lysis kinetics indicates the variations in antibiotic susceptibility, with the quantitative disparity in linear correlations among the strains and antibiotic conditions31. Interactions among strains can modulate subpopulation growth rates, directly affecting the effective lysis rates and leading to different composition outcomes39.

We used a combination of mathematical modeling, high-resolution clonal measurements, and high-throughput NGS measurements of a barcoded library of single-gene knockout E. coli strains and found these two factors had predictable enrichment outcomes. Our results provide a coherent explanation for the diverse enrichment patterns reported in previous studies. Furthermore, our work underscores the value of comprehensively quantifying antibiotic responses across different bacterial species and strains, as well as interactions in a community.

Results

Modeling community response to antibiotic treatment

We modeled community restructuring by accounting for the growth and lysis of different members and their potential interactions, by using a generalized Lotka-Voterra modeling framework (Fig. 1b). The model consisted of a set of ordinary differential equations (ODEs) describing the abundance dynamics of subpopulations. The temporal dynamics of the i-th subpopulation, Si, are represented by the equation:

$$\frac{d{S}_{i}}{{dt}}={S}_{i}\left({G}_{i}-{L}_{i}\right),$$
(1)

where Gi and Li are the effective growth and lysis rates of the i-th subpopulation, which in general vary over time. We summarized the mathematical representations and definitions of the parameters used in the model in Table S1.

We assumed that Li is linearly correlated with Gi:

$${L}_{i}={a}_{i}{G}_{i}+{b}_{i},$$
(2)

where ai and bi are the slope and intercept of the i-th subpopulation correlation, respectively. We termed this as G/L correlation.

For each subpopulation, Gi is determined by the maximum growth rate (Gm,i, which is a strain-specific intrinsic maximum rate that characterizes the growth of the subpopulation), the carrying capacity, and interactions with other subpopulations:

$${G}_{i}={G}_{m,i}\left(1-{S}_{i}\right)+{\sum }_{j=1}^{N}{I}_{{ij}}{S}_{j.}$$
(3)

Here, N represents the total number of subpopulations. \(I\) is an interaction matrix. Each element, \({I}_{{ij}}\), is a constant representing the uni-directional interaction from the j-th subpopulation to the i-th subpopulation with a sign (+/-) and its strength (magnitude). We assumed that the interaction matrix remains constant throughout the simulation for simplicity. The diagonal elements of this interaction matrix are zero. The corresponding maximum lysis rate of the i-th subpopulation \({L}_{m,i}={a}_{i}{G}_{m,i}+{b}_{i}.\) In sum, the biomass dynamics of the i-th subpopulation are described by (see the Methods section for detailed derivations):

$$\frac{d{S}_{i}}{{dt}}={S}_{i}\left\{\left[{G}_{m,i}\left(1-{S}_{i}\right)+{\sum }_{j=1}^{N}{I}_{{ij}}{S}_{j}\right]\left(1-{a}_{i}\right)-{b}_{i}\right\}.$$
(4)

This model can be simulated with or without lysis, and with or without interactions among subpopulations. When no lysis occurs, \({L}_{i}={a}_{i}={b}_{i}=0\). When no interaction occurs, \(I=O\) (zero matrix).

Modeling predicts the enrichment of slow-growing subpopulations in the absence of clonal variability in lysis rates and population interactions

Using the modeling framework, we simulated a community consisting of (=30) subpopulations in two phases (both with the same duration, \(T\)): a growth-only phase (\({L}_{i}\) = 0), where no antibiotic is added, followed by a phase involving both growth and lysis (\({L}_{i}\) > 0), where an antibiotic is introduced (Fig. 2). Figure 2a displays the maximum growth (Gm,i) and lysis (Lm,i) rates of i-th subpopulation at a given condition as dot points. The solid line illustrates the linear G/L correlation of i-th subpopulation. It displays the corresponding Li when Gi is modulated from Gm,i by interactions. The maximum growth rates (Gm) of the subpopulations ranges from 0.7 to 1.5. The marker color indicates Gm, transitioning from orange to blue in increasing order of Gm, while the precise gradient indicates the Gm of each subpopulation. For the base case, two assumptions were applied. First, there is no growth rate modulation by interactions (i.e., \({G}_{i}={G}_{m,i}\left(1-{S}_{i}\right)\)). Second, all subpopulations follow the same linear G/L correlation: \({L}_{i}=a{G}_{i}+b\) (where \(a=1.5\) and \(b=0.1\) in Fig. 2a). The marker size indicates the net rate of each subpopulation without growth rate modulation (Gm–Lm). Figure 2b indicates the net rates of the subpopulations, where the net rates of slower-growing subpopulations are larger. Therefore, in this base case, slower-growing subpopulations are less susceptible during the antibiotic treatment phase because the slope of the G/L correlation is larger than 1.

Fig. 2: Modeling illustrates the enrichment of slow-growing populations when they have the same growth-lysis correlation but no interactions beyond competition.
Fig. 2: Modeling illustrates the enrichment of slow-growing populations when they have the same growth-lysis correlation but no interactions beyond competition.
Full size image

a illustrates 30 distinct subpopulations assigned with varying maximum growth rates (Gm) and corresponding maximum lysis rates (Lm), which follows a unique linear correlation (L = 1.5 G + 0.1). Markers are positioned by (Gm, Lm), colored by Gm, and sized by the net rate (Gm–Lm) of each subpopulation. b shows the same lysis kinetics, but with y axis in net rate (G‒L). c shows the fractions of subpopulations over time in two phases: growth-only phase (−A) and a subsequent antibiotic-treated phase (+A), marked separation by a dashed line. FI, FG, and FA are the fractions at initial, after the growth, and after the antibiotic treatment phase, respectively. d displays the enrichment factors (EF) of each subpopulation from two phases. Enrichment factors of the first growth phase (EF1) were calculated as \(\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{F}_{G}}{{F}_{I}}\right)\) for each subpopulation, and the second phase (EF2) was calculated as \(\frac{1}{T}{{{\mathrm{ln}}}} \left(\frac{{F}_{A}}{{F}_{G}}\right),\) where T is the duration of phases. The solid line displays the baseline enrichment dynamics, where its slope is the same as lysis kinetics of the second panel, expected with no growth rate modulation (i.e., Gi = Gm,i at all times, without growth slow down, lysis rate variability, and interaction). In this base case, logistic growth slowdown was negligible, and therefore EFs of all strains were well aligned with the baseline enrichment dynamics. The faster-growing subpopulations (blue) resided towards the right side, and the greater net rate (Gm,i–Lm,i) subpopulations (bigger markers) fell towards upper side. The four quadrants represent four qualitatively distinct enrichment outcomes (EF1 > 0: relatively faster-growing, EF1 < 0: relatively slower-growing, EF2 > 0: enriched by antibiotic treatment, EF2 < 0: depleted by antibiotic treatment).

Figure 2c shows the simulated subpopulation fractions over time across the phases, starting from equal fractions (1/N) for all subpopulations. In the first phase, the fractions of subpopulations with larger Gm (blue) mostly increased with relatively faster growth. In the second phase, the fractions of subpopulations with smaller Gm (orange) increased due to their greater Gm–Lm.

To illustrate the enrichment or depletion of each subpopulation, we quantified it by calculating the fold change per unit time in its fraction from the starting point to the end point, represented on a logarithmic scale. We term this metric the enrichment factor (EF). The EF of the i-th subpopulation during the first phase, \(E{F}_{1,i}=\frac{1}{T}{{\mathrm{ln}}}\left(\frac{{F}_{G,i}}{{F}_{I,i}}\right)\), where T is the duration of the phase, FG,i is the i-th subpopulation fraction at the end of the growth phase, and FI,i is its initial fraction. A subpopulation is enriched if its \({EF}\, > \,0\) and depleted if \({EF}\, < \,0\). If we assume each growth to be approximately exponential, EF1 of the i-th subpopulation \(E{F}_{1,i}\approx {G}_{m,i}+{c}_{1}\), where c1 is a constant representation of the total population adjustment and is the same for all subpopulations (see Methods for further derivations). Likewise, in the second phase, \(E{F}_{2,i}=\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{F}_{A,i}}{{F}_{G,i}}\right)\approx {G}_{m,i}-{L}_{m,i}+{c}_{2}=\left(1-a\right){G}_{m,i}-b+{c}_{2}\), where FA,i is the fraction at the end of second phase and c2 is a constant similar to c1. Therefore, EF1 reports the extent of enrichment and is primarily dependent on Gm during the growth phase; EF2 is primarily dependent on net rate (GmLm) during the antibiotic phase.

Figure 2d shows EF2 plotted against EF1. Each dot represents one subpopulation, falling into one of four quadrants, each representing a unique enrichment pattern. In this base case, all points align with a straight line, termed the baseline enrichment dynamics. It emerges from the linear G/L correlation, while its slope matches that of the second panel. The baseline enrichment dynamics were derived under the assumption that Gm is constant in each subpopulation (Eq. 11 in Methods and Fig. S1). Since the slope of the G/L correlation is greater than 1 (a > 1), the negative linear EF association provides a quantitative depiction of the concept that fast-growing cells are killed faster. Consequently, most fast-growing subpopulations fall into quadrant 4 (bottom-right). Conversely, slower-growing subpopulations were depleted during the first phase but enriched in the second phase and fell into quadrant 2 (top-left). We note that the slope is less than 1 of linear regression between clonal G and L thus implies that most of the faster-growing subpopulations are less susceptible to the corresponding antibiotic condition and can be enriched, as implied in the theoretical model by Amor and Gore36. Since we focus on the lysis dynamics under lethal antibiotic concentrations, we assumed that a = 1.5 to ensure that the lysis rate is larger than the growth rate for each population in the simulations.

Modeling predicts diverse enrichment outcomes resulting from clonal variability in lysis rates and population interactions

Experimental evidence showed that both the slope and intercept of the linear G/L correlation are influenced by multiple factors, including antibiotic type, antibiotic dose, and bacterial species or strain31,32,33. In particular, under the same antibiotic treatment condition, the G/L correlations can vary among different subpopulations31. In addition, subpopulations often interact due to varied genetic backgrounds and growth conditions during antibiotic treatment40,41,42,43. We introduced these two factors into the model to examine their effects.

First, we introduced increasing degrees of variability to the base case G/L correlation between subpopulations (Fig. 3a). The left-most panel represents the base case, shown in Fig. 2a. We generated two variability sets, by adding 10% or 20% of gaussian noise to the slope and intercept of the G/L correlations. Figure 3b shows the net rates over the maximum growth rates. Figure 3c shows the simulated subpopulation fractions as a function of time, with corresponding variabilities (top row: no interactions). It shows that a high variability in G/L correlations led to substantial changes in the temporal dynamics of subpopulation fractions.

Fig. 3: Subpopulation enrichment simulations incorporating growth-lysis linear correlation, variability, and random interactions.
Fig. 3: Subpopulation enrichment simulations incorporating growth-lysis linear correlation, variability, and random interactions.
Full size image

a, b Illustration of an increasing variability among the different populations in their G/L correlations. Starting from a strict linear correlation of growth and lysis rates (G/L correlation) on the left, lysis rate variability was introduced by changing the slope and intercept of the G/L correlation to the right (10 and 20% of the normally distributed random numbers were added, see Results and Methods section for detailed procedures). The G/L correlations of subpopulations are depicted as solid lines, showing the lysis dynamics with respect to the growth rate modulation (e.g., due to approaching its carrying capacity or interactions with other populations). The marker representation follows that of Fig. 2. b shows the same lysis dynamics but is represented as the net rate (G–L) over maximum growth rates (Gm). c Fraction changes of subpopulations are shown over time when the simulations incorporate G/L variability and interactions. To the base case (no variability and interactions) shown in Fig. 2, G/L variability of corresponding degrees in Fig. 3a was introduced (column-wise). No interaction was introduced to the first row. The maximum interaction magnitude, max |Iij|, was set to 15 and 30 for rows 2 and 3, respectively. One random interaction matrix (I) was generated and shared by scaling up the elements. Therefore, the fraction changes in the first phases (-A, growth only) are the same in each row. Different results of the fraction changes in the second phases are due to different lysis rates (column-wise), and interactions upon lysis (row-wise). d Antibiotic-mediated community restructuring is primarily driven by G/L correlations and further pushed by G/L variability and interactions among different subpopulations. EFs of each phase were calculated from c. The color and size of the maker follow the same indicators in a. The linearly correlated antibiotic-killing kinetics resulted in the linearly associated EFs of the community, close to the baseline enrichment dynamics. In increasing G/L variability, the EFs scattered from this tight linear association to all four quadrants, enable the diverse enrichment outcome. Increasing the magnitude of interaction terms (top to bottom rows) shuffled the order and broke the alignment of Gm and net rate rankings to EF1 and EF2, respectively, while the tight linear association of EFs remained. Combining two factors, EFs showed a shuffled, loose linear association spread from the baseline enrichment dynamics. The overlayed histogram shows the counts of slower (orange) and faster (blue) subpopulations along with the EF1.

The increased variability in G/L correlations resulted in diverse enrichment outcomes (Fig. 3d, top row). During the first phase, the enrichment was still determined by Gm,i: subpopulations with larger Gm,i had larger EF1,i. During the second phase, the EF2,i was determined by the net rate (Gm,iLm,i). However, due to the variability in G/L correlations, a larger Gm,i did not always correspond to a smaller net rate. The loss of this alignment caused the data points to scatter across all four quadrants. Some subpopulations with large Gm,i were enriched during the second phase, while some subpopulations with small Gm,i continued to be depleted. Therefore, the variability in the G/L correlation among subpopulations is one of the key factors contributing to the counter-intuitive enrichment of fast-growing populations.

Next, we introduced two increasing degrees of interactions into these variability configurations. A non-zero interaction matrix was generated by a previously published code39, which assigns either positive or negative random numbers to the pairwise constant interaction rate (Iij) up to a specified interaction limit. We set 50:50 ratio of negative and positive interactions in our simulations, while increasing the fraction of negative interactions reduces the room for enrichment of subpopulations with larger Gm,i during antibiotic treatment (Fig. S2). The maximum magnitude of Iij was set to 10 times the maximum Gm,i for middle row and 20 times for the last row simulations (Fig. 3c, d). Introducing 20× of maximum growth rate to a cap of interaction strength in Iij gives the summed interaction terms, (\({\sum }_{j=1}^{N}{I}_{{ij}}{S}_{j}\)), ~10% of its growth rate at max, at the initial step. The measured or inferred cap of interaction strength in microbial communities was ~6 to 16 times the maximum growth rates in a comparable mathematical form44,45.

Compared to the effect of G/L variability alone, introducing interactions led to different changes in the enrichment pattern (compare Fig. 3d top with the bottom two rows). The interactions can either promote or suppress the Gi. In turn, Li is modulated indirectly, according to the strain-specific G/L correlation (Fig. 1b, first panel). In the absence of variability in the G/L correlations (Fig. 3d, left most panels in all rows), subpopulations with interactions still approximately followed a straight line, the baseline enrichment dynamics with small deviations. Moreover, the ranking of the subpopulations was not determined by Gm,i but rather shuffled as a result of interactions. This could lead to the enrichment of the faster-growing subpopulations: subpopulations with larger Gm,i grew more slowly due to interactions and became enriched during the antibiotic phase.

When both G/L variability and interactions affect community dynamics, we observe their combined effects on EF. The EF plot allows us to determine the primary factor influencing the diverse enrichment dynamics of each subpopulation. Deviations from the baseline enrichment dynamics are primarily due to the deviations from the average G/L correlation of the community. By incorporating clonal population growth and lysis rates into the EF plot, we can reveal the influence of interaction and its consequences for enrichment dynamics.

Experimental test of model predictions using a synthetic microbial community

To test model predictions, we assembled a synthetic community consisting of 73 strains from a barcoded Keio collection (Table S2), where the competition for nutrients (negative interaction) was the primary interaction within this community39. The Keio collection is a library of single-gene knockout strains derived from E. coli BW25113 ancestor strain46. In addition, each strain from our barcoded Keio collection contains a plasmid with a unique barcode sequence, enabling efficient community composition measurements using NGS39,47.

Figure 4 shows the workflow used to measure clonal population responses and community dynamics. Due to the single-gene knockouts, the fitness of each strain varies in the same growth environment. To confirm these fitness differences and collect growth and lysis dynamics for each strain, we inoculated 73 strains independently into glucose-supplemented M9CA medium with varying concentrations and types of antibiotics (Fig. 4 top row and Fig. S3; also see Methods for detailed protocols).

Fig. 4: The workflow of measuring clonal and community dynamics.
Fig. 4: The workflow of measuring clonal and community dynamics.
Full size image

The community consisted of 73 E. coli strains from the single-gene knockout Keio library, which were barcoded by plasmids, each carrying a unique barcode sequence. Clonal populations were grown separately without antibiotics in the first phase, where the maximum growth rates were collected. Antibiotics were added subsequently. The maximum lysis rates were derived by the biggest difference in net change rates. G/L linear correlation was found by linear regression on 73 strain data points. The assembled community was grown without and with antibiotics through two phases and collected for composition measurements. Subpopulation fractions can be estimated by the relative barcode counts. Enrichment factors (EFs) were found from these fractions at three time point measurements: initial point (FI), after growth (FG), and after antibiotic treatment (FA).

In brief, we measured clonal population growth and lysis dynamics using time-course optical density at 600 nm (OD600) throughout the two phases: without and with antibiotics. We then calculated the net change rate in biomass over time, profiling the maximum net change rate in the first phase as Gm of each strain, which ranged from 0.2 to 1.0. For each antibiotic condition, we identified Lm as the largest difference in net change rates from Gm. In the condition with amoxicillin 5 µg/ml, Gm and Lm of the 73 barcoded Keio strains showed a linear correlation (L = 1.27 G + 0.13, R2 = 0.56, Fig. 5a). The marker color and size follow the representation in Fig. 2. Here, 36 subpopulations with Gm smaller than the median of the community were labeled as slower-growing populations and depicted in orange color. The size of the marker corresponds to GmLm, similar to the model simulation results and the numerical indicators displayed at the top left of the panel.

Fig. 5: Quantifying antibiotic-mediated community restructuring in a synthetic microbial consortium.
Fig. 5: Quantifying antibiotic-mediated community restructuring in a synthetic microbial consortium.
Full size image

a A linear G/L correlation was found from the measured clonal population dynamics. In response to antibiotic treatment (5 µg/ml amoxicillin), clonal growth (Gm) and lysis rates (Lm) from these strains showed a linear correlation (dashed line displays L = 1.27 G + 0.13) with substantial deviations from the common correlation in each strain (R2 = 0.56). Strains with smaller Gm than the median of each community were colored orange, showing 36 slower-growing strains. The size of the marker corresponds to GmLm of each strain and the numerical indicator is shown in the same panel. b Antibiotic treatment led to complex community restructuring. The relative barcode counts were collected from three technical repeats of the corresponding antibiotic condition at three time points: initial, after growth phase, and after antibiotic treatment phase. The median fraction was used for calibration to estimate biomass fraction (see Fig. S4 for calibration details). EF from the first phase, \(E{F}_{1,i}=\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{F}_{G,i}}{{F}_{I,i}}\right)\), is shown in x axis. EF from the second phase, \(E{F}_{2,i}=\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{F}_{A,i}}{{F}_{G,i}}\right)\), is shown in y axis. The marker representation follows that of a. The baseline enrichment dynamics (displayed in a solid line) were calculated from clonal population measurements in panel a, using Eq. 11 (see Methods). This community measurement shows that antibiotic treatment led to a general trend of slow-growing population enrichment (negative linear EF association), while data fell into all quadrants, scattered from the baseline enrichment dynamics. These reflect the linear G/L correlation and the variability in strains. Faster-growing strains (determined from a) span through the entire EF1 range. This reflects the presence of community interactions, modulation of growth rates. The overlayed histogram shows the counts of slower (orange) and faster (blue) subpopulations along with the EF1.

We assembled the community of all strains and measured compositions at 3-time points (Fig. 4 bottom row): initially (FI), after the first phase (FG, growth-only), and after the second phase (FA, antibiotic-added). We measured compositions by utilizing next-generation sequencing of the barcode sequences. In brief, we sequenced three replicates of each condition (Figs. 5b and S3A), calibrated them to biomass fraction (Fig. S4), and calculated enrichment factors of each phase (Fig. 5b).

We calibrated the relative barcode sequence counts using a mixture with known biomass fractions (Fig. S4A). This calibration improved the estimation of biomass fractions: the calibrated fractions more closely followed the identity line (y = x) compared to the relative barcode counts without calibration. This calibration was tested with mixtures at varying biomass fractions from the same batch of overnight cultures (Fig. S4b, rows 1 and 2). We also validated that this calibration was generalizable to the experimental replicates, using the community mixtures assembled from stationary-phase cultures and exponential-phase cultures from different batches of overnight cultures (Fig. S4b, rows 3 and 4). In all 73 strains, the calibrated fractions closely aligned with the identity line (Fig. S4c). Only two strains (ID 68 and 88) showed elevated calibrated fractions than the expected fractions in the small biomass fraction range (< 0.001).

We visualized the enrichment dynamics in the same manner as presented in Fig. 2, using the corresponding growth and lysis rates measured in Fig. 5a. The biomass fractions were ordered in increasing Gm from top to bottom (Fig. 5b, middle panel). The sum of fractions of the populations labeled as faster-growing from clonal population measurements (37 among 73 strains, marked in blue) was increased in the first phase but depleted during the second phase.

Consistent with model predictions (Fig. 3d), the EFs of the given antibiotic condition showed an overall negative association, with significant deviations by individual populations from the baseline enrichment dynamics (Fig. 5b, right panel). The baseline enrichment dynamics are displayed in solid lines, calculated using Eq. 11 in Methods, with parameters a and b from Fig. 5a. Specifically, the enrichment plot shows that most of the populations labeled as faster-growing (marked in blue) were enriched in the first phase but depleted during the second phase, placing them in the bottom-right quadrant. In contrast, most of the populations labeled as slower-growing (marked in orange) were depleted in the first phase but enriched in the second phase, illustrating canonical examples of slower-growing cells being enriched during antibiotic treatment. The deviation from the baseline enrichment dynamics (solid line) reflects the contribution of the variability in G/L correlations. In addition, the ranking of populations along the approximate direction of the baseline enrichment dynamics does not align with expectations based on the net rates (indicated by dot sizes), suggesting the contribution of population interactions.

Diverse enrichment outcomes measured in the community dynamics across antibiotic conditions

We found that the overall linear G/L correlation remained across different β-lactam antibiotics treatments and concentrations (carbenicillin 20, 30, and 50 µg/ml, amoxicillin 3, 5, and 7 µg/ml, and cefotaxime 1, 2, and 4 µg/ml) (Fig. 6a). These β-lactam antibiotics were picked based on the previous study demonstrating dose-dependent single-cell lysis dynamics33 and linear G/L correlations30,31,33. In all cases, we observed deviations in data points from the overall G/L linear correlation to varying degrees. Corresponding antibiotic conditions showed linear EF associations (Fig. 6b and Table S3), consistent across four additional biological replicates without or with selection antibiotics (Fig. S5c, d and Fig. S6). These linear EF associations reflect the general G/L linear correlations observed at the clonal population level.

Fig. 6: Linear G/L correlation in clonal population measurements and subpopulation enrichment at different antibiotic types and concentration studies.
Fig. 6: Linear G/L correlation in clonal population measurements and subpopulation enrichment at different antibiotic types and concentration studies.
Full size image

a The linear G/L correlation remained across the antibiotic types and concentrations. The maximum growth rates and lysis rates (Gm and Lm) were determined from the clonal population growth and lysis curves, following the addition of carbenicillin (20, 30, and 50 µg/ml), amoxicillin (3, 5, and 7 µg/ml), and cefotaxime (1, 2, and 4 µg/ml). The linear regression of the 73-strain datapoints is depicted by dashed lines, with its equation and r-squared values displayed in the panel. The marker representation follows that of Fig. 5a. Source data are provided as a Source Data file. b Enrichment of antibiotic treated community showed linear association. The community coculture was treated with the corresponding antibiotic conditions in a, antibiotic was added after 4 hours of growth-only phase. Enrichment factors (EFs) were calculated by the endpoint-to-initial fraction ratios as shown in Fig. 5b. Marker color and size representations follow those of a, while the numerical indicator size is also shown in the same panel. The baseline enrichment dynamics (displayed in a solid line) was calculated from the regression results shown in a (corresponding antibiotic conditions). In all conditions, datapoints are distributed from its baseline enrichment dynamics across all four quadrants, indicating the various enrichment outcomes, the linear G/L correlation, and presence of G/L variability. Strains spanned through the entire EF1 without the order of Gm, which reflects the presence of community interactions. The overlayed histogram shows the counts of slower (orange) and faster (blue) subpopulations along with the EF1. Source data are provided as a Source Data file.

Importantly, the variability of G/L correlation was reflected in all antibiotic conditions by the spread in enrichment patterns from a tight linear association. The basal EF dynamic lines were derived from the regression of G/L correlation in corresponding antibiotic conditions shown in Fig. 6a. These results support the diverse outcomes‒both qualitatively and quantitatively‒of enrichment dynamics.

We also observed negative EF associations in the non-treated community without additional dilution at the end of the first phase (Fig. S5b, left panels). This correlation likely reflects growth approaching the carrying capacity. In particular, the measured OD600 of the non-treated community at the end of the second phase was higher than that of the overnight mixture (Fig. S7). To further test this effect, we conducted simulations (Fig. S8a). The results show that if faster-growing populations approach carrying capacity during the second phase, populations that are enriched during the first phase may have less room for further growth, leading to reduced enrichment or depletion. However, if populations experience approximately exponential growth in both phases, faster-growing populations will be more likely to be enriched during the second phase as they were in the first phase. Further experiments recapitulated the predicted enrichment dynamics (Fig. S8b): diluting the mixture from the first phase by more than 10-fold before starting the second phase resulted in an overall positive EF correlation between the two phases, as shown in the two right panels.

Considering the measured maximum growth rates (Gm) and lysis rates (Lm) of the clonal populations as Gm,i and Lm,i, we observed that the enrichment pattern resembled simulations incorporating interactions upon G/L variability. The alignments between EF and maximum rates (EF1: Gm and EF2: GmLm) were partially misordered. The experimentally determined Spearman correlation coefficients, which were less than 1, suggest the presence of interactions within the community. Perfect alignments would be indicated by a Spearman correlation coefficient of 1 (Table S4).

Restructured population composition varied across different antibiotic types and conditions

Our community measurements showed that the final structure varied across different antibiotic types and concentrations, despite experiencing similar levels of population reduction in certain conditions (Figs. 6b and S7). Further analysis of the EF2 data by strain (Fig. 6b) revealed diverse enrichment results under different antibiotic conditions (Fig. S9). While the direction of strain enrichment or depletion was consistent across antibiotic types for each strain, the extent of enrichment or depletion varied among antibiotic conditions. These results support that the positive linear G/L correlation imposes the general trend of growth rate-dependent β-lactam killing kinetics. However, the exact G/L correlation, strain-to-strain variability on it, and interactions can influence its kinetics and sometimes shift and pivot the enrichment predictions.

Together, our results show that the antibiotic treatment imposes restructuring of the exposed community to varying final structures, which are majorly determined by the growth and lysis dynamics of subpopulations in a given antibiotic condition and deviating further due to interactions between survivors.

Discussion

Our findings underscore the importance of the two factors in explaining the diverse and sometimes paradoxical outcomes of antibiotic treatment observed in microbial communities35,36,37,38: the variability in growth and lysis kinetics of those clonal populations, and the community interactions among subpopulations.

Variations in antibiotic-induced lysis rates depend on specific combinations of strains (or species), drug types, and drug concentrations. In the individual clonal killing curves of the single-gene knockout library treated with β-lactam antibiotics, our measurements showed that the linear G/L correlation is drug-specific, and the phenotypic variations in susceptibility from each correlation are evident among the strains. These results in a general trend of slower-growing population enrichment, yet with diverse enrichment patterns for individual strains. Under the β-lactam conditions that caused similar reductions in total population size, we observed the strain-specific enrichment varied across β-lactam types and concentrations. Since the survivor composition can influence further dynamics and functionality15,16,17,18,19, the ability to predict enrichment patterns can be valuable in designing antibiotic therapies and microbiome engineering strategies.

Considering that the G/L correlation can be mapped to the single-cell lysis kinetics33, our results reveal that the connection from single-cell lysis kinetics to clonal population dynamics can be extended to community enrichment dynamics through G/L correlation. Thus, the enrichment factor association reflects experimentally measurable phenotypical traits at three levels of dynamics (single, clonal, and community), offering the quantitative mapping of bacterial response from single cells to community dynamics.

The effective growth rate of each member in a community often deviates from that of a clonal population48. This deviation is influenced by how subpopulations interact with each other and their environment. Our analysis leverages a library of E. coli strains with well-defined genetic backgrounds. Despite the similarity in their genetic backgrounds (aside from the single-gene knockouts), these strains exhibit diverse interactions, including both competition and cooperative interactions, depending on experimental conditions. In addition to demonstrating the dynamics predicted by our model, our analysis sets the stage for exploring the connections between genetics, phenotypic traits, interactions, and enrichment dynamics49. This capability can enhance our understanding of microbial responses to antibiotics and other environmental stimuli, ultimately contributing to more effective strategies for combatting antibiotic insusceptibility and optimizing treatment outcomes. Identifying the interaction dynamics in response to environmental changes will further enhance such capability, by advancing beyond the simplifying assumption that the interaction matrix remains constant throughout environmental changes.

Further analysis of EF plots showed that when the antibiotic concentrations are sufficiently high, data points from different antibiotic treatments approximately collapse into a single line (when the two outliners are removed, Fig. S10 and Table S3). These results support the notion of faster-grower-gets-killed-faster in general when considered from the perspective of effective growth rates.

While our analysis focuses on β-lactams and a microbial community consisting of engineered E. coli, both our approach and conclusions can be broadly applicable. Our framework is adaptable to population responses of other classes of antibiotics, such as ribosome-targeting antibiotics, that exhibit growth rate-dependent susceptibility29. The general applicability is ensured by the coarse-grained nature of our framework. In particular, the lysis rate, ‘L’, in our framework can be interpreted as the rate of other forms of antibiotic-mediated death or growth suppression., and it can also be quantified by using the same pipeline. The framework is also applicable to communities consisting of diverse species and strains, even when some are resistant. The presence of both susceptible and resistant subpopulations essentially leads to highly divergent G/L correlations.

Methods

Measurement of clonal population growth and lysis rates

The bacterial strains, chemicals, reagents, and instruments used in this study are listed in Table 1. Unless otherwise specified, barcoded Keio strains39 were inoculated from glycerol stocks into fresh culture media in a deep well plate. The plate was sealed with AeraSeal film and incubated overnight (14–16 hours) in a 37 °C plate shaker operating at 700 rpm. Each well contained 500 µl of M9CA media supplemented with 0.4% glucose, along with selection antibiotics (chloramphenicol 25 µg/ml and kanamycin 50 µg/ml).

Table 1 List of bacterial strains, chemicals, reagents, and instruments

Initial culture dilutions and antibiotic additions were set up by the Freedom EVO liquid handling robotic system. The operation included diluting overnight cultures into fresh media (M9CA with 0.4% glucose), mixing, and dispensing the diluted cultures into transparent, flat 384-well plates. These plates were manually sealed with transparent SealPlate film and incubated in a 37 °C plate reader for continuous measurement of optical density at 600 nm (OD600, every 5 minutes), with a 5-second shaking before the measurements. Diluted β-lactam antibiotics were prepared from working stocks before addition to the media. Working stocks were prepared by dissolving antibiotic powders into molecular-grade water and filtering (for carbenicillin and cefotaxime) or directly dissolving into dimethyl sulfoxide (for amoxicillin). Antibiotics were then added to the 4-hour incubated cultures via robotic operation. Following antibiotic addition, the plates were resealed manually with a new transparent SealPlate film and returned to the 37 °C plate reader.

To determine growth and lysis rates of the clonal barcoded Keio populations under each antibiotic condition, OD600 time-course data were analyzed using MATLAB. We adopted the methodology described in ref. 31. In brief, instantaneous net change rates over time were computed by determining the slope of linear regressions on log-transformed OD600, ln(OD600), within a 1-hour rolling window (comprising 12 data points) across the time-course measurements. The clonal population maximum growth rates (Gm) were identified from the peak values of the first 4-hour instantaneous net change rates. The maximum lysis rates (Lm) were derived from the difference between the maximum and minimum of the instantaneous net change rates (Fig. S3).

Calibration of relative barcode counts for estimating biomass fraction

To validate and enhance the accuracy of relative barcode counts as a surrogate of biomass fraction estimation, a comprehensive numerical calibration and its verification experiments were conducted (Fig. S4). The biomass fraction was obtained from overnight cultures which were diluted to achieve an approximate OD600 range of 0.2–0.7 across all subpopulations, where OD600 is known to be linearly correlated with biomass. 73 subpopulations were then grouped into 7 tiers, representing varying biomass fractions within a mixture.

From the measured relative barcode counts obtained from an even volume mixture of all strains, a calibration vector was derived (Fig. S4a). This vector comprises calibration factors for each strain, determined by the equation (biomass fraction in a mixed culture) = (calibration factor) x (measured relative count fraction). Here, the biomass fraction of the mixed culture was computed from individual OD600 measurements mentioned above. The measured relative count fraction was extracted from raw sequence count data and normalized by sum to 1.

To assess the efficacy of the calibration vector to biological repeats, mixtures of the 7-tier groups were prepared in different ratios, with a set of volume ratios selected to ensure relatively uniform distribution across a logarithmic scale (i.e., 10, 5, 1, 0.5, 0.1, 0.05, 0.02). Upon sequencing the permutation mix sets, the relative count fraction was calibrated by multiplying the calibration factors corresponding to each strain. The calibrated and non-calibrated measured fractions were compared by plotting them against the expected biomass fraction (see Fig. S4b, first two rows respectively), with the identity line (y = x) shown as a solid line.

To ascertain the robustness of the calibration vector across biological replicates, the permutation mix sets from new overnight cultures and exponentially growing cultures were sequenced. The actively growing cultures were prepared from individually incubated subpopulations initiated at a 1:100 dilution to the fresh media. The calibrated fractions of the overnight and the actively growing replicate were compared with the expected biomass fractions (see Fig. S4b, last two rows respectively). Further validation for each strain was shown (refer to Fig. S4c). Notably, calibrated fractions from 71 strains exhibited excellent alignment with the identity line, while strains of Keio strain ID 68 and 88 displayed deviations, primarily in lower fraction ranges, from the identity line.

Community barcode counts and enrichment calculation

A 73-strain community was generated by combining equal volumes of overnight cultures from the clonal populations. The mixture was 1:100 diluted to M9CA media containing 0.4% glucose, without selection markers. The diluted mixture was dispensed into a 96-deep well plate at 1 ml per well, sealed with AeraSeal film, and incubated in a 37 °C plate shaker at 700 rpm. After 4 hours, β-lactam antibiotics were added to the respective conditions, and incubation continued at the same condition. At each time point (−4, 0, and 4 hours), 200 µl of the cultures were sampled for OD600 measurement, followed by centrifugation at 2000 × g for 2–4 minutes (using the LSE Mini Microcentrifuge, Corning). The resulting pellets were resuspended in phosphate-buffered saline, boiled at 95 °C for 5 minutes using a thermocycler, and stored at 4 °C until further barcode amplification, within 3 days.

For the preparation of the next-generation sequencing (NGS) library pool, we followed the established protocols39,47. In brief, a short, 2-cycle PCR (initial denaturation at 98 °C for 30 s, followed by 2 cycles of denaturation at 98 °C for 10 s, annealing at 67 °C for 30 s, and final extension at 72 °C for 5 min) was performed to ligate dual indexes, sequencing primers, and adapters, using the forward (CCGACCACCGAGATCTACACXXXXXXXXYYYYYYYYYYAACACTCTTTCCCTACACGACG) and reverse (CAAGCAGAAGACGGCATACGAGATXXXXXXXXGTGACTGGAGTTCAGACGTGTGC) primers. X and Y represent dual-sample index and unique molecular identifier, respectively. Magnetic bead-mediated, 2-step size selection of the PCR product was carried out. Sample pooling and amplification of the selected barcodes via a 30-cycle PCR (initial denaturation at 98 °C for 30 s, followed by 30 cycles of denaturation at 98 °C for 10 s, annealing at 66 °C for 20 s, and final extension at 72 °C for 5 min) followed. The final PCR products were identified by running a 2.5% agarose gel, with gel blocks sliced within the range of 190–290 bp. The amplified barcodes in the gel blocks were extracted using the Zymoclean Gel DNA Recovery kit. The final denatured library was prepared prior to sequencing in accordance with the manufacturer’s guidelines, with a 30% PhiX spike-in along with the library. Illumina MiniSeq and its associated software were utilized to perform pair-end sequencing, producing output into the fastq format. Barcode alignment and counting were performed by using a previously published Galaxy workflow39,47,50. This workflow trims the barcode sequences between adapters and counts the number of aligned reads for each barcode of the strains, allowing for up to 2 bp-mismatches per read during barcode alignment (Barcode Splitter, Galaxy Version 1.0.1)51.

A customized Python script via Jupyter Lab was employed for calculating and plotting the enrichment of subpopulations. Subpopulation fractions were determined by dividing the barcode counts by the total barcode counts in one community, followed by calibration through multiplication by a calibration vector. The enrichment of subpopulations between two points was computed as the log-scaled fraction ratio (fraction at the endpoint/fraction at the initial point). Open-source code was used for strain-specific enrichment bar plots in circular form in Fig. S952.

Model formulation and simulations

As discussed above, the model of community growth and lysis was formulated by a set of ODEs, describing the biomass dynamics of each subpopulation. The derivation of Eq. 4 from Eqs. 13 is shown below:

$$\frac{d{S}_{i}}{dt} ={S}_{i}\{{G}_{i}\,-{L}_{i}\}={S}_{i}\{{G}_{i}\,-{a}_{i}{G}_{i}-{b}_{i}\}={S}_{i}\{{G}_{i}(1-{a}_{i})-{b}_{i}\}\\ ={S}_{i}\left\{\left[{G}_{m,i}(1-{S}_{i})+{\sum }_{j=1}^{N}{I}_{ij}{S}_{j}\right](1-{a}_{i})-{b}_{i}\right\}.$$
(5)

From the Eq. 1, when \({G}_{i}\) remained \({G}_{m,i}\) as a constant, i-th subpopulation fractions at the initial time point, after growth, and after antibiotic treatment will be the following, starting at the initial population size \({S}_{i,0}\):

$${F}_{I,i}=\frac{{S}_{i,0}}{\sum {S}_{i,0}},$$
(6)
$${F}_{G,i}=\frac{{S}_{i,0}{e}^{{G}_{m,i}T}}{\sum {S}_{i,0}{e}^{{G}_{m,i}T}},$$
(7)
$${F}_{A,i}=\frac{[{S}_{i,0}{e}^{{G}_{m,i}T}]{e}^{({G}_{m,i}-{L}_{m,i})T}}{\sum [{S}_{i,0}{e}^{{G}_{m,i}T}]{e}^{({G}_{m,i}-{L}_{m,i})T}}.$$
(8)

We defined enrichment factor (EF) as a ratio of fractions in a logarithmic scale in each phase. Therefore, the first phase EF of the i-th subpopulation is the following equation:

$$E{F}_{1,i} =\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{F}_{G,i}}{{F}_{I,i}}\right)=\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{S}_{i,0}{e}^{{G}_{m,i}T}}{\sum {S}_{i,0}{e}^{{G}_{m,i}T}}\,\frac{\sum {S}_{i,0}}{{S}_{i,0}}\right)\\ =\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{S}_{i,0}{e}^{{G}_{m,i}T}}{{S}_{i,0}}\,\frac{\sum {S}_{i,0}}{\sum {S}_{i,0}{e}^{{G}_{m,i}T}}\right),={G}_{m,i}+\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{\sum {S}_{i,0}}{\sum {S}_{i,0}{e}^{{G}_{m,i}T}}\right)={G}_{m,i}+{c}_{1},$$
(9)

Similarly, the second phase EF of the i-th subpopulation is the following equation:

$$E{F}_{2,i} =\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{{F}_{A,i}}{{F}_{G,i}}\right)=\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{\left[{S}_{i,0}{e}^{{G}_{m,i}T}\right]{e}^{({G}_{m,i}-{L}_{m,i})T}}{\sum \left[{S}_{i,0}{e}^{{G}_{m,i}T}\right]{e}^{({G}_{m,i}-{L}_{m,i})T}}\,\frac{\sum {S}_{i,0}{e}^{{G}_{m,i}T}}{{S}_{i,0}{e}^{{G}_{m,i}T}}\right),\\ =\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{\left[{S}_{i,0}{e}^{{G}_{m,i}T}\right]{e}^{({G}_{m,i}-{L}_{m,i})T}}{{S}_{i,0}{e}^{{G}_{m,i}T}}\,\frac{\sum {S}_{i,0}{e}^{{G}_{m,i}T}}{\sum \left[{S}_{i,0}{e}^{{G}_{m,i}T}\right]{e}^{({G}_{m,i}-{L}_{m,i})T}}\right),\\ ={G}_{m,i}-{L}_{m,i}+\frac{1}{T}{{{\mathrm{ln}}}}\left(\frac{\sum {S}_{i,0}{e}^{{G}_{m,i}T}}{\sum \left[{S}_{i,0}{e}^{{G}_{m,i}T}\right]{e}^{({G}_{m,i}-{L}_{m,i})T}}\right)\\ =(1-a){G}_{m,i}-{b}_{i}+{c}_{2}.$$
(10)

Therefore, when there is no G/L variability,

$$E{F}_{2}=\left(1-a\right)\left(E{F}_{1}-{c}_{1}\right)-b+{c}_{2}=\left(1-a\right)E{F}_{1}+\left(a-1\right){c}_{1}+b+{c}_{2},$$
(11)

which reflects a linear association between enrichment factors.

For community formulation and simulations, the number of strains in a population, N was set to 30. Each subpopulation initiates with the same size of 0.01/N subpopulations at time t = −4. Constant exponential growth rates (Gm,i) were assigned to each subpopulation within the range of 0.7–1.5/hr. The lysis rates were assigned by a set of ai and bi to the i-th subpopulation. For no G/L variability, ai and bi were set to be constant (a and b). For x% of G/L variability, x% of a random number was added to the constants. That is, ai and bi were ai = a + x% random number, bi = b + x% random number. Simulations with variability share one random number set (30 random numbers were generated to have mean ~0 and standard deviation ~1). Fractions of each subpopulation at t = −4, 0, and 4 (FI, FG, and FA) were retrieved for enrichment calculation. For non-treated population simulations with dilution factors, we resized the subpopulation by multiplying the dilution factor by all of the endpoint Si after the first phase simulation. All mathematical simulations were performed in MATLAB R2021a, with ode45 and ‘NonNegative’ option.

The interaction matrix was generated by the published code39, which requires the number of subpopulations, the ratio of the negative and positive interactions (50:50 was set in the community simulations), and maximum strength of negative and positive interactions as input of the code. The maximum positive interaction term was set to be half of the maximum negative interactions to reflect the higher negative interactions observed in the same publication. Two sets of uniformly distributed random numbers between 0 and 1 were generated and multiplied by the maximum positive and negative caps, respectively. The output of the code is an N-by-N matrix where the pairwise interactions of j-th subpopulation to the i-th subpopulation are assigned to the elements Iij. Diagonal elements are 0. Note that simulations in Fig. 3c, d share the same interaction matrix, the entire matrix was scaled to greater interaction strength. The same conclusion was drawn in the repeated simulations using a new random interaction matrix (Fig. S11).

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.