Skip to main content
Philosophical Transactions of the Royal Society B: Biological Sciences logoLink to Philosophical Transactions of the Royal Society B: Biological Sciences
. 2020 Jul 13;375(1806):20190749. doi: 10.1098/rstb.2019.0749

Sympatric ecological divergence with coevolution of niche preference

Pavel Payne 1,2,, Jitka Polechová 3
PMCID: PMC7423286  PMID: 32654636

Abstract

Reinforcement, the increase of assortative mating driven by selection against unfit hybrids, is conditional on pre-existing divergence. Yet, for ecological divergence to precede the evolution of assortment, strict symmetries between fitnesses in niches must hold, and/or there must be low gene flow between the nascent species. It has thus been argued that conditions favouring sympatric speciation are rarely met in nature. Indeed, we show that under disruptive selection, violating symmetries in niche sizes and increasing strength of the trade-off in selection between the niches quickly leads to loss of genetic variation, instead of evolution of specialists. The region of the parameter space where polymorphism is maintained further narrows with increasing number of loci encoding the diverging trait and the rate of recombination between them. Yet, evolvable assortment and pre-existing assortment both substantially broaden the parameter space within which polymorphism is maintained. Notably, pre-existing niche preference speeds up further increase of assortment, thus facilitating reinforcement in the later phases of speciation. We conclude that in order for sympatric ecological divergence to occur, niche preference must coevolve throughout the divergence process. Even if populations come into secondary contact, having diverged in isolation, niche preference substantially broadens the conditions for coexistence in sympatry and completion of the speciation process.

This article is part of the theme issue ‘Towards the completion of speciation: the evolution of reproductive isolation beyond the first barriers'.

Keywords: sympatric speciation, maintenance of polymorphism, polygenic trait, Levene model, epistasis, trade-off

1. Introduction

Darwin observed that many closely related species occupied the same habitat. However, he considered the sympatric origin of species by ecological divergence due to an advantage of specialists over generalists rather unlikely [1]. Since then, the contribution of sympatric speciation to observed biodiversity has remained controversial [25]. Speciation in a well-mixed, panmictic population is difficult for two main reasons. First, gene flow and recombination oppose divergence in polygenic traits as well as preventing reinforcement (the build-up of associations between the loci contributing to pre- and post-zygotic isolation) [6,7]. Second, the diverging types must be able to coexist. It is often thought that ecological divergence must precede the evolution of mating assortment [8], as assortment is reinforced by selection against maladapted hybrids. However, this order of events is not necessary: assortment can precede divergence, or coevolve with ecological loci. It is the combined effect of assortment and ecological divergence which contributes to the isolation of the nascent species [911]. Yet, in contrast to ecological selection, the loss of fitness due to missed heterospecific matings is typically compensated by an increase in conspecific matings. This stabilizes polymorphism at the loci determining assortment and can protect polymorphism at other loci diverging under natural selection.

Habitat choice is an important source of assortment when mating occurs locally. Host-specific mating is prevalent in nature, as in phytophagous insects (reviewed in [12]). Habitat fidelity based on a preference for the hatching site is common for birds [13], another group rich in sympatric species. In general, habitat choice can be based on learned characteristics of the hatching site, on specific preference loci, or on an association with another (ecological) phenotype [14]. The first two drove the classic sympatric speciation process in the experiment by Rice & Salt [15], where fruit flies learned to choose based on phototaxis and chemotaxis. In this experiment, 60 mated females from each of two extreme habitats founded the next generation. Severe disruptive selection on multiple traits, coupled with independent regulation within equally sized niches, led to nearly complete reproductive isolation over 30 generations. Effectively, behavioural allopatry evolved (cf. [8]). Further divergence in other traits, both selective and neutral, could have followed. While the plausibility of sympatric speciation is undisputed, how common can it really be? Selection is rarely that severe in nature, and even if niches are independently regulated, they will very rarely be perfectly symmetric.

A recognition and preference for the correct habitat is a common example of assortment by association with another phenotype. While preference for food source is omnipresent, strong [16] trade-offs in specialization of the sympatric-species-rich phytophagous insects have been hard to find, triggering a substantial controversy [17,18]. Yet, strong trade-offs must be reasonably common—otherwise, all habitats would be colonized by one generalist species. Indeed, such trade-offs have often been recovered when lifetime fitness and/or performance of F1 hybrids on both hosts is assessed [1923]. Moreover, a preference–performance correlation seems to be common in herbivorous insects [24,25].

Here, we use mathematical modelling to investigate how genetically encoded preferences for the most favourable habitat facilitate sympatric speciation by ecological divergence. We assume that there is a strong (convex) trade-off in a polygenic trait, leading to disruptive selection such that generalists have a lower mean fitness than specialists. Assortment arises via preference for the correct niche. Because regulation is independent within niches (soft selection, [26]), the frequency of a type well adapted to its niche rises faster when this type is rare than when it is common. This protects the polymorphism in the ecological loci (coexistence of the specialists) via negative frequency-dependence [26].

We consider a polygenic trait under ecological divergence, and focus on assortment via preference for the niche the individual is best adapted to. The assortment allele can, therefore, be seen as a type of a ‘modifier-allele' [8], realized via niche choice. The population-wide matching of the habitat thus increases with the frequency of this modifier allele. The modifier represents a ‘one-allele model' [7], where recombination cannot break down the allele-specific association with the choice locus. Thereby, the constraints on symmetries, which render sympatric speciation implausible, are relaxed. The modifier-allele niche choice contrasts with two-allele models, where habitat or mate choice is determined by loci independent of the ecological adaptation. Then, sympatric speciation under strong (convex) trade-off is implausible as variation is quickly lost (cf. [7,11,27]). Such an assortment only enables evolution of coexisting specialists when trade-offs are weak (concave) [16]. Note that modifier-allele niche choice is not a fixed ‘matching' habitat choice, where an ecological allele also directly increases the probability of getting into the right niche (magic niche choice), which always leads to coexistence [16].

How do two nascent species evolve towards coexistence? Coexistence during divergence in sympatry is often overlooked in speciation models, side-lined by focus on growth of associations between and within polygenic traits, assuming symmetries are protected [11]. The importance of pre-existing ecological divergence and/or of pre-existing assortment for further diversification in sympatry has not been much studied. Hence, it is not clear whether divergence and coexistence in sympatry is considerably more difficult than partial divergence in allopatry or broad parapatry, followed by sympatry as assortment increases. When neutral divergence in allopatry or broad parapatry does not lead to a sufficient niche separation then (similarly to instant assortment by chromosomal variations; [28]) coexistence will not be possible. Yet, coexistence in sympatry is essential: without it, every speciation in sympatry or parapatry would lead to a subdivision of the existing range—and through time, species' ranges would become ever smaller.

Here, we aim to elucidate the importance of niche recognition in facilitating divergence under disruptive ecological selection on a polygenic trait. In other words, we study how pre-existing prezygotic isolation (niche recognition) increases and coevolves jointly with postzygotic isolation driven by a strong (convex) trade-off in adaptation to different ecological niches. Does sympatric speciation remain feasible when negative epistasis between loci increases (and hence the trade-off strengthens), and when with increasing number of loci, selection becomes weaker relative to recombination?

2. Methods and results

(a). Model

Since we focus on the effects of disruptive selection on sympatric divergence, we use a haploid biallelic version of Levene's [29] model with mating within niches, which is more favourable to speciation [30]. In the life cycle of the model, individuals with non-overlapping generations are—in the basic model without assortment—randomly distributed into two niches, where selection acts. Alleles of the first type (capital letters) are beneficial in one niche and alleles of the second type (small letters) in the other niche. The individuals who survive mate within the niches and then each niche contributes to a common pool proportionally to its size. From the common pool, individuals are again randomly distributed into the two niches.

For further analysis, it is convenient to define fitness of the genotypes to be between zero and one. The presence of an allele which is deleterious in one of the niches reduces the fitness of its carrier by selection coefficient s, which is equal for all loci and both niches. The epistatic coefficient ϵ determines how much the intermediate generalist genotypes (e.g. aB and Ab) are disadvantaged relative to the specialist genotypes (e.g. AB and ab for ϵ > 0) and is defined as the deviation from additivity of deleterious alleles in each niche if more than one of these alleles is present. Here, we are assuming a special kind of symmetric epistasis, which acts among alleles deleterious in one niche and also those in the other niche. Fitnesses of all genotypes considered in this study are defined in detail further in the text and in tables 14.

Table 1.

Fitnesses of individual genotypes in the model without niche preference. a. Two-locus model. b. Three-locus model. Selection coefficient s determines how the deleterious alleles in niche I (a, b, c) and the deleterious alleles in niche II (A, B, C) reduce the fitness relative to the well-adapted genotype. The pairwise epistatic coefficient ϵ is defined as the deviation from additivity of the two deleterious alleles present in a genotype together. We only consider ϵ<0 as it generates a convex trade-off and hence disruptive selection. In the three-locus model, the selection and epistasis are normalized as described above. Note that the epistatic coefficient in the intermediate genotypes in the three-locus model is present only when the genotype contains two alleles that are deleterious in the particular niche. In the other niche, the epistatic coefficient for these genotypes is absent as there is only one selected allele.

genotype niche I niche II
a: 2-locus model
AB 1 12sϵ
aB, Ab 1 − s 1 − s
ab 12sϵ 1
b: 3-locus model
ABC 1 12sϵ
ABc, AbC, aBC 123s 143sϵ3
Abc, aBc, abC 143sϵ3 123s
abc 12sϵ 1

Table 4.

Fitnesses of individual genotypes modified by a fixed niche choice parameter α1 and a polymorphic allele M2, which increases niche preference for the better niche by α2, and the cost of this allele, γ.

genotype niche I niche II
ABM2 1+α1+α2γ (12sϵ)(1α1α2γ)
ABm2 1+α1 1+α1+α2γ
AbM2, aBM2 1sγ 1sγ
Abm2, aBm2 1s 1s
abm2 (12sϵ)(1α1) 1+α1
abM2 (12sϵ)(1α1α2γ) 1+α1+α2γ

Analytical solutions for polymorphic equilibria of our model are generally impossible to find. Instead, we have analysed the instability of the two monomorphic equilibria for allele frequencies in ecological and niche preference loci at 1 and 0. We assume that an equilibrium polymorphic at the ecological loci exists between them. This approach was used by Levene [29], Prout [31] and Hoekstra et al. [32]. Gliddon & Strobeck [33] analysed the haploid analogue of Levene's [29] model with multiple niches, and proved that conditions for instability of the monomorphic equilibria are also necessary and sufficient conditions for stability of the unique polymorphic equilibrium. Although this conclusion is not valid for general fitnesses, such as in the presence of epistasis and/or when assortment is present, analysis of local (in)stability of the monomorphic equilibria still allows us to estimate the stability of the polymorphic equilibrium for the ecological loci in the full model for most of the parameter range. The stability is then tested numerically. We discuss a small parameter region where the local equilibrium also depends on the initial conditions. Depending on the initial allele frequencies, the system evolves either to a polymorphic equilibrium in the ecological loci, or to another equilibrium where ecological loci are fixed and the locus for assortment is polymorphic, or where all polymorphism is lost.

We complement the 2–3 locus analytical and numerical results by an individual-based haploid simulation, with up to 16 ecological loci under disruptive selection (strong trade-off), and 10 loci which gradually change the bias in the niche choice from 0 to 1. Within niches, each individual is selected at random (with replacement) to pair up, with a probability proportional to its fitness. The recombination rate r is uniform across loci, as is the mutation, set to μ=103. Each of the Ni pairs has exactly one offspring, the size of niche i is thus kept constant at Ni. The juveniles are then redistributed between habitats, according to their preference, which reflects linearly their number of matching alleles. For example, an A-B-c-M-M-m-[…]-m type will add to its preference A(z)=2/3(α1+α2), and thus choose niche 1 with a probability of c(1+A(z))/(1+(2c1)A(z)), where c is the relative size of niche 1. The αi sum to at most 1 over all ‘M' loci (while αi = 0 for all ‘m' loci). Generations are discrete and non-overlapping.

(b). Ecological divergence at a polygenic trait

Ecological divergence is often driven by disruptive selection acting on polygenic traits. Therefore, we first set out to analyse how increasing the number of loci influences the ability of the model to maintain polymorphism under disruptive selection. We study two to three loci analytically and up to 16 loci using individual-based simulations. In particular, we focus on violation of symmetries in niche proportions, which are defined as c=cI=1cII for niche I and II, respectively (c(0,1)). In order to be able to compare the two- (neco=2) and three-(neco = 3) locus models, we normalize the strength of selection (s) and epistasis (ϵ) in the models with more than two ecological loci such that the mean per-trait selection and epistasis remain the same (sneco=2s2loci/neco and ϵneco=ϵ2loci/(neco2)). This normalization assures that fitnesses of the specialists are always equal to 12sϵ, while preserving the scaling of selection independently of epistasis. This leads to a slight weakening of the trade-off as the number of loci increases (see also electronic supplementary material, figure S1).

For simplicity, we assume that all pairwise epistatic effects have the same value, and neglect higher-order interactions between alleles. Fitnesses of the individual genotypes for the two- and three-locus model are defined in table 1a and b, respectively. Graphical representation of the trade-offs between fitnesses of individual genotypes in niche I and niche II is shown and discussed in electronic supplementary material, figure S1 and the corresponding text.

First, we show that the region of parameter space where polymorphism is maintained is highly sensitive to violation of symmetry in niche proportions, c, even if loci are completely linked. Also, increasing convexity of the trade-off (i.e. more negative ϵ, more disruptive selection) further reduces the parameter space with maintained polymorphism (figure 1a). Both when the loci are completely linked (r = 0) and when they are freely recombining (r = 0.5), there is no difference between two and three loci when mean per-trait selection and epistasis remain the same (see above). The regions of parameter space with maintained polymorphism coincide and shift towards stronger selection as epistasis increases (figure 1c). When recombination between loci is low (r = 0.01, i.e. 1 cM), the regions of parameter space with maintained polymorphism shift closer towards those of the free recombination regime in the three-locus model than in the two-locus model, as in the three-locus case the per-locus strength of selection is lower (figure 1b). Interestingly, there is a threshold for recombination rate, above which the parameter space where polymorphism is maintained is independent of the number of loci, which we elaborate on more in the electronic supplementary material. Below we provide the analytical expressions for the boundaries of the stable regions, and the recombination threshold. The conditions are for protected polymorphism in the ecological loci, obtained by assessing local instability of the monomorphic equilibria. Note that as we have disruptive selection with symmetric selection coefficients, all ecological loci, when polymorphic, evolve to the same allele frequencies.

Figure 1.

Figure 1.

Range of niche proportions where polymorphism is maintained: where ecological divergence towards two specialists is stable. The upper half of the graphs show conditions for the two-locus model, the lower half for the three-locus model. On the x-axis is the normalized strength of selection (symmetric across loci) and on the y-axis are niche proportions. A polymorphic equilibrium is achieved for the parameter combinations of s and c between the black curves and the white axis at c = 0.5 (shaded). Note that we are showing only one half of the parameter space for each model as the conditions are symmetrical. Therefore, every condition at a value of c has its symmetric counterpart at 1c. The outer solid curves represent linear trade-offs (ϵ = 0), the dashed curves are for ϵ=0.25s, and the dash-dotted curves for ϵ=0.5s. (a) No recombination; (b) low recombination (r = 0.01) and (c) free recombination (r = 0.5). It is noteworthy that in the regime with low recombination (b), the region of parameter space where polymorphism is maintained decreases with increasing number of loci if selection and epistasis is normalized as described in the main text.

In both models with normalized selection and ϵ=0 a polymorphic equilibrium is stable if

12s22s<c<122s.

In the case with no recombination (figure 1a) and ϵ<0, polymorphism is maintained if

2s+ϵ12s+ϵ2<c<12ϵ2s,

and with free recombination (figure 1c) if

s(12sϵ)(1s)(2s+ϵ)<c<s+ϵ(1s)(2s+ϵ).

These conditions hold for the two-locus model for recombination rates r>(ϵ/(1sϵ)). If recombination rate is low (0<r<(ϵ/(1sϵ)); figure 1b), the conditions above do not hold anymore and maintenance of polymorphism is determined by

(12sϵ)(2s+ϵ(1r)+r(12s))(1r)(4(1s)s+2ϵ(12s)ϵ2)<c<2s+ϵr(1r)(4(1s)s+2ϵ(12s)ϵ2).

Since the equations describing the conditions for the three-locus model with low recombination and all other models presented from this point on exceed the width of a page, we confine them to the electronic supplementary material, where we also give more details on the stability analysis.

(c). Ecological divergence with niche choice

Next, we analyse how the presence of a niche preference allele influences the sensitivity of polymorphism to violation of symmetry in niche proportions. We assume that habitat choice depends both on the presence of a choosy (modifier) allele M and the phenotype under natural divergent selection. For the individuals with wild-type modifier allele m, there is no bias in selecting niches. When the modifier allele is M, choice depends on the selected loci in the following manner: intermediate generalist genotypes (Ab, aB) disperse to both niches with equal probability, and specialist genotypes (AB, ab) choose with probability 1+α the niche which they are adapted to, and with probability 1α the niche where they are maladapted. Since in our model mating occurs within niches, this translates into a direct modification of fitnesses of the individual genotypes, as defined in table 2.

Table 2.

Fitnesses of individual genotypes modified by niche choice parameter α. Selection and epistasis modify fitnesses of individual genotypes as in table 1a. Genotype ABM goes to niche I with a probability increased by the factor α and to niche II decreased by α. Similarly, genotype abM preferentially goes to niche II instead of niche I.

genotype niche I niche II
ABM 1+α (12sϵ)(1α)
ABm 1 12sϵ
Abm, AbM, aBm, aBM 1 − s 1 − s
Abm 12sϵ 1
abM (12sϵ)(1α) 1+α

In the presence of niche preference, the parameter space where polymorphism is maintained broadens (figure 2). As allele M is beneficial for both specialist genotypes (AB and ab), it quickly goes to fixation when polymorphisms for the other two loci are maintained—hence, two specialists coexist. This holds in the case of complete linkage (figure 2a) and low recombination (figure 2b). In the scenario with free recombination, maintenance of polymorphism at the ecological loci depends on the initial frequencies of alleles A, B and M in the population. With weaker selection against the maladapted genotypes, s, the model is more sensitive to initial conditions, as indicated by the fading grey colour in the lower left part of figure 2c. Within this region, depending on the initial allele frequencies, either the preference allele M goes to fixation and protects polymorphism in the other loci, or the ecological loci go to fixation and allele M remains polymorphic and converges to its equilibrium frequency |12c|/α. Figure 2d shows which combinations of initial frequencies of the ecological (p1 = p2) and preference (p3) alleles lead to which equilibria for four points (i, ii, iii, iv) in the parameter space in figure 2c.

Figure 2.

Figure 2.

Ranges of niche proportions where ecological polymorphism is maintained (i.e. two specialists evolve and coexist), under coevolution of niche preference with ecological divergence. (a–c) Plots showing how niche recognition allele M with niche preference α=0.2 broadens the parameter space where polymorphism at two ecological loci is maintained, relative to the model without preference (upper half of the plot; axes and all other parameters are identical to figure 1). (d) Streamline plots showing how maintenance of polymorphism depends on initial allele frequencies at ecological and niche preference loci for four points in figure 2c (i, s = 0.01; ii, s = 0.1; iii, s = 0.2; iv, s = 0.3; r = 0.5, c = 0.46). Black streamlines represent combinations of allele frequencies where ecological polymorphism is maintained, grey streamlines where either only ecological or all polymorphisms are lost. Since the plots were generated assuming linkage disequilibrium between ecological loci goes to 0 (i.e. loss of ecological polymorphism), the true equilibrium ecological allele frequencies, which are slightly offset with the black streamline attractors, are represented by black dots at the top of plots d(i–iv).

(d). Increase of assortment

Once such a niche preference modifier allele gets fixed in a population, it not only inflates the parameter space where polymorphism is maintained but it also always favours fixation of another modifier allele, which then reinforces the divergence process. In order to analyse such an increase of assortment, we again redefined fitnesses of the genotypes as shown in table 3. The fitnesses of the specialist genotypes (AB and ab) are now defined such that the niche preference allele M from the previous model is fixed in the population. Therefore, both specialist genotypes have their probability of going to the right niche increased by α1. The third locus can now be polymorphic for another modifier allele, which further increases the probability of going to the right niche by α2. In figure 3a–c, we show how the parameter space where polymorphism is maintained further broadens in the presence of another modifier allele, increasing the assortment.

Table 3.

Fitnesses of individual genotypes modified by a fixed niche choice parameter α1 and a polymorphic allele M2, which increases niche preference for the better niche by α2. The genotype ABM2 goes to niche I with a probability increased by the factor α1 + α2 and to niche II decreased by α1 + α2. Similarly, genotype ABM2 preferentially goes to niche II instead of niche I. Preferences of other genotypes are identical as in table 2.

genotype niche I niche II
ABM2 1+α1+α2 (12sϵ)(1α1α2)
ABm2 1+α1 (12sϵ)(1α1)
AbM2, aBM2, Abm2, aBm2 1 − s 1 − s
abm2 (12sϵ)(1α1) 1+α1
abM2 (12sϵ)(1α1α2) 1+α1+α2

Figure 3.

Figure 3.

Range of niche proportions where polymorphism is maintained when assortment further increases. (a–c) Plots showing how the parameter space where polymorphism at two ecological loci is maintained with already fixed niche preference α1=0.2, and an additional allele M2 with niche preference α2=0.2. In figure 3c, which depicts the parameter space for free recombination (r = 0.5), the region where maintenance of ecological polymorphism depends on initial allele frequencies is indicated by a shaded grey area (as in figure 2c). (d–g) Time to fixation (y-axis), of the additional niche preference allele M2 with initial frequency p3=0.01 for various combinations of initial niche preference, α1 (x-axis), strengths of selection, s*, and recombination rates, r. All plots are for the same disruptiveness of selection, ϵ = −0.5s. The time to fixation is reduced most when selection is weak (s=0.01,0.05), and recombination rate is low (r = 0.01, 0.05) (d,e). By contrast, with moderate or strong selection (s=0.1,0.2) and low recombination (r = 0.01) the time to fixation of the niche preference allele M2 either decreases very little or even slightly increases with increasing initial niche preference, α1. Note that the values on the y-axis (time to fixation) differ in (d–g).

Furthermore, we numerically tested how different levels of pre-existing niche preference affect time to fixation of a new niche preference allele. In figure 3d–g, we show that with increasing initial niche preference (α1) the time to fixation of a new niche preference allele (α2=0.2) decreases. In particular, this effect is most profound when selection (s*) is weak and recombination (r) is low (figure 3d,e).

(e). Secondary sympatry

It should be noted that all conditions presented above are independent of the initial linkage disequilibrium between the ecological loci. Therefore, for maintenance of genetic polymorphism in the ecological loci it is irrelevant whether the population starts in a Hardy–Weinberg linkage equilibrium or if it consists of only two specialist genotypes as it would during a secondary contact after divergence in allopatry.

(f). Cost of niche choice

It has been suggested by de Meeûs et al. [34] that in a model with soft selection and habitat preference, the conditions under which polymorphism is maintained appear to be slightly broadened but only if there is no cost to habitat selection. We implemented a cost of niche choice, γ, into our model, which is defined as a fraction of the selection coefficient (fitnesses are described in table 4). The cost is associated with the presence of the allele that allows for niche discrimination and choice, therefore, it is present even if the individual genotype has no preference for any of the niches but carries the niche preference allele M. In other words, it can be seen as a cost of an ability to discriminate (and choose).

As analytical solutions are rather difficult to obtain, we numerically assessed how various values of γ affect maintenance of polymorphism in the ecological loci. In electronic supplementary material, figure S2 we show that for low recombination (around r = 0.01), certain cost is robustly tolerated in a large region of the parameter space: in an example with s=0.1,c=0.46 and ϵ=0.5s, cost γ=0.05s is tolerated for α20.1, cost γ=0.1s for α20.2 and cost γ=0.2s for α20.3.

(g). Individual-based simulations: polygenic traits with more than three loci

We use individual-based simulations to illustrate that initial degree of assortment is essential to allow for the evolution of coupling between ecological loci. When assortment has to evolve from low frequencies, even with strong linkage (r = 0.01), selection has to be strong for the coupling to evolve (cf. figure 3 for two ecological loci, approx. s > 0.1). Weak pre-existing niche preference (one locus out of 10 with α = 0.1 is near fixation) allows for evolution of two coexisting specialists if linkage is strong and the number of loci is low (figure 4a,b—top, neco = 3 and 6). The number of loci, among which coupling evolves, increases readily with higher initial niche recognition (figures 4 versus 5). For example, with two loci out of 10 with α = 0.1 near fixation, variation is already maintained for a moderate number of loci (figure 5), though coupling between the ecological loci (in colour) stays weak when recombination is high (r = 0.1) (figure 5b, bottom rows). As initial assortment increases further, conditions for coexistence broaden considerably (see electronic supplementary material, figure S4)—two nascent specialists can then diverge and coexist even for a polygenic trait under a strong trade-off.

Figure 4.

Figure 4.

(ad) Comparison of individual-based simulations with variable numbers of ecological loci (columns) and recombination between them (top two versus bottom two rows). With moderate initial niche recognition, associations (linkage disequilibria, LD) build up among multiple loci under disruptive ecological selection, and both niche recognition and ecological divergence increase jointly. By contrast, when initial niche recognition is weak, variation is quickly lost (cf. figure 5). First row shows the change in allele frequencies for ecological loci (in colour) and niche preference loci (black); second row shows the dynamics of the pairwise LD between ecological loci (colour), niche preference loci (black) and between ecological and niche preference loci (grey), assuming strong linkage (r = 0.01). Note that for low number of loci (strong selection), LD starts building up immediately, whereas for higher number of loci LD only starts to build up after niche preference increases. For even higher numbers of loci (and/or recombination), variation is lost before assortment builds up. The quick loss of variation is facilitated by epistasis (cf. electronic supplementary material, figure S5), genetic drift (cf. electronic supplementary material, figures S6 and S7) and recombination. Third and fourth rows depict allele frequencies and LDs when loci are only weakly linked, r = 0.1, where joint diversification and evolution of niche preference only occurs for lower numbers of loci (stronger selection per locus). Due to epistasis, loss of variation is actually faster for 12 than 16 loci. Note that both selection and epistasis are normalized with respect to the baseline two-locus case, which leads to a slight flattening of the trade-off curve as the number of loci increases (see Model and electronic supplementary material, figure S1). Parameters: s = 0.1, ϵ = −0.05, slightly asymmetric niche sizes with c = 0.46, population size across niches N = 10 000. Ten niche preference loci with α = 0.1 (average initial niche preference for the specialist is A = 0.22 for 2 niche preference loci near fixation). Selection per locus is 0.1, 0.067, 0.033, 0.017, 0.0125 and pairwise epistasis is 0.05, 0.017, 0.0033, 0.00075, 0.00042 for 2, 3, 6, 12 and 16 loci, respectively (2 loci are the reference value). (Online version in colour.)

Figure 5.

Figure 5.

(ad) When initial niche preference is weak, divergence is only possible if the ecological trait is determined by few loci, with strong selection per locus relative to recombination. With more than six loci (selection per locus weaker than 0.03), variation is quickly lost even when linkage is strong (r = 0.01, top rows). When linkage is weak (bottom rows, r = 0.1), variation is lost already for three loci (s = 0.67) but not two loci (s = 0.1; not shown). Parameters are the same as in figure 4 except here, only one of the niche preference loci is near fixation initially, resulting in a lower average initial niche preference for the specialist A = 0.135. (Online version in colour.)

For more ecological loci—assuming variation is not lost faster—we see a slow build-up of coupling between ecological loci (figure 5c, second row). This can be seen as an abrupt phase change (tipping point, cf. [35]). For our scenario, however, the crucial question is whether enough assortment can build up before variation is lost. Simply because the rate of change of allele frequencies grows with its heterozygosity (i.e. when their frequencies are close to one half), we see a slow increase in niche recognition initially, when its allele frequencies are low (black). It is to be noted that the niche preference alleles are growing from low variation, not from zero—this would need different time scales (even with high mutation of μ = 10−3), and the waiting time does further narrow the parameter range for speciation towards coexistence. Here, we focus on the later stages, assuming some variation is present.

To help the curious reader to understand the patterns in relations to other changes in the parameters, in the electronic supplementary material, we also include results in the absence of epistasis (when variation is maintained more easily), stronger selection (ditto), and a lower population size (converse). Curiously, even with total population size of N = 10 000 and selection per locus si > 0.01 (16 loci), genetic drift is still important. Unfortunately, detailed exploration of these patterns is beyond the scope of this paper. We provide the source code (for Mathematica, Wolfram) and are happy to deliver further specific reference-simulations upon request.

3. Discussion

Maintenance of polymorphism and the plausibility of sympatric speciation are some of the most persistent questions in evolutionary biology. An arguable assumption frequently made in many sympatric speciation models is their restriction to one or rarely several loci, whereas ecological adaptation of a population often involves a gradual change in a polygenic trait [36]. An obvious reason for this common restriction is the analytical difficulty of such models, especially if additional evolutionary forces such as epistasis and a nonlinear trade-off between viabilities are included. Notably, the multilocus version of Levene's model—with a trade-off in adaptation to two different niches—has been analysed [37,38] but no epistasis was allowed (linear trade-off). An exception is Barton's [39] analyses of adaptation in a quantitative trait under a strong (convex) trade-off. He assumed the symmetries in allele frequencies were maintained under disruptive and negative frequency-dependent selection [40]. Yet, when niches are not perfectly symmetric, independent regulation within niches does not always generate sufficient negative frequency-dependence to stabilize ecological polymorphism. Evolution of a quantitative trait in Levene's model with soft selection has also been addressed using adaptive dynamics, most notably by Kisdi & Geritz [41]. They show that successive invasions and substitutions of new alleles of small effect lead to a stable polymorphism, even when niches are considerably asymmetric. Yet, branching cannot be equated with speciation. The question we are asking here is: will these branches diverge and then remain stable in the presence of recombination?

In order for specialists to be favoured over generalists in the absence of niche choice, trade-off in fitness between niches must be strong, such that a small change of the fitness in one habitat leads to a large change of fitness in the other (the fitness curve is convex). For a polygenic trait, this implies less-than-additive epistasis and/or heterozygote disadvantage. Yet, most early models of sympatric speciation focused on maintenance of polymorphism at a single diploid locus under heterozygote advantage (concave trade-off), and on coupling of such polymorphism with a locus for assortment [8,32,42]. Felsenstein [7] analysed coupling of two loci under an ecological trade-off with an independent self-recognizing locus for assortment and concluded that assortment can only increase for linear or concave (weak) trade-offs. With negative epistasis (strong, convex trade-off), polymorphism was not maintained and assortment could not evolve [7, p. 130]. It has been recognized that asymmetry in niche proportions significantly influences the ability of these models to maintain genetic polymorphism—and that symmetric selection and concave trade-offs in fitness make such maintenance easier [7,8,16,26]. Curiously, Barton [39] showed that assortment can readily increase in a population under a convex trade-off, provided the starting genetic variance is large enough. However, that model assumed symmetric niches, and that symmetry in allelic frequencies is maintained by frequency-dependent selection (hypergeometric model, [40]).

We show that specialists can readily evolve even when the trade-off in fitness between niches is strong, provided that polymorphism is stabilized by assortment arising from a preference for the ‘correct' niche (to which the individual is better adapted), and there is some initial niche recognition. As the number of loci determining the ecological trait increases, higher initial assortment is necessary to facilitate divergence. When the number of loci determining the ecological trait is small, and selection is large relative to recombination, associations (linkage disequilibria, LD) between ecological loci increase readily (cf. [43]). With a higher number of loci (weaker per locus selection), initial niche recognition is essential to prevent loss of the variation driven by the negative epistasis (strong trade-off). This limits the scope for lingering before linkage disequilibrium starts building up (tipping points, as popularized by Nosil et al. [35]). If selection is large relative to recombination, associations among ecological loci start building up straight away. As selection weakens relative to negative epistasis (i.e. disruptiveness of selection), variability gets quickly lost. Hence in the presence of epistasis, we only observe the so-called tipping points in the build-up of LD for moderate number of loci, not too strong recombination and moderate initial assortment (figure 4c).

In our analysis, we have neglected unprotected polymorphism. It has been shown that in Levene's model with soft selection, as long as fitness is not a linear function of allele frequency, there are ‘extra’ unprotected equilibria, reachable only from surrounding allele frequencies [44]. Independently, Novak [45] showed that up to three polymorphic equilibria may coexist between two demes for one diploid bi-allelic locus (two of them unprotected). While we would have missed such unprotected equilibria by only testing for instability of monomorphism, our extensive numerical analysis and simulations do not suggest that these are biologically relevant in our model system (indeed, the population state-space around such unprotected equilibria is expected to be very narrow [45]).

Prezygotic isolation due to pre-existing niche recognition both speeds up further evolution of niche preference and allows ecological polymorphism to increase. As it stabilizes polymorphism in divergent populations under secondary contact, it is replacing the previous assortment due to geographical isolation. Similar reduction of gene flow can arise via philopatry (learned habitat preference)—but as the association with fitness is indirect, the effect is likely to be weaker [46,47].

We argue that niche recognition and preference is widespread across all life forms. Even plants' roots have growth-orientation towards nutrient-rich parts of the rhizosphere [48]; motile unicellular organisms, including even bacteria, can move towards their preferred food source by chemotaxis [49,50]; and among (in)vertebrates it is generally known that they can recognize and choose their preferred food or habitat. Therefore, this pre-existing ability to recognize the preferred niche may in fact ‘hijack' arising ecological divergence, protect it, and even further reinforce the newly arising reproductive isolation by strengthening the assortment. Furthermore, the degree of niche preference does not necessarily tightly correlate with the fitness advantage, which the niche provides to the organism. For example, bacteria and yeast tend to prefer one food source over all others (a phenomenon known as a diauxic shift), which in fact means a 100% preference even if the fitness advantage in growth rate is only minor [51,52]. In a phytophagous butterfly Melitaea cinxia, host plant preference has been observed but no measurable fitness advantage was detected on the more preferred host compared to the less preferred one [53]. In many other cases, a preference–performance correlation has been detected [24,25]. While the genetic basis of preference remains mostly unclear, our model is consistent with many observations in ecology where animals tend to choose a diet, which is optimal for them [54].

Supplementary Material

Supplementary Information
rstb20190749supp1.docx (1.4MB, docx)

Supplementary Material

Appendix_model
rstb20190749supp2.nb (1.4MB, nb)

Supplementary Material

Simulation Code Sympatric Divergence
rstb20190749supp3.nb (172.1KB, nb)

Acknowledgement

We thank Nick Barton, Joachim Hermisson, Stuart Baird, Tiago Paixão and Tadeas Priklopil for their insightful comments on parts and/or earlier stages of this study. Also, we are grateful for many valuable comments and suggestions from the reviewers during the peer review process.

Data accessibility

Details on the model are available as electronic supplementary material.

Authors' contributions

P.P. and J.P. formalized the model and wrote the discussion and introduction together. P.P. performed all analyses, wrote the results and produced the graphics. J.P. wrote and ran simulations and produced their graphical outcomes.

Competing interests

We declare we have no competing interests.

Funding

P.P. was supported by a bilateral Czech-Austrian program Aktion, and both J.P. and P.P. were supported by Austrian National Agency (FWF P-32896B).

References

  • 1.Darwin C. 1859. On the origin of species by means of natural selection, or the preservation of favoured races in the struggle for life. London, UK: John Murray. [PMC free article] [PubMed] [Google Scholar]
  • 2.Mayr E. 1963. Animal species and evolution. Cambridge, MA: The Belknap Press of Harvard University Press. [Google Scholar]
  • 3.Jiggins CD. 2006. Sympatric speciation: why the controversy? Curr. Biol. 16, R333–R334. ( 10.1016/j.cub.2006.03.077) [DOI] [PubMed] [Google Scholar]
  • 4.Bolnick DI, Fitzpatrick BM. 2007. Sympatric speciation: models and empirical evidence. Annu. Rev. Ecol. Evol. Syst. 38, 459–487. ( 10.1146/annurev.ecolsys.38.091206.095804) [DOI] [Google Scholar]
  • 5.Via S. 2001. Sympatric speciation in animals: the ugly duckling grows up. Trends Ecol. Evol. 16, 381–390. ( 10.1016/S0169-5347(01)02188-7) [DOI] [PubMed] [Google Scholar]
  • 6.Dobzhansky TH. 1940. Speciation as a stage in evolutionary divergence. Am. Nat. 74, 312–321. ( 10.1086/280899) [DOI] [Google Scholar]
  • 7.Felsenstein J. 1981. Skepticism towards Santa Rosalia, or why are there so few kinds of animals? Evolution 35, 124–138. ( 10.2307/2407946) [DOI] [PubMed] [Google Scholar]
  • 8.Maynard-Smith JM. 1966. Sympatric speciation. Am. Nat. 100, 637–650. ( 10.1086/282457) [DOI] [Google Scholar]
  • 9.Udovic D. 1980. Frequency-dependent selection, disruptive selection, and the evolution of reproductive isolation. Am. Nat. 116, 621–641. ( 10.1086/283654) [DOI] [Google Scholar]
  • 10.Gavrilets S. 2003. Perspective: models of speciation: what have we learned in 40 years? Evolution 57, 2197–2215. ( 10.1111/j.0014-3820.2003.tb00233.x) [DOI] [PubMed] [Google Scholar]
  • 11.Barton NH, de Cara MAR. 2009. The evolution of strong reproductive isolation. Evolution 63, 1171–1190. ( 10.1111/j.1558-5646.2009.00622.x) [DOI] [PubMed] [Google Scholar]
  • 12.Berlocher SH, Feder JL. 2002. Sympatric speciation in phytophagous insects: moving beyond controversy? Annu. Rev. Entomol. 47, 773–815. ( 10.1146/annurev.ento.47.091201.145312) [DOI] [PubMed] [Google Scholar]
  • 13.Greenwood PJ. 1980. Mating systems, philopatry and dispersal in birds and mammals. Anim. Behav. 28, 1140–1162. ( 10.1016/S0003-3472(80)80103-5) [DOI] [Google Scholar]
  • 14.Lavagnino N, Serra F, Arbiza L, Dopazo H, Hasson E. 2012. Evolutionary genomics of genes involved in olfactory behavior in the Drosophila melanogaster species group. Evol. Bioinform. 8, 89–104. ( 10.4137/EBO.S8484) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Rice WR, Salt GW. 1990. The evolution of reproductive isolation as a correlated character under sympatric conditions: experimental evidence. Evolution 44, 1140–1152. ( 10.1111/j.1558-5646.1990.tb05221.x) [DOI] [PubMed] [Google Scholar]
  • 16.Ravigné V, Dieckmann U, Olivieri I. 2009. Live where you thrive: joint evolution of habitat choice and local adaptation facilitates specialization and promotes diversity. Am. Nat. 174, E141–E169. ( 10.1086/605369) [DOI] [PubMed] [Google Scholar]
  • 17.Butlin R. 1987. A new approach to sympatric speciation. Trends Ecol. Evol. 2, 310–311. ( 10.1016/0169-5347(87)90085-1) [DOI] [PubMed] [Google Scholar]
  • 18.Jaenike J, Holt RD. 1991. Genetic variation for habitat preference: evidence and explanations. Am. Nat. 137, S67–S90. ( 10.1086/285140) [DOI] [Google Scholar]
  • 19.Via S. 1991. The genetic structure of host plant adaptation in a spatial patchwork: demographic variability among reciprocally transplanted pea aphid clones. Evolution 45, 827–852. ( 10.1111/j.1558-5646.1991.tb04353.x) [DOI] [PubMed] [Google Scholar]
  • 20.Mackenzie A. 1996. A trade-off for host plant utilization in the black bean aphid, Aphis fabae. Evolution 50, 155–162. ( 10.1111/j.1558-5646.1996.tb04482.x) [DOI] [PubMed] [Google Scholar]
  • 21.Sezer M, Butlin RK. 1998. The genetic basis of host plant adaptation in the brown planthopper (Nilaparvata lugens). Heredity 80, 499–508. ( 10.1046/j.1365-2540.1998.00316.x) [DOI] [Google Scholar]
  • 22.Rossi AM, Stiling P, Cattell MV, Bowdish TI. 1999. Evidence for host-associated races in a gall-forming midge: trade-offs in potential fecundity. Ecol. Entomol. 24, 95–102. ( 10.1046/j.1365-2311.1999.00164.x) [DOI] [Google Scholar]
  • 23.Craig TP, Horner JD, Itami JK. 2007. Genetics, experience, and host-plant preference in Eurosta solidaginis: implications for host shifts and speciation. Evolution 55, 773–782. ( 10.1111/j.0014-3820.2001.tb00813.x) [DOI] [PubMed] [Google Scholar]
  • 24.Forister ML, Dyer LA, Singer MS, Stireman JO, Lill JT. 2012. Revisiting the evolution of ecological specialization, with emphasis on insect–plant interactions. Ecology 93, 981–991. ( 10.1890/11-0650.1) [DOI] [PubMed] [Google Scholar]
  • 25.Gripenberg S, Mayhew PJ, Parnell M, Roslin T. 2010. A meta-analysis of preference–performance relationships in phytophagous insects. Ecol. Lett. 13, 383–393. ( 10.1111/j.1461-0248.2009.01433.x) [DOI] [PubMed] [Google Scholar]
  • 26.Christiansen FB. 1975. Hard and soft selection in a subdivided population. Am. Nat. 109, 11–16. ( 10.1086/282970) [DOI] [Google Scholar]
  • 27.Ravigné V, Olivieri I, Dieckmann U. 2004. Implications of habitat choice for protected polymorphisms. Evol. Ecol. Res. 6, 125–145. [Google Scholar]
  • 28.Rieseberg LH. 2001. Chromosomal rearrangements and speciation. Trends Ecol. Evol. 16, 351–358. ( 10.1016/s0169-5347(01)02187-5) [DOI] [PubMed] [Google Scholar]
  • 29.Levene H. 1953. Genetic equilibrium when more than one ecological niche is available. Am. Nat. 87, 331 ( 10.1086/281792) [DOI] [Google Scholar]
  • 30.Deakin MAB. 1966. Sufficent conditions for genetic polymorphism. Am. Nat. 100, 690–692. ( 10.1086/282462) [DOI] [Google Scholar]
  • 31.Prout T. 1968. Sufficient conditions for multiple niche polymorphism. Am. Nat. 102, 493–496. ( 10.1086/282562) [DOI] [Google Scholar]
  • 32.Hoekstra RF, Bijlsma R, Dolman AJ. 1985. Polymorphism from environmental heterogeneity: models are only robust if the heterozygote is close in fitness to the favoured homozygote in each environment. Genet. Res. 45, 299–314. ( 10.1017/S001667230002228X) [DOI] [PubMed] [Google Scholar]
  • 33.Gliddon C, Strobeck C. 1975. Necessary and sufficient conditions for multiple-niche polymorphism in haploids. Am. Nat. 109, 233–235. ( 10.1086/282991) [DOI] [Google Scholar]
  • 34.de Meeûs T, Michalakis Y, Renaud F, Olivieri I. 1993. Polymorphism in heterogeneous environments, evolution of habitat selection and sympatric speciation: soft and hard selection models. Evol. Ecol. 7, 175–198. ( 10.1007/BF01239387) [DOI] [Google Scholar]
  • 35.Nosil P, Feder JL, Flaxman SM, Gompert Z. 2017. Tipping points in the dynamics of speciation. Nat. Ecol. Evol. 1, 0001 ( 10.1038/s41559-016-0001) [DOI] [PubMed] [Google Scholar]
  • 36.Wilson DS, Turelli M. 1986. Stable underdominance and the evolutionary invasion of empty niches. Am. Nat. 127, 835–850. ( 10.1086/284528) [DOI] [Google Scholar]
  • 37.Nagylaki T. 2009. Evolution under the multilocus Levene model without epistasis. Theor. Popul. Biol. 76, 197–213. ( 10.1016/j.tpb.2009.07.003) [DOI] [PubMed] [Google Scholar]
  • 38.Bürger R. 2010. Evolution and polymorphism in the multilocus Levene model with no or weak epistasis. Theor. Popul. Biol. 78, 123–138. ( 10.1016/j.tpb.2010.06.002) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Barton NH. 2010. What role does natural selection play in speciation? Phil. Trans. R. Soc. B 365, 1825–1840. ( 10.1098/rstb.2010.0001) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Shpak M, Kondrashov AS. 1999. Applicability of the hypergeometric phenotypic model to haploid and diploid populations. Evolution 53, 600–604. ( 10.1111/j.1558-5646.1999.tb03794.x) [DOI] [PubMed] [Google Scholar]
  • 41.Kisdi É, Geritz SAH. 1999. Adaptive dynamics in allele space: evolution of genetic polymorphism by small mutations in a heterogeneous environment. Evolution 53, 993–1008. ( 10.1111/j.1558-5646.1999.tb04515.x) [DOI] [PubMed] [Google Scholar]
  • 42.Maynard-Smith J, Hoekstra R. 1980. Polymorphism in a varied environment: how robust are the models? Genet. Res. 35, 45–57. ( 10.1017/S0016672300013926) [DOI] [PubMed] [Google Scholar]
  • 43.Barton NH. 1983. Multilocus clines. Evolution 37, 454 ( 10.2307/2408260) [DOI] [PubMed] [Google Scholar]
  • 44.Priklopil T. 2012. On invasion boundaries and the unprotected coexistence of two strategies. J. Math. Biol. 64, 1137–1156. ( 10.1007/s00285-011-0448-y) [DOI] [PubMed] [Google Scholar]
  • 45.Novak S. 2011. The number of equilibria in the diallelic Levene model with multiple demes. Theor. Popul. Biol. 79, 97–101. ( 10.1016/j.tpb.2010.12.002) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Beltman JB, Haccou P, Cate CT. 2004. Learning and colonization of new niches: a first step toward speciation. Evolution 58, 35–46. ( 10.1111/j.0014-3820.2004.tb01571.x) [DOI] [PubMed] [Google Scholar]
  • 47.Beltman JB, Metz JAJ. 2005. Speciation: more likely through a genetic or through a learned habitat preference? Proc. R. Soc. B 272, 1455–1463. ( 10.1098/rspb.2005.3104) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Wells DM, French AP, Naeem A, Ishaq O, Traini R, Hijazi H, Bennett MJ, Pridmore TP. 2012. Recovering the dynamics of root growth and development using novel image acquisition and analysis methods. Phil. Trans. R. Soc. B 367, 1517–1524. ( 10.1098/rstb.2011.0291) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Arkowitz RA. 1999. Responding to attraction: chemotaxis and chemotropism in Dictyostelium and yeast. Trends Cell Biol. 9, 20–27. ( 10.1016/s0962-8924(98)01412-3) [DOI] [PubMed] [Google Scholar]
  • 50.Xie L, Altindal T, Chattopadhyay S, Wu X-L. 2011. Bacterial flagellum as a propeller and as a rudder for efficient chemotaxis. Proc. Natl Acad. Sci. USA 108, 2246–2251. ( 10.1073/pnas.1011953108) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Berthels NJ, Cordero Otero RR, Bauer FF, Thevelein JM, Pretorius IS. 2004. Discrepancy in glucose and fructose utilisation during fermentation by Saccharomyces cerevisiae wine yeast strains. FEMS Yeast Res. 4, 683–689. ( 10.1016/j.femsyr.2004.02.005) [DOI] [PubMed] [Google Scholar]
  • 52.Bren A, Park JO, Towbin BD, Dekel E, Rabinowitz JD, Alon U. 2016. Glucose becomes one of the worst carbon sources for E. coli on poor nitrogen sources due to suboptimal levels of cAMP. Sci. Rep. 6, 1–10. ( 10.1038/srep24834) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Nouhuys SV, Singer MC, Nieminen M. 2003. Spatial and temporal patterns of caterpillar performance and the suitability of two host plant species. Ecol. Entomol. 28, 193–202. ( 10.1046/j.1365-2311.2003.00501.x) [DOI] [Google Scholar]
  • 54.Sinervo B. 1997. Optimal foraging theory: constraints and cognitive processes. In Behavioral Ecology, pp. 105–130. Santa Cruz, CA: University of California. [Google Scholar]

Associated Data

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

Supplementary Materials

Supplementary Information
rstb20190749supp1.docx (1.4MB, docx)
Appendix_model
rstb20190749supp2.nb (1.4MB, nb)
Simulation Code Sympatric Divergence
rstb20190749supp3.nb (172.1KB, nb)

Data Availability Statement

Details on the model are available as electronic supplementary material.


Articles from Philosophical Transactions of the Royal Society B: Biological Sciences are provided here courtesy of The Royal Society

RESOURCES