Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2026 Jul 21;22(7):e1014437. doi: 10.1371/journal.pcbi.1014437

Eco-evolutionary dynamics lead to functionally robust and redundant communities

Lorenzo Fant 1,2,3,#, Iuri Macocco 3,4,#, Jacopo Grilli 5,*
Editor: Chih-hao Hsieh6
PMCID: PMC13432115  PMID: 42479765

Abstract

Microbial communities are taxonomically diverse and variable: species presence and abundances widely fluctuate over time, space, and even across biological replicates under controlled experimental conditions. However, environmental conditions exert strong selection on the traits of community members and their functions. Similar environmental conditions are expected to produce functionally similar communities. This environmental selection, combined with taxonomic variability, leads to the influential concept of functional redundancy — the idea that many species can perform the same function, allowing communities with different species compositions to maintain identical functional profiles. Despite the centrality of functional redundancy in microbial ecology, we lack a theoretical understanding of its origin. Here we study the eco-evolutionary dynamics of communities interacting through competition and cross-feeding. We show that eco-evolutionary trajectories rapidly converge to a “functional attractor” — a functional composition uniquely determined by environmental conditions. Taxonomic composition follows non-reproducible dynamics while being constrained by the conservation of functional composition. Our framework provides a theoretical foundation for understanding functional robustness and redundancy in microbial communities.

Author summary

Microbial communities harbor thousands of species, and their taxonomic composition varies greatly across samples and over time. Yet, a growing body of evidence suggests that the collective functions performed by these communities are remarkably stable. This phenomenon, known as functional redundancy, implies that different species can substitute for one another without changing what the community does. Despite its importance, we lack a theoretical explanation for how functional redundancy arises. Here, we develop a mathematical model that couples ecological dynamics (competition for resources, cross-feeding of metabolic by-products) with evolutionary processes (mutations in metabolic capabilities and fitness). We show that, under a metabolic trade-off where consuming more resources incurs a higher cost, communities rapidly converge to a stable “functional attractor” determined solely by resource availability. While the identity and abundance of individual species continue to change, the overall functional profile remains fixed. Our results provide a mechanistic explanation for the widely observed pattern of functional redundancy and identify the conditions under which it holds or breaks down.

Introduction

One of the most fascinating aspects of microbial communities is their taxonomic diversity and variability. Thousands of species populate a gram of soil, and another gram collected just one meter away would have a different species composition [1]. This observation spans virtually all environments: from glaciers to oceans, from grasslands to guts.

This variability observed in natural communities is quantitatively similar across environments [2] and shows similar characteristics when measured between communities and over time [3]. The magnitude of this variability persists across a wide range of taxonomic resolutions [4,5] and in microcosm experiments under controlled conditions [6–8].

Although taxonomic composition is consistently variable, microbial communities are often clearly organized in terms of trophic levels, functional composition, or traits [9]. These functional patterns can even become visible to the naked eye in the presence of gradients, such as oxygen and sulfur gradients in Winogradsky columns or temperature gradients in hot springs. A trait-based description [9] is therefore more natural in these contexts, though it requires assuming a priori which traits the environment selects for reproducibility.

The coexistence of taxonomic variability and replicable functional organization led to the influential concept of functional redundancy [10–12]. This concept posits that since many species can perform the same functions, multiple species combinations can correspond to the same functional profile. Thus, taxonomic variability would mask the underlying functional robustness.

The evidence for functional redundancy and robustness is scattered, indirect, and mostly qualitative. Comparisons between taxonomic abundances and gene family abundances from metagenomic data (used as proxies of functional composition) show different levels of variation [11,12], with gene families being more stable and taxa widely fluctuating. In experimental communities, abundance at coarse taxonomic levels (used as a proxy for similar functional profiles) is much less variable than at fine taxonomic levels [6]. However, these comparisons are mostly qualitative and it is debated whether the results reflect robust biological processes or are statistically null [13].

Consumer-resource models are the main modeling framework for microbial communities. Their origin goes back to the classic work of MacArthur and Levins [14], which has been extensively studied and discussed in the following decades [15,16], mostly to describe the coexistence of a handful of species. These models have been further extended to consider facilitation through cross-feeding [6,17,18], where species change resource availability not only by consumption, but also because they release into the environment the waste products of their metabolism. These models qualitatively describe experimental results [6,19] and have the flexibility to reproduce patterns observed in empirical microbial communities [20].

Once the parameters of the model — such as consumers’ resource preferences and resources supply rates — are set and an initial pool of species is chosen, populations converge, over large enough times, to an equilibrium point. Under some mild conditions, identified over decades of theoretical work [21,22], consumer-resource models are characterized by a globally stable equilibrium: the steady state is independent of the initial population abundances and resource concentrations. The competitive exclusion principle — one of the most fundamental results of theoretical ecology — limits the number of species that can coexist in a stable equilibrium: diversity cannot exceed the number of resources. While this bound is hard, it is often not realized, as only fewer species can coexist [23,24].

The number and identity of the species coexisting at equilibrium are in fact determined not only by the ecological dynamics, but also by the initial pool of species. This initial pool of species is often interpreted as the metacommunity diversity: the ecological dynamics unfold in a local community which is coupled to the metacommunity by rare migrations. Most of the recent progress in understanding the assembly of large ecological communities has been driven by the assumption of random species pools [24–26]. This choice assumes that the parameters characterizing species’ physiological and ecological traits are independently drawn from some distribution. This assumption implicitly underlies a separation of spatial and temporal scales: the ecological dynamics determining the community composition in the local community occur independently of the evolutionary processes determining the pool of diversity of the metacommunity.

Instead of assuming a fixed species pool, one can allow individual traits to evolve dynamically, including the ones specifying their interactions with other individuals and the environment. Classic work in adaptive dynamics [27] has shown how, starting from a clonal population, diversification can evolve under general conditions of frequency-dependent selection. Several works have then studied eco-evolutionary dynamics of interacting populations [28,29], by allowing individuals’ traits to be subject to mutations and to be inherited by the following generation. “Intrinsic” fitness (how fast populations grow in an optimal environment) and niche differences (how the growth of different populations is coupled) both influence community evolution, and it is their interplay that determines the observed diversity of an evolved community [30].

A key difficulty in interpreting the outcomes of eco-evolutionary dynamics is the fact that there are no natural degrees of freedom to characterize the evolution of the community. The identity of populations, and not only their abundance, is under constant change. Here we show that the functional composition emerges as the natural variable that characterizes the composition of the community. In the setting of consumer-resource models, we identify the “function” as the individual ability to consume a resource and the “functional profile” as the fraction of individuals able to consume a given resource. This definition is natural in the context of community, functional, and trait-based ecology, and also provides a natural connection with the observations stemming from metagenomic studies, as the ability to grow on a given resource can be associated with the presence or absence of a given gene.

It is important to notice that this interpretation of “function” is not the only possible or interesting one. In particular, “function” is often used to refer to the services that microbial communities perform for their host or the environment. These functions cannot necessarily be reduced to a property of an individual cell, but they are rather emergent features of a community (e.g., the gut health of a host).

We consider the broad framework of consumer-resource-crossfeeding models under an explicit eco-evolutionary dynamics, where strains differ in their resource preferences and their intrinsic fitness. Higher resource intakes are balanced by lower efficiency (or equivalently, higher mortality) implemented by a metabolic trade-off [31–33]. While previous studies have characterized the ecological equilibria of consumer-resource models with fixed species pools [31,32], our work introduces explicit evolutionary dynamics — mutations and horizontal gene transfer — and demonstrates that the eco-evolutionary trajectories converge to the same functional attractor predicted by the infinite-pool limit. We analytically predict the stationary functional composition — here defined as the fraction of individuals able to grow on a given resource — and validate these predictions against the full eco-evolutionary simulations, including in the presence of cross-feeding. Interestingly, we show that, once the functional attractor is reached, the strain dynamics are then dominated by fitness differences, implying that functional composition is robust (independent of small fitness differences) and redundant (achieved under multiple strain compositions). This two-phase dynamics — fast functional convergence followed by slow fitness-driven taxonomic turnover — provides a mechanistic explanation for functional redundancy in microbial communities.

Results

Consumer-resource-crossfeeding model with metabolic tradeoff

Our ecological framework builds on the standard consumer-resource-crossfeeding model [17] that describes how microbial populations interact with their environment through resource consumption and metabolic exchange (see Fig 1). The per-capita growth rate of a strain μ is given by:

Fig 1. Eco-evolutionary dynamics in consumer-resource communities with cross-feeding and metabolic trade-offs.

Fig 1

The model integrates ecological competition for resources with evolutionary processes to explain functional redundancy in microbial communities. Community composition (top): While taxonomic composition exhibits high variability and turnover over time, functional composition Fi (fraction of individuals consuming each resource) converges to a stable, predictable attractor independent of strain identity. This can be interpreted as functional redundancy emerging from the interplay between ecological selection pressures and evolutionary innovation, allowing multiple taxonomic configurations to achieve identical functional profiles. Ecology (bottom left): Strains with consumption preferences aμi compete for resources with concentrations ci in an environment with cross-feeding, where fraction ℓ of consumed resources is converted and released as different metabolites. A metabolic trade-off penalizes generalists (consuming many resources) with reduced growth efficiency compared to specialists, while strains also differ in intrinsic fitness ξμ independent of their resource consumption abilities. Evolution (bottom right): Two types of mutations alter consumption preferences: spontaneous mutations that randomly change resource utilization capabilities, and horizontal gene transfer that allows acquisition of consumption traits proportional to their frequency Fi in the community. Intrinsic fitness values ξμ also mutate independently.

gμ(c―)=ημ((1−ℓ)∑i=1Raμiri(ci)−1τH(χ∑iaμi)(1−ξμ)) (1)

This equation captures several key biological assumptions. Individuals are characterized by their resource preferences aμi, which determine how efficiently they can consume each resource: aμi=0 means no consumption of resource i, while aμi=1 represents maximum consumption efficiency. The functional form ri(ci) encodes the dependency of the growth rate on the concentration ci of resource i (also known as functional response). We consider both linear and saturating (Monod-like) functional dependencies (see Materials and methods).

A key assumption in our approach is the metabolic trade-off implemented through the term H(χ∑iaμi), which is a monotonically increasing function of the sum of consumption rates ∑iaμi. This captures the cost of consuming more resources. The form of the trade-off generalizes the case considered in [31,32], which assumes a constant total energy budget devoted to metabolism (H(z)=z).

While in the Materials and Methods we show that our results hold for linear, sub-linear, and super-linear tradeoffs, in the main text we explicitly use the linear case H(z)=1 + z. When χ=0, there is no trade-off and generalists face no disadvantage. As χ increases, the cost of metabolic versatility becomes more severe. The fixed energy budget scenario [31,32] (H(z)=z) is recovered in the limit of large values of χ.

Resource dynamics are modeled explicitly, incorporating both consumption and cross-feeding. Resources are externally supplied at constant rates hi and consumed by populations proportionally to their preferences. A fraction (1−ℓ) of consumed resources is used for growth, while the remaining fraction ℓ is converted into different metabolites and released back into the environment. This cross-feeding process, described by a transformation matrix Dij, allows populations to indirectly benefit from resources they cannot directly consume [17]. Specifically, the concentration ci of resource i evolves according to

dcidt=hi−∑σnσaσiri(ci)+∑jDijℓ∑σnσaσjrj(cj) , (2)

where the first term represents the external supply of resources, the second term represents consumption, and the third captures cross-feeding (see Materials and methods for full details).

The parameter ξμ represents intrinsic fitness differences. These are physiological variations that modulate the maintenance cost of an individual, independent of its resource utilization pattern. In the per-capita growth rate (Eq. 1), ξμ enters as a multiplicative factor (1−ξμ) on the death rate. This is mathematically equivalent to a fitness effect on the net growth rate (see Materials and methods). Such differences, which we refer to as intrinsic fitness, determine which population survives when two populations with identical resource preferences are competing. We use the term “strain” to identify groups of individuals sharing both identical resource preferences and intrinsic fitness values, while “ecotype” refers to strains with the same resource preferences but potentially different intrinsic fitness.

Evolution of resource preferences and intrinsic fitness

The evolutionary component of our model allows both resource preferences and intrinsic fitness to change through mutation. This dual evolution captures two distinct types of genetic changes observed in microbial populations: those affecting ecologically relevant phenotypes (such as losing the ability to transport a specific sugar) and those affecting general cellular processes (such as changes in ribosome efficiency) [30].

Mutations affecting resource preferences follow biologically motivated rules. The rate at which a strain loses the ability to consume a resource is constant, reflecting the general tendency for unused metabolic capabilities to be lost. Conversely, the rate of gaining new metabolic capabilities depends on two mechanisms: horizontal gene transfer, where the acquisition rate is proportional to how common that capability is in the population, and de novo mutations, which occur at a constant background rate. We consider different implementations of the mutational steps (e.g., including different scenarios for the relative rate of horizontal gene transfer, see Materials and methods) which, however, do not affect the results that are presented in the following.

Intrinsic fitness mutations are modeled as small random changes. We consider two radically different implementations of fitness evolution. As a first scenario, We consider the new value of the intrinsic fitness is drawn at random from a fixed distribution of width ϵ, independently of the parent’s fitness value. To ensure that the intrinsic fitness does not evolve directionally we extract a random value using the phenotype as a seed of the generator. This guarantees that the intrinsic fitness does not evolve towards the tails of the distribution by multiple extractions of the same species. The parameter ϵ controls the magnitude of fitness differences between strains, allowing us to explore scenarios ranging from nearly neutral evolution (small ϵ) to strongly selective regimes (large ϵ). We focus on the case of small fitness differences and extensively explore the effect of increasing ϵ values (see Materials and methods). This scenario is consistent with the biological interpretation that fitness differences arise from context-dependent factors (e.g., phage susceptibility, temperature adaptation) rather than from progressively optimizable traits [30]. This latter case corresponds to the second scenario, where we allowed ξμ to evolve as in a a staircase model, which mutations leading to larger fitness values without bound (see Materials and methods). Fig A in S1 Appendix shows that the second scenario leads to the same results.

The eco-evolutionary dynamics unfold as a sequence of ecological equilibration followed by successful invasions. When a new mutant appears, it faces demographic stochasticity during its initial growth phase. We account for this by calculating survival probabilities based on the mutant’s growth rate in the current environment (see Materials and methods). Only mutants that survive this bottleneck can potentially invade and alter the community composition.

This framework allows us to study how functional composition emerges and stabilizes even as the taxonomic composition of communities continues to evolve. The interplay between ecological selection (favoring efficient resource utilization and higher intrinsic fitness) and evolutionary constraints (the metabolic trade-off) drives the eco-evolutionary dynamics.

Eco-evolutionary dynamics produce stable functional attractors despite strain-level variability

Starting from a clonal population, a diverse community is rapidly assembled. Strain abundances change abruptly following successful invasion events and continue changing over the whole duration of the simulations (Fig 2A).

Fig 2. Stability of functional occurrences Fi for communities evolving under a consumer-resource model.

Fig 2

The system is initialized with a small number of initial random strains, chosen so that each gene is present at least once. The system evolves in a chemostat with fixed resources input. When equilibrium is reached, one mutant is added to the batch. The chemostat then equilibrates to a new fixed point and the procedure is repeated until function and biomass reach stability. A: Time evolution of the relative abundances of individual strains for one realization of the system. Each colored line represents a different strain; strains appear and disappear as invasions and extinctions occur. B: Time evolution of functional occurrences Fi for three different realizations of the system (distinguished by line style). Different colors represent different resources. 15 resources are given. The three realizations converge to the same functional profile despite starting from different initial conditions. C: Time evolution of the total biomass of the system. 20 realizations of the system are shown for each value of average resource income.

However, the final community structure is remarkably simple if, instead of analyzing strain abundances, we focus on its functional composition. We define functional occurrence Fi as the community consumption rate, averaged across individuals (see Materials and methods). After a short transient, the functional occurrences and the total biomass N relax to their respective stationary values Fi* and N*, which are very reproducible across different realizations (Fig 2B and 2C).

This behavior reveals that two phases characterize the eco-evolutionary dynamics (see Fig 2). The first phase is an initial-condition-dependent transient, where the community structure is mainly shaped by rapid invasions. In the second phase, conversely, the community has converged to a stable functional composition, which we refer to as the “functional attractor” in the following, and slowly evolves while reaching the final strain-level equilibrium. It is important to note that this attractor represents a region in the functional space, rather than a single static point. Although the community’s functional profile remains globally stable and predictable, it can exhibit minor fluctuations as the underlying taxonomic composition shifts due to ongoing, albeit slow, evolutionary dynamics.

This result is stronger than the expectation that total resource consumption must balance supply at equilibrium. While the balance of consumption and supply constrains the total consumption rate of each resource, it does not, by itself, predict how resource consumption is distributed across individuals. The functional occurrence Fi — the fraction of individuals consuming resource i — is uniquely determined by environmental parameters, independently of which specific strains is part of the community. This independence from the species pool is a non-trivial consequence of the metabolic trade-off, which allows the Lyapunov function governing the ecological dynamics to be expressed purely in terms of the total biomass N and the functional occurrences {Fi}, without reference to individual strain abundances (see Materials and methods). If the species pool is too limited to adequately explore the functional space, the community cannot converge to the predicted functional composition (Fig B in S1 Appendix).

Notably, the total biomass converges to a constant value during the second phase of the eco-evolutionary dynamics, which therefore affects only the relative abundance of strains. The sequence of invasions and extinctions of strains is determined by the interplay of fitness differences ξμ and niche differences, which are related to the dissimilarity of the resource preferences. Importantly, the trajectories of strain abundances are effectively constrained to occur within the lower-dimensional space determined by the constraints enforced through the functional occurrences Fi*. The strains involved in this turnover typically differ in their resource preference vectors (i.e., they belong to different ecotypes), not just in their intrinsic fitness values. The functional redundancy is therefore genuine and not merely a consequence of near-identical strains replacing each other.

During this second phase, the community has thus reached “functional maturity”, and the subsequent evolution — driven by intrinsic fitness differences — only affects strain composition while leaving the functional composition unaltered.

Infinite-pool model captures functional attractor properties

The stability and reproducibility of the functional attractor suggest that it is possible to predict analytically its properties. We considered a toy model of the eco-evolutionary dynamics that aims at mimicking the effective exploration of the phenotypic space performed by mutations. In particular, we consider only the ecological dynamics, initialized with an infinitely large species pool, which encompasses all possible strains (e.g., which would correspond to 2R possible resource preferences in the case of aμi∈{0,1}). A similar approach has been considered to study a simpler version of the model [31] (corresponding to the limit χ≫1 and no cross-feeding). The toy model further postulates a timescale separation between resource and population dynamics [31,32], which is not assumed in the full eco-evolutionary dynamics.

This simplified framework allows for analytical solutions. The consumer-resource-crossfeeding model with an infinite pool of diversity and no intrinsic fitness differences can be analytically solved. In the Materials and Methods, we show that the stationary functional occurrences Fi* and the total biomass N* are given by

Fi*=min{hieffχ1N*,1} (3)

and

N*=∑ihieffR(1+χ∑iFi*) . (4)

Here, the parameter hieff is the effective resource inflow into the system, which accounts for both externally supplied resources and those internally recycled through cross-feeding. Specifically, hieff=(1−ℓ)∑jBijhjwj where B=(I−ℓD)−1 captures the amplification of resource availability due to metabolic recycling (see Materials and methods).

The analytical calculations are based on many simplifying assumptions (infinitely large pool of diversity, no explicit resource dynamics, absence of fitness differences) which do not strictly hold for the more complex setting of the eco-evolutionary model. The close agreement between these analytical predictions and the full simulation results suggests that the eco-evolutionary dynamics are effective at exploring the landscape of possible phenotypes, mimicking the ’infinite-pool’ assumption. Even with a finite set of evolving strains, the continuous introduction of mutations allows the community to eventually find and converge upon the same functionally optimal state predicted by the simplified model. This indicates that the properties of the attractor are primarily governed by fundamental environmental and metabolic constraints rather than the specific trajectory of evolution. Nevertheless, Fig 3 shows that the predictions of Eq. 3 and Eq. 4 accurately describe the outcomes of the eco-evolutionary dynamics.

Fig 3. The theoretical predictions given by eqs. 14, 15 (solid lines) are reproduced by numerical integration of eqs. 5, 6 (markers).

Fig 3

A: Occurrence of the phenotypes Fi as a function of resource income rates hi. According to equation 14 the most abundant resources (core) are consumed by all strains (Fi=1) while the remaining ones only by a fraction Fi=hiN*χ. Notice that increasing χ reflects in a decrease of the number of core resources. B: Dependence of the total equilibrium population N* (biomass) on the value of χ. Here we find a dependence on the average resource income h―, which is absent for quantities in panel A. In each figure are represented 20 different noise realizations solutions of the system for each χ (A) and each h― (B).

Resources can be divided into two groups according to their effective influx rate hieff. If the influx rate is larger than a critical value hceff, then the ability to metabolize that resource is a “core” function, shared by all the individuals in the community (i.e., Fi*=1 or equivalently aμi=1 for all the strains present in the community). The value of hceff depends on both the spread of the effective influx rate (the variability among the hi) and the metabolic cost χ. The higher the metabolic cost and the variability, the higher the critical influx rate threshold hceff and, consequently, the fewer the core resources.

At equilibrium, the resources with an influx rate below the critical threshold (i.e., the non-core resources) are consumed only by a fraction of the individuals. A linear relation links the functional occurrence Fi* with the effective resource influx rate hieff. The slope of this relation is simply related to the metabolic cost and the total biomass, being equal to (χN*)−1 (see Materials and methods). By combining Eq. 3 and Eq. 4, one can obtain an explicit expression for N*. Fig 2B shows that the analytical expression for N* (as a function of the metabolic cost χ) correctly matches the observations of the eco-evolutionary dynamics.

Functional composition demonstrates robust redundancy against fitness variation

An emerging feature of the present framework is that the functional composition of communities is extremely robust to fitness differences. We further explore this aspect by considering the community response to variation in intrinsic fitness. This variation mimics the temporal or spatial heterogeneity of environmental factors that influence growth, such as abiotic factors (temperature, pH, salinity, etc.) or phages with different host ranges.

We consider two complementary scenarios, which aim at exploring cross-sectional (across communities) and longitudinal (over time) variation. In the cross-sectional case, we compare the eco-evolutionary outcomes of several communities that share the same resource input but have independent intrinsic fitness values. Under this scenario, two individuals with the same resource preference will have uncorrelated intrinsic fitnesses between two different communities.

The longitudinal case assumes instead that intrinsic fitness fluctuates over time according to an Ornstein-Uhlenbeck process with a characteristic autocorrelation timescale τcorr (see Materials and methods). Over time ranges shorter than τcorr, intrinsic fitness is approximately constant. Over times larger than τcorr, intrinsic fitness decorrelates and becomes independent.

Figure 4 shows the strain and functional composition of communities in the two scenarios described above. In the cross-sectional case (Fig 4A and 4B), each community is evolved to the functional attractor with independent intrinsic fitness values: the strain composition differs markedly across communities, while the functional profile is largely unaffected by fitness variation. The longitudinal case (Fig 4C and 4D) shows a single community evolving over time with fluctuating intrinsic fitness. Unlike Fig 2A, where the community is assembling from scratch (with both functional and taxonomic composition changing during the transient), Fig 4C depicts a community that has already reached the functional attractor. The subsequent taxonomic turnover is driven entirely by the fluctuating fitness landscape and proceeds at a rate controlled by the autocorrelation timescale τcorr (Fig C in S1 Appendix). A linear time axis is used in Fig 4C (as opposed to the logarithmic axis in Fig 2) because the turnover dynamics are stationary, without the initial transient that requires log-scale visualization.

Fig 4. Fitness differences demonstrate functional stability.

Fig 4

While strain composition becomes highly variable and heterogeneous, the functional composition is preserved and unaffected by intrinsic fitness variation. A, B: Cross-sectional comparison of equilibrium configurations across communities with different realizations of intrinsic fitness values (static, i.e., constant in time for each community). Each bar in A represents a different community; colors denote distinct strains. B shows the corresponding functional occurrences, which remain nearly identical across communities. C, D: Longitudinal dynamics of a single community where intrinsic fitness values fluctuate over time following an Ornstein-Uhlenbeck process (see Materials and methods). C shows that strain composition turns over continuously as fitness values change, while D shows that functional occurrences remain stable throughout.

These observations clearly show that functional redundancy naturally emerges in complex consumer-resource-crossfeeding models, closely reproducing the phenomenology observed in microbial communities [12].

To assess the generality of our findings, we tested the robustness of our predictions beyond the assumption of universal cross-feeding. In the model, we initially assume that the cross-feeding matrix is universal (strain-independent). To test the robustness of our predictions to this assumption, we examined communities where each ecotype has its own randomized cross-feeding matrix (see Materials and methods). Even under these more realistic conditions, the functional occurrences Fi* still depend on the effective resource influx rates hieff in a manner consistent with our analytical predictions (Fig D in S1 Appendix). The relationship between functional composition and resource availability remains present, though with fluctuations around the ecotype-independent cross-feeding matrix case. Most importantly, functional composition remains robust to intrinsic fitness differences even when cross-feeding matrices vary across ecotypes, confirming that functional redundancy emerges even without universal metabolic stoichiometry.

Robustness of the functional attractor

The functional attractor is robust across a wide range of model assumptions, but its existence requires specific conditions. We systematically explored the sensitivity of our results to key parameters and modeling choices.

Conditions for the attractor. The metabolic trade-off (χ>0) is essential: without it, the Lyapunov function no longer depends on the functional occurrences {Fi}, and no selection pressure favors a specific functional composition. Similarly, the species pool must be large enough, or the evolutionary dynamics must run long enough, for the community to effectively explore the functional space. When only a small number of strains is available and no evolutionary dynamics is allowed, the community cannot converge to the predicted functional composition (Fig B in S1 Appendix). The eco-evolutionary dynamics play a key role in mimicking the effect of an infinite species pool, allowing convergence even from a small initial community. The number of resources R does not qualitatively affect the existence of the attractor: the relationship between functional occurrence and effective resource influx holds for R ranging from 5 to 25 (Fig E in S1 Appendix).

Fitness differences. Small intrinsic fitness differences (ϵ≤10−2) do not alter the functional composition (Fig F in S1 Appendix). Larger differences (ϵ~0.1) partially disrupt the attractor, and very large differences (ϵ~0.6) destroy it entirely: the functional profile becomes decoupled from the resource input and dominated by the resource preferences of the fittest strains (Fig G in S1 Appendix). The relevant comparison is between ϵ and the metabolic cost χ: when ϵ/χ≫1, fitness effects dominate over metabolic constraints.

Evolutionary parameters. The mutation rate, the ratio of gene loss to gain events, and the relative contribution of horizontal gene transfer versus de novo mutation all affect the speed of convergence to the attractor but not its final state (Fig H in S1 Appendix).

Functional response and trade-off shape. The choice of functional response — linear (ri(ci)=ci) or Monod (ri(ci)=μmaxci/(Ks+ci)) — does not affect the functional composition (Fig I in S1 Appendix). Non-linear trade-offs, both super-linear (H(z) = (1 + z)2) and sub-linear (H(z)=log(1+z)), also produce convergence to a reproducible functional composition with core and non-core resources approximately linearly related to effective resource influx rates (Figs J and K in S1 Appendix).

Cross-feeding structure. Neither the strength nor the structure of the cross-feeding matrix affects convergence to the attractor (Fig L in S1 Appendix). The functional composition is robust even when cross-feeding matrices are ecotype-specific, varying from universal to fully strain-dependent stoichiometry (Fig D in S1 Appendix).

Discussion

Our results shed light on the composition of large ecological communities. While previous work has demonstrated that consumer-resource models with fixed species pools and metabolic trade-offs converge to ecological equilibria with specific functional properties [31,32], our work extends this in three important directions. First, we show that explicit eco-evolutionary dynamics — where strains are not drawn from a fixed pool but arise through mutation and horizontal gene transfer — reproduce the same functional attractors, demonstrating that evolution effectively mimics an infinite species pool. Second, we incorporate cross-feeding, which introduces effective resource influx rates hieff that account for metabolic recycling, extending the analytical predictions to a wider class of models relevant to microbial communities [6]. Third, we show that the separation of the dynamics into a fast (functional) and a slow (taxonomic) phase provides a mechanistic explanation for the empirically observed phenomenon of functional redundancy [11,12], connecting theoretical ecology with metagenomics observations.

When the pool of diversity is not a-priori constrained but is instead allowed to evolve, the complex ecological dynamics can be decomposed in a fast, predictable, phase and a slow one, contingent on the (small, yet relevant) fitness differences. The community composition rapidly converges to a set of states, fully determined by resource availability. The ecological dynamics that follows is constrained on that subspace of solutions and is governed by the difference in relative fitness. Remarkably, this separation of fast and slow components directly maps into functional and taxonomic composition: the former is robust and governed only by effective resource influx rates, the latter is constrained by function, but free to move along functionally equivalent directions.

In our setting, the functional profile is defined by the average resource consumption rate. While it is expected that in an assembled community each niche is occupied (i.e., at least one ecotype is able to grow on each resource), our result is much stronger, showing that also the fraction of individuals able to grow on each resource is highly reproducible.

The functional robustness and functional redundancy are the direct consequences of the existence of the two dynamics phases that directly map onto taxonomic and functional variation. Functional robustness, the observation that functional composition is stable over time and across communities, originates from the existence of a functional attractor of the eco-evolutionary dynamics. While intrinsic fitness differences are small, they are not negligible as they determine the taxonomic composition within the functional attractor. Variation of the intrinsic fitness leads to functional redundancy, high taxonomic variability with conserved functional profile. The mechanism buffering the functional profile from this underlying taxonomic variation can be understood through a separation of selective pressures. The primary selective pressure, driven by resource availability and metabolic trade-offs, rapidly shapes the overall functional composition of the community, forcing it into the functional attractor. Once the community resides within this attractor, the direct selection pressure on function is weak. At this stage, the much smaller intrinsic fitness differences (determined by ξμ) become the dominant factor in determining the competitive success among functionally similar strains. This secondary selection drives the turnover of strains without altering the conserved functional roles, as any new successful invader must still conform to the constraints imposed by the attractor.

The assumption of small intrinsic fitness differences is critical for observing functional robustness and redundancy. Increasing the magnitude of fitness differences also affects the functional profile. Typical intrinsic fitness differences of 1% do not substantially alter the functional composition (Fig F in S1 Appendix). However, larger differences (of the order of 10%) disrupt the structure of the functional attractor: the functional composition is determined by the resource preferences of the individuals with the largest intrinsic fitness, and the functional profile becomes largely decoupled from the resource input (see Figs F and G in S1 Appendix). Differences of 0.1% and smaller are indistinguishable from the analytical prediction, and the functional profile closely matches that predicted by the resource influx rates.

While our main analysis assumes universal cross-feeding stoichiometry across strains, this assumption is not critical to our main conclusions. The functional universality persists even when different ecotypes convert resources through distinct metabolic pathways with ecotype-specific cross-feeding matrices (Fig D in S1 Appendix). This robustness suggests that functional convergence arises from the constraints imposed by resource availability rather than from the specific details of metabolic conversion pathways. Even when individual ecotypes have unique metabolic stoichiometries, the community as a whole establishes an effective metabolic network. The functional attractor is then determined by the community-averaged effective resource influx (hieff), which emerges from the collective metabolic activity of all coexisting strains, weighted by their abundances. This emergent, community-level property smooths over the underlying ecotype-specific variations, ensuring that the relationship between resource supply and functional composition remains predictable and robust.

The existence of these different regimes, where the functional composition is or is not affected by intrinsic fitness differences, is strictly related to the identification of the limiting factors shaping the communities. As mentioned previously, the intrinsic differences could be due to abiotic factors, but also to limiting factors other than resource availability (e.g., phages). If resources are limiting, we can expect that other factors will have a minimal effect on strain success. Conversely, if resources are not the limiting factors and other mechanisms determine strain growth and decline, the distribution of functional preferences in the population will not be robust, as it will be subject to the fluctuations of the other limiting factors.

Importantly, our results hold in the very specific setting of consumer-resource models considered here, where “function” is interpreted as the ability of an individual to grow on a given substrate. Our framework could be extended to explicitly include the factors responsible for intrinsic fitness differences (e.g., temperature ranges).

The metabolic trade-off is an essential ingredient of our framework. We focused on a fitness cost that is linear in the total rate of resource consumption, generalizing models with a fixed total rate [31,32] by including a basal maintenance cost. This basal cost becomes negligible if the cost per gene, relative to the basal cost, becomes very large. The presence of a non-zero basal cost determines the existence of core resources, whose consumption is shared by all individuals in the community. The form of the functional attractor is a mathematical consequence of the linearity of the metabolic trade-off. For linear trade-offs, the functional attractor is fully specified by the functional composition and is, in the limit of negligible fitness differences, independent of how functions are distributed across ecotypes. While non-linear trade-offs [33] could, in principle, affect the properties of the eco-evolutionary attractor, we explicitly consider both super-linear and sub-linear trade-offs and show that our results are qualitatively unchanged. The taxonomic composition is largely affected by fitness differences, while the functional composition remains robust. The stable functional composition displays core and non-core resources, which are (at least approximately) linearly related to the effective resource influx rates.

A remarkable aspect of our framework is that functional composition — as opposed to taxonomic composition — naturally emerges as the relevant, reproducible degree of freedom well suited for characterizing ecological communities. Our results demonstrate that the emergence of a stable and reproducible functional composition is a universal feature of consumer-resource-crossfeeding models [6]. This property is likely to hold more generally and not be restricted to consumer-resource systems or microbial communities. We expect that a similar approach could be developed to study mutualistic communities or pathogen dynamics.

Materials and methods

Definition of the model

We consider a consumer-resource model in presence of cross-feeding [17], which describes the dynamics of population abundances nσ (for σ∈𝒮) and resources concentration ci (for i∈R). Changes in population abundance are defined by

dnσdt=nσ(ησ∑i∈Rℰiσg−δσ) . (5)

where δσ is a death term and ησ is the efficiency of the conversion of energy into biomass. ℰiσg is the energy flux used for strain σ to grow from metabolite i. We can similarly define the energy flux ℰiσin into a cell from resource i and the energy released in the environment by the cell ℰiσout in the form of other metabolites obtained from from metabolites of type i. The associated dynamics of resource concentration ci is defined by

dcidt=hi(ci)−1wi∑σ∈𝒮nσℰiσin+1wi∑σ∈𝒮nσℰiσout , (6)

where wi defines the conversion between energy and concentration of resource i. The function hi(ci) specifies the dynamics of resource concentration in absence of consumers.

We assume that energy fluxes used for growth are a constant fraction 1−ℓ of the total ones: ℰiσg=(1−ℓ)ℰiσin. The energy fluxed from secreted metabolites is then given by ℰiσout=ℓ∑j∈RDijℰjσin. The cross-feeding matrix element Dij defines energy conversion between resource j and resource i. Energy conservation implies ∑iDij=1.

The energy flux ℰiσin takes the form

ℰiσin=wiνiaσiri(ci) , (7)

where ri(ci) is a non-decreasing function of the concentration of resource i and νi is the maximal intake rate of resource i. The elements aσi∈[0,1] measure the intake rate of metabolite i strain σ relative to the maximum νi. Here we focus on the case of externally supplied resources hi(ci)=hi, which assumes that dilution is negligible when the total population is around the carrying capacity [32].

We focus on a linear metabolic trade-off by assuming for death rates and yield the expression

δσησ=1τ(1+χ∑j∈Raσj)(1−ξσ) . (8)

Without loss of generality, we can set the timescale τ=1 equal for all strains, as differences in τ can be reabsorbed in the definition of ξσ. In the simple setting of aσj∈{0,1}, the parameter χ measures the cost of being able to metabolize each metabolite (χR is the fitness metabolic cost of a generalist).

Functional attractor

In the eco-evolutionary simulations, we always consider resources and populations changing over a similar timescale. To make analytical progress we approximate the full dynamics with the effective one obtained by assuming timescale separation — i.e., resource concentrations equilibrate faster than the changes in population abundances. We underline that we assume the separation of timescales only as an approximation, for the purpose of predicting analytically the outcomes of the numerical simulations, which are always obtained with explicit resource dynamics.

In this case, one can effectively describe the dynamics of populations as

dnσdt=nσ(ησ∑i∈Raσiνihieff∑μ∈𝒮nμaμiνi−δσ) , (9)

where hieff=(1−ℓ)∑j∈RBijhjwj and the matrix B=(I−ℓD)−1. It is useful to notice that, in the limit χ→∞ and hieff→∞ (such that the ration hieff/χ is finite in the limit) reduces to the model with constant total energy budget [31,32]. It is known [31] that

L({n})=∑σδσησnσ−∑ihiefflog(∑σνiaσinσ) , (10)

is a Lyapunov function. With our choice for the metabolic trade-off (8), such functional can be conveniently rewritten as

L({n})=∑σnα(1+χ∑j∈Raσj)(1−ξσ)−∑ihiefflog(∑σνiaσinσ) . (11)

We then introduce the total population size N=∑σ∈𝒮nσ and define the functional abundances Fi as

Fi=∑σ∈𝒮aσinσN , (12)

which correspond to the fraction of individuals that are able to metabolize resource i. Interestingly, and surprisingly, when ξσ=0, the Lyapunov function can then be written as function of N and {F} alone:

L(N,{F})=N(1+χ∑j∈RFj)−∑j∈Rhjefflog(NνjFj) . (13)

The fact that the Lyapunov function depends only on the total biomass and the functional profile already suggest, even if it does not imply, that functional abundances are the relevant variable for the study of community composition.

By minimizing the function over Fi in [0,1] one obtains

Fi*=min{1,1N*hieffχ} , (14)

where the total biomass is the solution of

N*=∑j∈Rhjeff(1+χ∑j∈RFj*) . (15)

These equations can be solve iteratively, starting from Fi=1 ∀i and N=∑j∈Rhjeff/(1+χR).

In the case with no intrinsic fitness differences (ξσ=0), the equilibrium solutions are identified by equations 14 and 15. For a given system, a fraction of resources will be core resources, i.e., shared by everyone Fi*=1. These core resources are the ones for which hieff≥χN*.

Eco-evolutionary dynamics

The mutation probability of a preference of resource i in strain μ depends on whether μ consumes or not i. The rate U-,i at which a mutant μ~ stops consuming resource i (the parent has ai=1 and the mutant ai=0) is constant, independent of i, and equal to U-. The rate at which a mutant starts consuming a resource i (the parent has ai=0 and the mutant ai=1) equals to U+,i=U+(PhFi+Pdn). The quantity Ph is the probability that an addition happens because of horizontal gene transfer, while Pdn=1−Ph the probability of “de-novo” mutations. The rate of horizontal transfer is proportional to the frequency Fi of that allele in the population, while the rate of a de-novo mutation is independent of i.

The rate at which the resource preference i mutates in strain μ is then equal to

Wμ,imut=bμnμ(aμiU−,i+(1−aμi)U+,i) , (16)

where bμ is the per-capita birth rate on strain μ, which is equal to

bμ=ημ∑jaμjrj(cj) . (17)

In theory one could expect a new mutant to have abundance 1. The initial phase of its dynamics is then dominated by demographic stochasticity, with many mutants going to extinction despite having a positive (average) growth rate. In our framework, we do not consider this effect of demographic stochasticity explicitly, but we include it effectively. Since the initial abundance of the mutant μ~ is a small fraction of the total population, its stochastic dynamics can be approximated by a stochastic exponential growth. In this regime, the per-capita birth rate of the mutant is given by (1−ℓ)∑iaμ~iri(ci*), where ci* is the concentration of resource i prior to the mutant arrival. The per-capita death rate of the mutant reads (1+χ∑iaμ~i)(1−ξμ~). Under the assumption of a stochastic exponential growth the survival probability is given by

pμ~surv=1−min(1,(1+χ∑iaμ~i)(1−ξμ~)(1−l)∑iaμ~iri(ci)) . (18)

The strain intrinsic fitness values ξμ are independently drawn from a Gaussian distribution with mean 0 and standard deviation ϵ.

By calculating all these quantities for all possible mutations of all existing strains, one obtain the rate of invasion Wiμinv of a mutant μ~ which is obtained by changing the resource preference of strain μ for resource i. The rate of invasion Wiμinv reads

Wμ,iinv=Wμ,imutpμ~surv , (19)

where the mutant μ~ differ from μ in the resource preference i.

We simulate the eco-evolutionary dynamics as a sequence of discrete small time steps Δt. After a step of integration of equations 5 and 6 we update the values of Wiμinv, as they depend on strain abundances, and checked whether a mutant appeared. Each mutant, identified by the parent strain μ and a resource i, has probability WiμinvΔt to invade. If such an event occurs, the new mutant is introduced with an initial relative density equal to 10-5.

If no mutations appear for a long enough time, the ecological dynamics (obtained by integrating equations 5 and 6) reach an equilibrium point, identified numerically when the absolute value of the population growth rate is lower than 10-4. If the strain abundances are not changing, also the rates of invasions Wiμinv are constant in time (until the next successful invasion), and one can use a Gillespie algorithm. The time of the next successful invasion is drawn from an exponential distribution with average T=1/∑iμWiμinv. The probability that the new mutant will replace strain μ differing in resource preference i is simply TWiμ.

Choice of parameters and sensitivity analysis

The results presented in this paper were achieved using generic parameters, whose details can affect the distribution of taxa or relaxation time but not the macroscopic observables that characterize the functional attractor. In order to quantify the convergence to the functional attractor, we measure the discrepancy between the functional composition of the community during its eco-evolutionary trajectory and the functional composition predicted by equations 14 and 15. As a measure of the discrepancy, we consider the Kullback-Leibler divergence between the normalized functional profiles

dKL=∑iFi*∑jFj*log(Fi*∑jFj*∑jFjFi) . (20)

The divergence dKL is equal to zero if and only if the functional composition of the community (quantified by the Fi) matches the analytical expectation, i.e., if Fi=Fi* for all the i.

We considered ησ=νi=wi=1 in eq. 5 and 6. These choices do not affect the results, as they do not affect the ecological fixed point and its stability property (up to a rescaling of the abundances and concentrations). The timescale τ was also set to 1, without loss of generality.

Functional responses. In the main text we considered ri(ci)=ci. We explore the effect of non-linear intake functions ri(c) by considering a Monod-like form ri(ci)=μmaxci/(ci+Ks) with different values of Ks. Fig I in S1 Appendix shows that the value of Ks has no effect on the functional composition of evolved communities.

Intrinsic fitness differences. The intrinsic fitness of any new mutant was drawn from a Gaussian distribution with mean zero and variance ϵ2, independently of the fitness of the parent. In the main text we considered ϵ=0.001. Fig F in S1 Appendix explores the sensitivity of the results to the magnitude of the noise. Much larger values of noise (of the order 0.1) often disrupt the properties of the manifold. For instance, strains not consuming core resources are still able to survive because of high intrinsic fitness. For intrinsic fitness differences with a width of the order of 10-2, the functional composition converges to the analytical prediction, which becomes more and more accurate as fitness differences decrease.

Longitudinal fitness fluctuations. In the longitudinal scenario (Fig 4C and 4D), the intrinsic fitness of each existing strain fluctuates over time according to an Ornstein-Uhlenbeck process:

dξμdt=−ξμτcorr+ϵ2τcorrζμ(t) , (21)

where τcorr is the autocorrelation timescale and ϵ controls the stationary standard deviation of the fitness fluctuations. The term ζμ(t) is a delta-correlated noise. This process ensures that, at stationarity, the intrinsic fitness of each strain is drawn from a Gaussian distribution with variance ϵ2, matching the cross-sectional case. The autocorrelation timescale τcorr determines the rate at which the taxonomic composition turns over: faster decorrelation leads to more rapid strain replacement. Fig C in S1 Appendix quantifies the autocorrelation of taxonomic and functional composition for different values of τcorr, confirming that functional composition remains stable regardless of the turnover rate.

Intrinsic fitness staircase evolution. To ensure that our specific choice of intrinsic fitness evolution was not key to our results we repeated our simulations using a staircase model for the evolution, where the intrinsic fitness of the offspring is inherited from the parent with a multiplicative mutation ξparent→ξoffs.=ξparenteϵξ~μ. To ensure that this would not bring the system towards diminishing intrinsic fitness differences we rewrote the death rate as

(1+χ∑iaμi)ξμ

Such a model returned the same results as the main model used in the manuscript as shown in Fig A in S1 Appendix.

Timescale interpretation. Time in the model is measured in units of the inverse dilution rate τ. In chemostat-like microbial systems, dilution rates are typically D~0.1−1 per hour, so one model time unit corresponds to approximately 1−10 hours. Convergence to the functional attractor occurs within ~107 time units (corresponding to ~103−104 years), after which the eco-evolutionary dynamics enters the second, taxonomic phase. The convergence timescale is controlled by the mutation rate: higher mutation rates accelerate convergence (Fig H in S1 Appendix). The key result, however, is the existence and universality of the functional attractor, not the precise convergence time.

Structure of the cross-feeding matrix. The strength of cross-feeding ℓ has no effect on convergence to the functional attractor (Fig L in S1 Appendix). The cross-feeding matrix D has been chosen following ref. [34]. The entries were extracted according to a Dirichlet distribution, where the resources are in three classes. We considered an effective sparsity of s = 0.1. The fraction of resources remaining in the same class was fs=0.7 while the ones going to the waste class is fw=0.28. The structure of the cross-feeding matrix D does not affect the stationary functional composition of the community. Fig L in S1 Appendix the structure described above with one obtained by sampling all the entries from a uniform distribution (which correspond to the single class case and no-sparsity of ref. [20], observing no difference in the results).

Mutation rates. Fig H in S1 Appendix shows that the outcomes of the evolutionary trajectories are independent of frequencies of the different mutation steps. We varied the (average) total mutation rate Utot=(U++U−)/2, the ratio U−/U+ between mutation leading to deletions of resource preferences (with rate U-) and the ones leading to additions (U+), and the ratio Ph/Pdn between horizontal gene transfer and de-novo mutations. While the total mutation rate, and partially the ratio U−/U+, affected the evolutionary trajectories and speed of adaptation, none of these parameters affected the convergence of the functional composition to the predicted attractor.

Non-linear tradeoff. Both the eco-evolutionary simulations and the analytical approximation are based on the assumption that the metabolic cost is linear in the consumed resources, as expressed in equation 8. In general, one could assume a non-linear tradeoff [33] that takes the form

δσησ=1τH(χ∑j∈Raσj)(1−ξσ) , (22)

where H(z) is an arbitrary non-linear, monotonically increasing, function. The linear case, on which we focus in the main text, corresponds to H(z)=1 + z. We considered the outcomes of the evolutionary trajectories in the case of a super-linear cost (H(z)=(1 + z)2, in Fig J in S1 Appendix) and a sub-linear cost (H(z)=log(1+z), in Fig K in S1 Appendix). In both scenarios, the functional composition converges to reproducible values, minimally affected by fitness differences. On the other hand, the taxonomic composition is much largely affected by fitness differences. Similarly to the linear metabolic cost functions, some resources correspond to core-functions (Fi*=1) while the functional occurrences Fi* of non-core resources are linearly related to the effective influx rates hieff. These evolutionary outcomes, obtained under non-linear metabolic costs, confirm the generality of our results beyond the linear metabolic cost case.

Ecotype-specific cross-feeding matrix. One important assumption of our framework is that the cross-feeding matrix is ecotype-independent, assuming a “universal stoichiometry”. In order to text the generality of our results we studied the effect of species specific-matrices, with variable degrees of universality.

We generate a matrix common to all species D~ij and one characterizing the ecotype-specific component Bijμ. These matrices were independently generated as described above. The cross-feeding matrix of each species was defined as

Dijμ=(1−λ)D~ij+λBijμ , (23)

where λ quantifies the degree of ecotype-specifity. The case considered in the main text (universal stoichiometry) corresponds to λ=0, while the full ecotype-specific case corresponds to λ=1.

Fig D in S1 Appendix shows the robustness of our results for different values of ecotype-specificity (λ∈[0,1]). While increasing ecotype-specificity produces larger departures from the exact solution of universal stochiometry (λ=0), the observed functional composition is still similar to what predicted by the average cross-feeding matrix. This observation is even stronger if the averaging is weighted by strain population abundances (panel B of Fig D in S1 Appendix).

Supporting information

S1 Appendix. Supplementary figures.

Supporting figures (Fig A–Fig L), together with their legends, supporting the results and the robustness and sensitivity analyses presented in the main text. The figures are ordered by their first citation in the text.

(PDF)

pcbi.1014437.s001.pdf (4.4MB, pdf)

Acknowledgments

We thank M. Tikhonov for insightful discussions and P. Lechon and M. Corigliano for critical reading of the manuscript.

Data Availability

Code provide here https://github.com/lorenzofant/final_code.

Funding Statement

The work was funded by Fondo Italiano per la Scienza - FIS (CUP J53C23002290001; J.G.). LF was supported by the European Union Next-Generation EU (PIANO NAZIONALE DI RIPRESA E RESILIENZA (PNRR) – MISSIONE 4 COMPONENTE 2, “Dalla ricerca all’impresa” INVESTIMENTO 1.4 – D.D. 1034 17/06/2022, CN00000033). IM was supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 101019291). JG was supported by Fondo Italiano per la Scienza - FIS (CUP J53C23002290001). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Madigan MT, Martinko J. Brock biology of microorganisms. 11th ed. SciELO Espana; 2005. [Google Scholar]
  • 2.Grilli J. Macroecological laws describe variation and diversity in microbial communities. Nat Commun. 2020;11(1):4743. doi: 10.1038/s41467-020-18529-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Zaoli S, Grilli J. A macroecological description of alternative stable states reproduces intra- and inter-host variability of gut microbiome. Sci Adv. 2021;7(43):eabj2882. doi: 10.1126/sciadv.abj2882 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Shoemaker WR. A macroecological perspective on genetic diversity in the human gut microbiome. PLoS One. 2023;18(7):e0288926. doi: 10.1371/journal.pone.0288926 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Shoemaker WR, Grilli J. Investigating macroecological patterns in coarse-grained microbial communities using the stochastic logistic model of growth. Elife. 2024;12:RP89650. doi: 10.7554/eLife.89650 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Goldford JE, Lu N, Bajić D, Estrela S, Tikhonov M, Sanchez-Gorostiaga A, et al. Emergent simplicity in microbial community assembly. Science. 2018;361(6401):469–74. doi: 10.1126/science.aat1168 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Estrela S, Vila JCC, Lu N, Bajić D, Rebolleda-Gómez M, Chang C-Y, et al. Functional attractors in microbial community assembly. Cell Syst. 2022;13(1):29-42.e7. doi: 10.1016/j.cels.2021.09.011 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Shoemaker WR, Sánchez Á, Grilli J. Macroecological patterns in experimental microbial communities. PLoS Comput Biol. 2025;21(5):e1013044. doi: 10.1371/journal.pcbi.1013044 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Messier J, McGill BJ, Lechowicz MJ. How do traits vary across ecological scales? A case for trait-based ecology. Ecol Lett. 2010;13(7):838–48. doi: 10.1111/j.1461-0248.2010.01476.x [DOI] [PubMed] [Google Scholar]
  • 10.Burke C, Steinberg P, Rusch D, Kjelleberg S, Thomas T. Bacterial community assembly based on functional genes rather than species. Proc Natl Acad Sci U S A. 2011;108(34):14288–93. doi: 10.1073/pnas.1101591108 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Louca S, Parfrey LW, Doebeli M, New Collective Author. Decoupling function and taxonomy in the global ocean microbiome. Science. 2016;353(6305):1272–7. doi: 10.1126/science.aaf4507 [DOI] [PubMed] [Google Scholar]
  • 12.Louca S, Polz MF, Mazel F, Albright MBN, Huber JA, O’Connor MI. Function and functional redundancy in microbial systems. Nature. 2018. doi: 10.1038/s41559-018-0519-1 [DOI] [PubMed]
  • 13.Ho PY, Huang KC. Challenges in quantifying functional redundancy and selection in microbial communities. bioRxiv. 2024:2024–03. [DOI] [PubMed]
  • 14.Macarthur R, Levins R. The limiting similarity, convergence, and divergence of coexisting species. Am Nat. 1967;101(921):377–85. doi: 10.1086/282505 [DOI] [Google Scholar]
  • 15.Tilman D. A consumer-resource approach to community structure. Am Zool. 1986;26(1):5–22. doi: 10.1093/icb/26.1.5 [DOI] [Google Scholar]
  • 16.Chesson P. MacArthur’s consumer-resource model. Theor Popul Biol. 1990;37(1):26–38. [Google Scholar]
  • 17.Marsland R 3rd, Cui W, Goldford J, Sanchez A, Korolev K, Mehta P. Available energy fluxes drive a transition in the diversity, stability, and functional structure of microbial communities. PLoS Comput Biol. 2019;15(2):e1006793. doi: 10.1371/journal.pcbi.1006793 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Butler S, O’Dwyer JP. Stability criteria for complex microbial communities. Nat Commun. 2018;9(1):2970. doi: 10.1038/s41467-018-05308-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Dal Bello M, Lee H, Goyal A, Gore J. A simple linear relationship between resource availability and microbial community diversity. bioRxiv. 2020;2020:2020.09.12.294660. doi: 10.1101/2020.09.12.294660 [DOI] [Google Scholar]
  • 20.Marsland R 3rd, Cui W, Mehta P. A minimal model for microbial biodiversity can reproduce experimentally observed ecological patterns. Sci Rep. 2020;10(1):3308. doi: 10.1038/s41598-020-60130-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Case TJ, Casten RG. Global stability and multiple domains of attraction in ecological systems. Am Nat. 1979;113(5):705–14. doi: 10.1086/283427 [DOI] [Google Scholar]
  • 22.Harrison GW. Global stability of predator-prey interactions. J Math Biology. 1979;8(2):159–71. doi: 10.1007/bf00279719 [DOI] [Google Scholar]
  • 23.Serván CA, Capitán JA, Grilli J, Morrison KE, Allesina S. Coexistence of many species in random ecosystems. Nat Ecol Evol. 2018;2(8):1237–42. doi: 10.1038/s41559-018-0603-6 [DOI] [PubMed] [Google Scholar]
  • 24.Cui W, Marsland R, Mehta P. Effect of resource dynamics on species packing in diverse ecosystems. Phys Rev Lett. 2020;125(4):048101. doi: 10.1103/PhysRevLett.125.048101 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Bunin G. Ecological communities with Lotka-Volterra dynamics. Phys Rev E. 2017;95(4–1):042414. doi: 10.1103/PhysRevE.95.042414 [DOI] [PubMed] [Google Scholar]
  • 26.Advani M, Bunin G, Mehta P. Statistical physics of community ecology: a cavity solution to MacArthur’s consumer resource model. J Stat Mech. 2018;2018:033406. doi: 10.1088/1742-5468/aab04e [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Geritz SAH, Kisdi E, Mesze´NA G, Metz JAJ. Evolutionarily singular strategies and the adaptive growth and branching of the evolutionary tree. Evol Ecol. 1998;12(1):35–57. doi: 10.1023/a:1006554906681 [DOI] [Google Scholar]
  • 28.Ackland GJ, Gallagher ID. Stabilization of large generalized Lotka-Volterra foodwebs by evolutionary feedback. Phys Rev Lett. 2004;93(15):158701. doi: 10.1103/PhysRevLett.93.158701 [DOI] [PubMed] [Google Scholar]
  • 29.DeLong JP, Gibert JP. Gillespie eco-evolutionary models (GEMs) reveal the role of heritable trait variation in eco-evolutionary dynamics. Ecol Evol. 2016;6(4):935–45. doi: 10.1002/ece3.1959 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Good BH, Martis S, Hallatschek O. Adaptation limits ecological diversification and promotes ecological tinkering during the competition for substitutable resources. Proc Natl Acad Sci U S A. 2018;115(44):E10407–16. doi: 10.1073/pnas.1807530115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Tikhonov M. Community-level cohesion without cooperation. Elife. 2016;5:e15747. doi: 10.7554/eLife.15747 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Posfai A, Taillefumier T, Wingreen NS. Metabolic trade-offs promote diversity in a model ecosystem. Phys Rev Lett. 2017;118(2):028103. doi: 10.1103/PhysRevLett.118.028103 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Caetano RA, Ispolatov Y, Doebeli M. Evolution of diversity in metabolic strategies. bioRxiv. 2021:2020–10. [DOI] [PMC free article] [PubMed]
  • 34.Marsland R, Cui W, Goldford J, Mehta P. The community simulator: a python package for microbial ecology. PLoS One. 2020;15(3):e0230430. doi: 10.1371/journal.pone.0230430 [DOI] [PMC free article] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1014437.r001

Decision Letter 0

Chih-hao Hsieh

16 Feb 2026

-->PCOMPBIOL-D-26-00048

Eco-evolutionary dynamics lead to functionally robust and redundant communities

PLOS Computational Biology

Dear Dr. Grilli,

Thank you for submitting your manuscript to PLOS Computational Biology. After careful consideration, we feel that it has merit but does not fully meet PLOS Computational Biology’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Apr 18 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at ploscompbiol@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pcompbiol/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

* A letter that responds to each point raised by the editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'. This file does not need to include responses to formatting updates and technical items listed in the 'Journal Requirements' section below.

* A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

* An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, competing interests statement, or data availability statement, please make these updates within the submission form at the time of resubmission. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter

We look forward to receiving your revised manuscript.

Kind regards,

Chih-hao Hsieh, Ph.D.

Guest Editor

PLOS Computational Biology

Feng Fu

Section Editor

PLOS Computational Biology

Additional Editor Comments:

Your manuscript has been evaluated by three experts of ecological modeling. All three reviewers are positive about your work and considered your research can make valuable contribution to the field. However, the reviewers have some concerns on model setups, parameter specification, and interpretation. They made constructive suggestions on models. I concur with their comments. The technical comments from the reviewers are extensive; nevertheless, I feel there is a good chance that you should be able to resolve those issues. Therefore, I am willing to consider your revision.

Your revision should address the specific points made by each reviewer. You should also send a cover letter indicating your responses to the comments and the changes you have made in the manuscript. If you disagree with a reviewer's point, please explain why. You should attempt to resolve the issues, rather than simply note that problems exist. If you choose to revise this submission, please provide a detailed response to each review, organized according to the points provided by the reviewers.

Specific comments from reviewers are appended below or in attached files.

Journal Requirements:

If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

1) Please ensure that the CRediT author contributions listed for every co-author are completed accurately and in full.

At this stage, the following Authors/Authors require contributions: Lorenzo Fant, Iuri Macocco, and Jacopo Grilli. Please ensure that the full contributions of each author are acknowledged in the "Add/Edit/Remove Authors" section of our submission form.

The list of CRediT author contributions may be found here: https://journals.plos.org/ploscompbiol/s/authorship#loc-author-contributions

2) We ask that a manuscript source file is provided at Revision. Please upload your manuscript file as a .doc, .docx, .rtf or .tex. If you are providing a .tex file, please upload it under the item type u2018LaTeX Source Fileu2019 and leave your .pdf version as the item type u2018Manuscriptu2019.

3) Please provide an Author Summary. This should appear in your manuscript between the Abstract (if applicable) and the Introduction, and should be 150-200 words long. The aim should be to make your findings accessible to a wide audience that includes both scientists and non-scientists. Sample summaries can be found on our website under Submission Guidelines:

https://journals.plos.org/ploscompbiol/s/submission-guidelines#loc-parts-of-a-submission

4) Please upload all main figures as separate Figure files in .tif or .eps format. For more information about how to convert and format your figure files please see our guidelines:

https://journals.plos.org/ploscompbiol/s/figures

5) We notice that your supplementary Figures are included in the manuscript file. Please remove them and upload them with the file type 'Supporting Information'. Please ensure that each Supporting Information file has a legend listed in the manuscript after the references list.

6) Some material included in your submission may be copyrighted. According to PLOSu2019s copyright policy, authors who use figures or other material (e.g., graphics, clipart, maps) from another author or copyright holder must demonstrate or obtain permission to publish this material under the Creative Commons Attribution 4.0 International (CC BY 4.0) License used by PLOS journals. Please closely review the details of PLOSu2019s copyright requirements here: PLOS Licenses and Copyright. If you need to request permissions from a copyright holder, you may use PLOS's Copyright Content Permission form.

Please respond directly to this email and provide any known details concerning your material's license terms and permissions required for reuse, even if you have not yet obtained copyright permissions or are unsure of your material's copyright compatibility. Once you have responded and addressed all other outstanding technical requirements, you may resubmit your manuscript within Editorial Manager.

Potential Copyright Issues:

i) Figure 1. Please confirm whether you drew the images / clip-art within the figure panels by hand. If you did not draw the images, please provide (a) a link to the source of the images or icons and their license / terms of use; or (b) written permission from the copyright holder to publish the images or icons under our CC BY 4.0 license. Alternatively, you may replace the images with open source alternatives. See these open source resources you may use to replace images / clip-art:

- https://commons.wikimedia.org

- https://openclipart.org/.

7) Please amend your detailed Financial Disclosure statement. This is published with the article. It must therefore be completed in full sentences and contain the exact wording you wish to be published.

1) State the initials, alongside each funding source, of each author to receive each grant. For example: "This work was supported by the National Institutes of Health (####### to AM; ###### to CJ) and the National Science Foundation (###### to AM)."

2) State what role the funders took in the study. If the funders had no role in your study, please state: "The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript."

3) If any authors received a salary from any of your funders, please state which authors and which funders..

If you did not receive any funding for this study, please simply state: u201cThe authors received no specific funding for this work.u201d

8) Please send a completed 'Competing Interests' statement, including any COIs declared by your co-authors. If you have no competing interests to declare, please state "The authors have declared that no competing interests exist". Otherwise please declare all competing interests beginning with the statement "I have read the journal's policy and the authors of this manuscript have the following competing interests"

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: Review of "Eco-evolutionary dynamics lead to functionally robust and redundant communities" (MS#: PCOMPBIOL-D-26-00048) by Lorenzo Fant, Iuri Macocco, and Jacopo Grilli,

In the reviewed manuscript, the authors investigated properties of ecological system with multiple resources and multiple consumer strains (species) by constructing simulation model. In the model, they assumed a trade-off between individual survivorship and number of its available resource types. Based on the trade-off, they explored evolution of the resource utilization and the weight on the trade-off function (they refer it to "intrinsic fitness") in the per-capita growth rate in the consumers. According to the analysis, the authors showed functional robustness (i.e., stability of functional composition) and functional redundancy (i.e., variability of strain composition within the conserved function) in the simulated communities, which tend to correspond with observations in empirical studies. They also studied underlying mechanisms of the simulation results by investigating the simplified system analytically. I agree with the results of the model, although their novelties and implications seem limited.

Major issues

1. Intrinsic fitness

(1) Definition

I feel that defining ξ_μ as the intrinsic fitness (p.4, l.97) is very strange. Usually, the fitness corresponds with an offspring number of the individual. According to Eq. (1), ξ_μ affects a relative weight on the mortality that include the trade-off function, which seems inconsistent to the usual definition of fitness.

(2) Evolution

The authors also assumed evolution of the intrinsic fitness,ξ_μ (p.4, l.103). I consider that when any restrictions are absent, ξ_μ must evolve toward 1, which can minimize the mortality. In the manuscript, however, I cannot find an explanation about constraints preventing ξ_μ from the increment.

(3) Fluctuation

Furthermore, the authors considered the fluctuation of ξ_μ (p.6, 188). What is a relationship between trait value ξ_μ and its variation? Did the authors consider evolution of AVERAGE value of ξ_μ? If so, describe clearly that the evolvable trait is the AVERAGE of ξ_μ rather than ξ_μ itself.

2. Functional robustness

The authors evaluated the functional robustness by focusing on functional occurrence F_i that is the community consumption rate on resource type i, averaged across individuals. They showed that the functional occurrences are relatively constant even when the strain (species) composition varies within temporal dynamics or among simulation attempts (samples). However, the trend seems straightforward consequence of a balance between the total resource consumption and the resource supply. In the equilibrium (and the quasi-equilibrium following rapid resource dynamics), the total consumption rate on a specific resource type must correspond with its supply rate, which is not surprising. It is a simple consequence of the model structure, which did not provide implications.

(The authors may recognize this point because they stated that F*_i and N*_i (Eqs. 2 and 3) are determined by the resource supply (p.6, l.162).)

2. Functional redundancy

The authors emphasized that strain (species) composition significantly varies even under the functional robustness as illustrated in Figure 2, which was referred to the functional redundancy. The trend may include two aspects.

In the early phase of evolutionary dynamics, there are many vacant niches. In this stage, the emergent strain could tend to have different trait from resident strains due to the colonization to the vacant niche, which is expected to cause a variation in the strain composition.

On the other hand, near the equilibrium state (evolutionary steady state) after long elapsed time, the possible niches are already occupied. In this case, the emerging strains may necessarily have similar properties with the resident strains. With the similarity of properties, the strain replacement does not alter the community structure substantially, implying that the functional redundancy could be apparent. Thus, I consider that the functional redundancy should be evaluated by referring to properties of strains in the evolutionary system.

3. Numbers of persisting strains and resources

The results did not clearly indicate the number of persisting strains, although it seems to close to the number of resource types (i.e., 15 as the caption of Fig. 2) at each moment (typically after long elapsed time in simulations). This is consistent with a traditional prediction of species coexistence that the number of consumers cannot exceed the number of resource types in the resource–consumer system. Therefore, in the analyzed system, the number of resources would strongly restrict the coexistence of strains. Accordingly, I have a question. What type of resources were considered in the study? Is the number of resources (i.e., 15) realistic? The generality of the resource number should be also discussed.

4. Resource dynamics

(1) The main text

The main text did not include explanations about resource dynamic, which was described only in the Material and Methods section. I consider that the resource dynamics should be explained in the main text to some degree.

(2) Basal increasing rate of resource

In the Material and Methods section, the basal increasing rate of resource type i was denoted by h_i(c_i) that is a function of the resource concentration, c_i (p.9, l.293). Subsequently, the authors proposed a specific assumption, h_i(c_i) = h_i, that is constant independently of the resource concentration (p.10, l.301). I consider that this is a critical assumption. If the h_i is a function of c_i, the system involves oscillating properties likewise the ordinary prey–predator model. The assumption should be stated more clearly in the main text. In addition, such oscillating dynamics may alter the model results. It seems better to discuss about it.

Minor issues

(1) The authors mentioned (temporal?) fluctuation of fitness with autocorrelation, which was referred to "Material and Method" (p.7, l.196). However, I cannot find the explanation about the autocorrelation in the fitness fluctuation in the section.

(2) In Eq. (2), the "min" function should associate with parenthesis or curly bracket like Eq. (13).

Reviewer #2: Functional redundancy is the important idea that many species can perform the same function, thereby allowing communities with different taxonomic compositions to have similar functional profiles. In this manuscript, the authors provide a mathematical model that can give rise to this phenomenon. The model is based on classical consumer-resource models with evolutionary dynamics. The authors elucidate the existence of functional attractors, which the system will converge to regardless of taxonomic composition. At these attractors, the functional occurrences are proportional to the effective resource influx, a form that can accomodate for the effects of cross-feeding. The attractors recapitulate the functional redundancy phenomenon both across samples and across time. However, the system does not converge to the functional attractors when intrinsic fitness effects are large enough such that species with high intrinsic fitness can survive regardless of their functional profiles. This manuscript asks a fundamental question and is timely, but I have questions about some of the results, as well as comments about the presentation.

- Many of the simulations spanned across 10^9 units of time, during which the functional attractor is reached as early as t ~ 10^7 (Fig 2). In other words, the system is in the functional attractor for the vast majority of the simulations. What are the units here and how to understand these timescales? How do these timescales compare versus in real systems suspected to exhibit functional redundancy?

- Related to the above question, the mutation rates, the probability of horizontal gene transfer, and other evolutionary dynamics parameters all seem to affect the rate of convergence towards the functional attractor (Supp Fig S4). Are there regimes where the functional attractor cannot be reached in a reasonable amount of time? How do the various modes of mutations affect the dynamics towards the funtional attractor?

- The intrinsic fitness (1 - xi_mu) only affects the death rate term. What if it affects all components of the per capita growth rate in Eq. 1, including the resource consumption term? In this case, large noise should still destroy the functional attractor, but large compared to what?

- More generally, I am somewhat confused about the novelty of the main findings and think that some reorganization can improve the manuscript. The fact that consumer-resource models can exhibit functional attractors is not new - Posfai et al (Ref 32) is a prominent example. Then, it seems straightforward that adding evolutionary dynamics that are slower than the ecological dynamics, which are still governed by a fixed environmental selection, will not affect the functional attractor. Thus, Fig 2 and Fig 4 are not very surprising in themselves. Fig 3 shows a nice relationship between functional occurence and effective resource influx - here again, my understanding is that a similar relationship has also been shown in Posfai et al but without cross-feeding. In this sense, much of the novel findings in this work are buried in the supplemental figures, which investigated how various model assumptions affect the functional attractor. However, being supplemental figures, these results are not discussed thoroughly enough in the text. Moreover, some important model details only appear in the Methods, which makes it even harder to extract the key findings. I suggest some rewriting to address these issues.

Reviewer #3: This manuscript presents a theoretical framework for understanding the emergence of functional robustness and functional redundancy in microbial communities interacting through competition and cross‑feeding. The authors show that eco‑evolutionary trajectories converge rapidly to a functional attractor dictated solely by environmental conditions, even as taxonomic composition continues to drift in non‑reproducible ways.

The paper is timely and insightful for microbial ecology and evolution. It addresses current challenges in identifying meaningful coarse‑graining variables, and it highlights how resource availability and potential metabolic trade‑offs shape community‑level structure. Importantly, the authors convincingly show that small fitness differences alter taxon abundances without affecting functional abundances, reinforcing the distinction between taxonomic variability and functional stability.

The modeling framework is well‑described and the exploration of parameter space—including alternative cross‑feeding structures, a range of mutation rates, and the extension to nonlinear trade‑offs—is thorough and convincing. I found the manuscript enjoyable to read and conceptually rich.

I recommend publication after minor revision.

Major Comment

- Clarification and deeper explanation of Fig. 4 (Main suggestion):

The explanation accompanying Fig. 4 is somewhat shallow.Differences in initial fitness will of course give different community composition. Mutations will modify the intrinsic fitness, and I don’t understand what is the fundamental difference between fig 2 A and 4C, other than the linear vs log timescale. In this sense: why choosing the timescale of 4c? From 2C it seems that the dymamics becomes ever slower, so it is not clear to me which is the right turnover timescale to look at in linear scale. Moreover, the explanation in line 196 discusses autocorrelation timescales, but cites no figure in which there is a quantitative analysis of autocorrelation time.

Minor Comments

- Explanation of h_i^eff in the main text: it could be helpful to briefly explain in the Results section how the effective availability terms are computed. The manuscript is readable without this, so I leave it to the authors’ discretion.

- Line 88: Missing comma after “linear”.

- Some panels of Fig 2 should be cited earlier, perhaps in paragraphs starting in lines 128 and 130, where the properties of typical times series are described. Also, the claim in line 133 on reproducibility across different realizations should cite a figure panel that supports the claim

- Line 158: The two sentences here express the same idea; I suggest removing one.

- Line 173: The necessity of this sentence is unclear, as the previous one already summarizes the main point effectively. If kept, I recommend removing “Nevertheless,” which does not seem appropriate.

- Figure 1: The color gradient for the metabolic cost in the legend suggests meaning that it does not actually have. Consider adjusting the cartoon or legend to avoid confusion. In the caption, consider replacing “This demonstrates how…” with “This can be interpreted as…” for accuracy.

- Figure 2: I could not figure out how to read the 'three different realizations of the system' mentioned in the caption. Describe better what each line is representing.

- Figure 3: In panel (b), the legend should read “average resource income” rather than “resource input.”

- Figure 4, caption: Replace “allow to demonstrate” with “demonstrates” which I think is what the authors mean. Choose either “taxonomies” or “populations” and use it consistently. For a more comprehensive caption, the authors could describe 'static noise' and 'dynamically varying noise'. The two categories are understandable from the main text, but I think that they are not really defined by their name (static or dynamic).

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: None

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

Figure resubmission:

While revising your submission, we strongly recommend that you use PLOS’s NAAS tool (https://ngplosjournals.pagemajik.ai/artanalysis) to test your figure files. NAAS can convert your figure files to the TIFF file type and meet basic requirements (such as print size, resolution), or provide you with a report on issues that do not meet our requirements and that NAAS cannot fix.-->

After uploading your figures to PLOS’s NAAS tool - https://ngplosjournals.pagemajik.ai/artanalysis, NAAS will process the files provided and display the results in the "Uploaded Files" section of the page as the processing is complete. If the uploaded figures meet our requirements (or NAAS is able to fix the files to meet our requirements), the figure will be marked as "fixed" above. If NAAS is unable to fix the files, a red "failed" label will appear above. When NAAS has confirmed that the figure files meet our requirements, please download the file via the download option, and include these NAAS processed figure files when submitting your revised manuscript.

Reproducibility:

To enhance the reproducibility of your results, we recommend that authors of applicable studies deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1014437.r003

Decision Letter 1

Chih-hao Hsieh

14 Jun 2026

Dear Dr Grilli,

We are pleased to inform you that your manuscript 'Eco-evolutionary dynamics lead to functionally robust and redundant communities' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology.

Best regards,

Chih-hao Hsieh, Ph.D.

Guest Editor

PLOS Computational Biology

Feng Fu

Section Editor

PLOS Computational Biology

***********************************************************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #2: The authors have thoroughly addressed my previous comments. I am happy to recommend publication.

Reviewer #3: In my opinion, the authors have appropriately addressed the comments by the referees in the revised version of the text.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #2: None

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #2: No

Reviewer #3: No

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1014437.r004

Acceptance letter

Chih-hao Hsieh

PCOMPBIOL-D-26-00048R1

Eco-evolutionary dynamics lead to functionally robust and redundant communities

Dear Dr Grilli,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

For Research, Software, and Methods articles, you will receive an invoice from PLOS for your publication fee after your manuscript has reached the completed accept phase. If you receive an email requesting payment before acceptance or for any other service, this may be a phishing scheme. Learn how to identify phishing emails and protect your accounts at https://explore.plos.org/phishing.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Janani Seenivasan

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Appendix. Supplementary figures.

    Supporting figures (Fig A–Fig L), together with their legends, supporting the results and the robustness and sensitivity analyses presented in the main text. The figures are ordered by their first citation in the text.

    (PDF)

    pcbi.1014437.s001.pdf (4.4MB, pdf)
    Attachment

    Submitted filename: rebuttal.pdf

    pcbi.1014437.s003.pdf (212.1KB, pdf)

    Data Availability Statement

    Code provide here https://github.com/lorenzofant/final_code.


    Articles from PLOS Computational Biology are provided here courtesy of PLOS

    RESOURCES