Abstract
The relative contribution of selection and neutrality in shaping species genetic diversity is one of the most central and controversial questions in evolutionary theory. Genomic data provide growing evidence that linked selection, i.e. the modification of genetic diversity at neutral sites through linkage with selected sites, might be pervasive over the genome. Several studies proposed that linked selection could be modeled as first approximation by a local reduction (e.g. purifying selection, selective sweeps) or increase (e.g. balancing selection) of effective population size (Ne). At the genome-wide scale, this leads to variations of Ne from one region to another, reflecting the heterogeneity of selective constraints and recombination rates between regions. We investigate here the consequences of such genomic variations of Ne on the genome-wide distribution of coalescence times. The underlying motivation concerns the impact of linked selection on demographic inference, because the distribution of coalescence times is at the heart of several important demographic inference approaches. Using the concept of inverse instantaneous coalescence rate, we demonstrate that in a panmictic population, linked selection always results in a spurious apparent decrease of Ne along time. Balancing selection has a particularly large effect, even when it concerns a very small part of the genome. We also study more general models including genuine population size changes, population structure or transient selection and find that the effect of linked selection can be significantly reduced by that of population structure. The models and conclusions presented here are also relevant to the study of other biological processes generating apparent variations of Ne along the genome.
Keywords: demographic inference, linked selection, effective population size, coalescence times, population structure, Drosophila melanogaster, humans
Introduction
One of the greatest challenges of evolutionary biology is to understand how natural selection, mutation, recombination and genetic drift have shaped and are still shaping the patterns of genomic diversity of species living today (Lewontin 1974; Charlesworth 2010; Walsh and Lynch 2018). In the last decade genomic data have become increasingly available for both model and nonmodel species. It is expected that by analyzing these genomic data we will be able to better understand the respective roles of the different evolutionary forces (Lewontin 1974; Charlesworth 2010). In particular, it is believed that we will be able to identify the regions that have been shaped by selection, and those that may be more neutral (Pouyet et al. 2018; Johri et al. 2020). The relative importance of selection and neutrality in generating the genomic patterns of diversity we see today has been at the heart of many evolutionary debates and controversies over the last decades (Lewontin 1974; Kimura 1983; Ohta 1992) and recent studies suggest that it still is (Comeron 2017; Kern and Hahn 2018; Jensen et al. 2019).
The concept of effective size (Ne) is central to these debates (Charlesworth 2009) because selection is expected to be more efficient when Ne is large, and genetic drift to be the main driver of evolutionary change when Ne is small (Ohta 1992). For instance, Charlesworth (2009) notes that an autosomal locus under positive selection will behave neutrally when , where s is the selection intensity at this locus. At the same time it is commonly assumed that selection will itself imply a variation of Ne across the genome (Charlesworth 2009; Gossmann et al. 2011; Jiménez-Mena et al. 2016b). For instance, Gossmann et al. (2011) write that “The effective population size is expected to vary across the genome as a consequence of genetic hitchhiking (Smith and Haigh 1974) and background selection (Charlesworth et al. 1993).” They add that “The action of both positive and negative natural selection [...] is expected to reduce the effective population size leading to lower levels of genetic diversity and reduced effectiveness of selection.” They also stress that “The evidence that there is variation in Ne within a genome comes from three sources. First, it has been shown that levels of neutral genetic diversity are correlated to rates of recombination in Drosophila […], humans […], and some plant species….” In his 2009 review on the concept of NeCharlesworth (2009) made a similar comment: “Ne may also vary across different locations in the genome of a species […] because of the effects of selection at one site in the genome on the behaviour of variants at nearby sites.” More recently, Jiménez-Mena et al. (2016a) stated that “recent studies […] suggest that different segments of the genome might undergo different rates of genetic drift, potentially challenging the idea that a single Ne can account for the evolution of the genome” (emphasis ours).
Under these explicit or implicit modeling frameworks, genomic regions with limited genetic diversity are thus seen as regions of low Ne as a result of selective sweeps (Smith and Haigh 1974) or background selection (Charlesworth et al. 1993), whereas regions with very high levels of genetic diversity may be seen as regions of large Ne and could be explained by balancing selection (Charlesworth 2009) (see also Hill and Robertson 1966). Following that rationale, Jiménez-Mena et al. (2016b) suggested that different species might thus differ in the statistical distribution of Ne across the genome and they presented such distributions for eleven species.
Given the central role played by the Ne concept to detect, identify, and even conceptualize selection, it may be important, perhaps even enlightening, to explore the consequences of the ideas presented above with the concept of inverse instantaneous coalescence rate (IICR) recently introduced by Mazet et al. (2016). Indeed, the IICR is equivalent to the past temporal trajectory of Ne, previously defined as the coalescent Ne (Sjödin et al. 2005), in a panmictic population under neutrality, and it is the quantity estimated by the popular PSMC method of Li and Durbin (2011). The IICR was first defined by Mazet et al. (2016) for a sample size of 2 and its properties were studied under several models of population structure (Chikhi et al. 2018; Grusea et al. 2018; Rodríguez et al. 2018). It can also be used for demographic inference under neutrality and models of population structure (Chikhi et al. 2018; Arredondo et al. 2021). These studies showed that the IICR will significantly change over time when populations are structured, even when population size is actually constant. They also outlined that the IICR not only depends on the model of population structure but also on the sampling scheme, which questions the notion that an Ne can be easily associated to (or is a property of) the model of interest when the model is structured (Chikhi et al. 2018; Rodríguez et al. 2018). The reason for this dependency is that the IICR is by definition a function of the distribution of coalescence times for 2 genes (T2), which is itself a function of both the evolutionary model and the location (in time and space) of the sampled genes.
One important assumption of the IICR studies mentioned above is that this distribution of T2 is homogeneous along the genome. The IICR, as defined and computed in previous studies, is thus a genomic average assuming that all loci follow a single Wright-Fisher model, with or without population structure, but with the same number of haploid genes. Whichever definition of Ne one assumes, the underlying model assumes that Ne is constant along the genome. If we now assume that Ne varies across the genome as a consequence of selection (even as an approximation) then the variance of coalescence times should be different from that expected under a standard Wright-Fisher model, and the IICR should be a function of the underlying distribution of the Ne values across the sampled genes. Genomic regions under different selection regimes might then exhibit specific signatures leading to differing IICR curves for each region. Alternatively, these regions might not be easy to identify but they might still influence the average genomic IICR estimated from sequenced genomes. In this study, we thus wish to explore ideas related to drift, selection, and patterns of genomic diversity by studying the consequences of this putative genomic variation of Ne on the IICR.
We first study the IICR under panmixia and constant population size but assuming that Ne varies across the genome as a result of recurrent selection, using hypothetical distributions of Ne and distributions inferred from genomic data. We then generalize the model to integrate temporal population size variations, population structure or transient selection effects. Finally, we compare IICR predictions with PSMC estimations obtained from simulated data under a model including variations of Ne along the genome. Altogether, we advocate the use of the IICR as a concept that may help clarify what Ne means and as one way, among others, to improve our understanding of the recent and ancient evolutionary history of species.
The IICR under panmixia with several classes of (constant size) Ne along the genome
Methods: model description
We assume that the genome can be divided in K distinct classes, each of them characterized by a different Ne that is constant over time. To model these differences of Ne, we consider that each class i () evolves under a constant size Wright-Fisher (WF) model (i.e. panmictic with nonoverlapping generations) with diploid population size (2 haploids), for some reference population size N corresponding to the actual number of diploids. Note that 2 N represents an actual number of haploid genomes and that under the WF model, there is no ambiguity and N represents the Ne under neutrality. Thus, λi reflects the ratio of effective population size Ne in class i relative to N and for convenience we may sometimes refer to λi as the effective population size in class i. Assuming that N is large (i.e. that all are large), we rescale time by units of 2 N generations and study the pairwise coalescence time resulting from this model. For 2 sequences sampled in the present (at time t = 0) for a locus from the ith class of the genome, we know from standard coalescent theory that the coalescence time follows an exponential distribution with parameter , whose probability density function (pdf) is
Denoting by ai the proportion of the genome corresponding to class i, the pdf of the coalescence time T2 at a random locus is thus
| (1) |
One may also see this distribution as the one we would obtain if we were able to sample a large number of independent coalescence times along the genome while covering each class i according to its true proportion ai. In the next section, we study the properties of the IICR under this model.
Results: IICR expression and main properties under panmixia
The IICR is a theoretical function that is intrinsically related to the expected distribution of coalescence times. Denoting F the cumulative distribution function of T2 for a given evolutionary model and sampling scheme, and its pdf, the IICR of a sample of size 2 is defined (mzaet et al 2016) as:
where
This theoretical quantity can be evaluated for any coalescent model by simulating a large number of independent T2 values and computing their empirical distribution (Chikhi et al. 2018). For a large class of models, it can also be obtained exactly using analytical or numerical approaches (Rodríguez et al. 2018). When analyzing a pair of real sequences, the evolutionary model that generated these sequences is unknown but the associated IICR can be estimated by SMC approaches like PSMC or MSMC (Schiffels and Durbin 2013), which exploit the correlation structure of polymorphic sites along the genome to infer local coalescence times and their genome-wide distribution.
For our model with K different λi, we have from Equation (1):
| (2) |
It is straightforward to see that the IICR is not constant as soon as there are at least 2 different values of λi with nonnull proportion ai across the genome. To be more specific, we prove in Text S1 that the IICR defined in formula (2) is always increasing from t = 0 to t = + ∞ (i.e. backward in time). Thus, in a stationary panmictic population, the existence of at least 2 distinct Ne across the genome () is sufficient to infer a decreasing IICR (forward in time). In this situation, classical interpretations of PSMC plots under panmixia will lead to the wrong conclusion that the population size decreased through time. Alternatively, this signal could be (also wrongly) interpreted as the presence of population structure, since population structure can generate similar changes in the IICR (Mazet et al. 2016).
The magnitude of the IICR decrease can also be deduced from formula (2). Indeed, the value of the IICR at present is
| (3) |
and the limit value when is equal to
| (4) |
The present time value is thus necessarily between the smallest and largest λi, as it is the harmonic mean of the λis weighted by their respective proportions ai. The asymptotic value is always the largest λi found in the genome, independent of its proportion. In other words, even if a minute proportion of the genome has a high λi due to balancing selection, under panmixia the IICR will necessarily plateau to this value in the ancient past. One intuitive explanation for the IICR growing (backward in time) toward the largest λi is that the genes that are characterized by a large Ne have much larger coalescence times than the rest of the genome. They thus contribute proportionately more to the most ancient part of the IICR curve.
Results: a 2-class panmictic model
These properties can be observed in Fig. 1 where we represent the simplest case with K = 2 classes of genomic regions. In this figure, we present the IICRs for and , for proportions of λ2 (represented by the parameter a2) varying from 0 to 1. Consistent with the choice made in most studies inferring past population size changes, time is plotted in log10 scale in this figure and all others shown in the main text.
Fig. 1.

IICR curves for a panmictic model with K = 2 classes of genomic regions with constant size. Genomic regions of class i (i = 1, 2) have a constant population size , with and . Their frequencies are a1 and a2, respectively, with . The IICR curves are represented for a2 values (representing neutrality, see main text) varying between 0 and 1. Time is plotted in log10 scale.
To simplify the interpretation of our results, we consider (by convention) throughout this manuscript that corresponds to the neutral regions of the genome, whether ai, their relative proportion in the genome, is large or not. We thus do not necessarily consider that most of the genome is neutral in that sense. In this setting and in Fig. 1, where and , a1 can be interpreted as the fraction of the genome showing reduced Ne by a multiplicative factor as a consequence of positive or background selection.
Figure 1 shows that for small values of a2 (i.e. when most of the genome is under Ne-reducing selection) the IICR is S-shaped, slowly increasing backward from in the recent past to a plateau at in the ancient past. For increasing a2 values the IICR curves are becoming flatter as their left-most section flattens upward. Consistent with the properties outlined in the previous section, these curves start (in recent times) at increasing IICR values above when the value of a2 increases, but the curves always reach the same ancient plateau at . However, and this is an important point, this plateau is reached earlier as a2 increases. When a2=1, only the plateau remains and the IICR is flat at and when , it is a flat at . Thus, when there is only one λi over the genome, the IICR is constant over time and equal to that value, as expected for a population with constant size (Li and Durbin 2011; Mazet et al. 2016).
If we now assume that the only type of selection present in the genome increases the effective size by an order of magnitude, with a1 and a2 corresponding to and , we obtain exactly the same figure with the only difference that it is rescaled (Supplementary Fig. 1). This figure now shows that even if most of the genome is neutral, tiny amounts of Ne increasing selection strongly influence the IICR, as it always grows backward toward the plateau corresponding to the largest of the 2 λi values.
Altogether Fig. 1 and Supplementary Fig. 1 suggest that there is a strong asymmetry between selection reducing (background and positive) or increasing (balancing) Ne in the genome in the way they affect IICR shapes. Balancing selection generates an ancient and high plateau at the level of λ2, even for small proportions of a2 (Supplementary Fig. 1), whereas positive and background selection generate a recent and relatively more modest decrease of the IICR for small values of a1, even assuming, as in Fig. 1, that these generate a 10-fold decrease in Ne (Fig. 1).
Results: a 3-class panmictic model
To further explore the influence of both types of selection (reducing and increasing Ne), we considered a model with 3 classes such that and (Fig. 2). In this Figure we set the 3 λi as (. As above, corresponds to genomic regions under positive or background selection, corresponds to the neutral part of the genome and to genomic regions under balancing selection. In the left panel, we considered a fixed small proportion of balancing selection (), and allowed the proportions of neutral and positive or background selection to vary (a1 varied from 0 to 0.8, and thus a2 from 0.99 to 0.19). In the right panel, we considered a fixed and large proportion of positive or background selection () and varied the proportion of regions under balancing selection (a3 from 0 to 0.1), and thus the proportion of neutral regions too (a2 between 0.5 and 0.4).
Fig. 2.
IICR for a panmictic model with values such that and . The first class (or type) of genomic regions () is meant to represent regions of the genome under positive or negative selection and is modeled by a constant population size with . Genomic regions of class 2 are meant to represent neutrality and they have a constant population size where . Regions of class 3 are meant to represent genomic regions under balancing selection, they have a constant population size with . Left panel: the frequency of class 3 is fixed at and the frequencies of classes 1 and 2 are allowed to vary. The frequency a1 is given by the legend. Right panel: the frequency of class 1 is fixed at and the frequency of classes 2 and 3 are allowed to vary. The frequency a3 is given by the legend.
Figure 2 shows similarities with Fig. 1. Specifically, both figures suggest that regions reducing Ne impact the IICR curves in the recent past whereas regions increasing Ne impact the IICR in the ancient past. This is worth stressing given that our model assumes here that Ne is reduced (in class 1) or increased (in class 3) in a stationary way throughout the genealogical history of the sampled genes (see the sections on transient selection for a different assumption). Also, small proportions of balancing selection seem to generate much bigger changes than small proportions of positive or background selection, as shown by the comparison of the IICRs obtained for vs. on one hand (left panel) and for vs. on the other hand (right panel).
There are, however, differences between Fig. 2 and Fig. 1. The simple fact that we consider both Ne-reducing and Ne-increasing forms of selection generates complex IICR curves, in which both forms of selection directly or indirectly impact the whole IICR curves. When neutral regions are frequent enough ( and ), the IICR exhibits a plateau or a flattening at λ2 in its middle section, but for larger values of either a1 (left panel, ) or a3 (right panel, ) the proportion of neutral genomic regions decreases and the IICR curve only exhibits a short inflexion corresponding to before increasing backward toward λ3. An interesting pattern related to this intermediate plateau is observed on the left panel when a3 is fixed: the IICR in the ancient past increases more and quicker (backward in time) for than for lower values of a1, although a1 models the proportion of low Ne regions in the region. This counterintuitive result likely comes from the fact that the proportion of neutral regions decreases when a1 increases, so that the IICR becomes more similar to that of a 2-class model with only λ1 and λ3, directly increasing to λ3.
Despite this complex interplay, Fig. 2 provides some insights about our capacity to detect or quantify either type of selection based on the IICR. The left panel suggests that the IICR includes relevant information about the proportion of the genome under positive or background selection: for large values of a1, there is a quick decline of the IICR (forward in time) followed by a low plateau around λ1, whereas lower a1 values see a more recent and gradual decrease of the IICR without any clear recent plateau. However, this distinction is far less visible when plotting on a natural scale (Supplementary Fig. 2), in which case a1 values as different as 0.1 and 0.5 lead to quite similar IICRs. Besides, results on the importance of a1 are likely exaggerated by the small value of λ1 used in Fig. 2, which implies a 10-fold reduction of Ne. In comparison, our choice of λ3 only implies a 3-fold increase of Ne in Fig. 2.
While the value of λ3 (more generally of the highest λi) determines the plateau of the IICR, the proportion of this class (a3) appears to determine to a large extent the speed of convergence (backward) to this ancient plateau (right panel). For the smallest a3 values (0.1 or 0.01%), this ancient plateau is not reached within the figure (for ) whereas a plateau corresponding to the neutral regions ( is observed for quite long periods. For the largest a3 values considered here (1 or 10%), the convergence backward to the ancient plateau is so fast that the IICR does not exhibit the middle plateau around the neutral value, as already mentioned.
In any case, these results suggest that if selection can be seen as reducing or increasing Ne in a panmictic population, the strongest effect on the IICR seems to be disproportionately the result of the largest Ne, even though it may in practice affect ancient parts of the IICR curves that may not be easily reconstructed from real data. PSMC curves obtained from real data show a sharp decrease (forward in time) in the very ancient past in several species, including humans and Neanderthals. While this ancient decrease is usually ignored or interpreted as a statistical artifact resulting from the very low number of coalescence events dating back to this period, Fig. 2 suggests that it is possibly due to divergent alleles maintained by balancing selection.
Methods: distributions of Ne inferred from real data
The above examples highlighted important and partly unexpected properties of the IICR when Ne is variable along the genome. However, they relied on a very small number of classes with arbitrary λi and ai values. It is thus not clear to which extent they inform us on the impact of linked selection in real species, where the combined variations of gene density, selection form or intensity and local recombination rate generate complex Ne distributions. In this section we consider 2 model species for which variation in Ne has been documented or estimated, the fruit fly Drosophila melanogaster and humans (Supplementary Fig. 3).
In the case of D. melanogaster, we compared 2 different distributions of λi over the genome, obtained by Gossmann et al. (2011) and Elyashiv et al. (2016). These 2 methods combine polymorphism data from the focal species and divergence data with closely related species, but they are based on very different approaches: the method of Elyashiv et al. (2016) explicitly models selection and its impact on the pairwise coalescence rate in each genomic region, while the method of Gossmann et al. (2011) assumes a log-normal distribution of Ne over the genome and estimates its scale parameter from a large number of loci. For each of these 2 methods, the distribution obtained for D. melanogaster was converted into a discrete distribution of λi values with K = 25 and the associated IICR was computed using formula (2) (see Supplementary Text 1 for more details). As a comparison with another species, we also considered the distribution obtained by Gossmann et al. (2011) for humans.
Results: distributions of Ne inferred from real data
The distribution of λ inferred by Elyashiv et al. (2016) for Drosophila differed from the other 2 on 2 aspects (Supplementary Fig. 3). First, it had a lower support (up to , vs. for the others). This implied a smaller plateau of the IICR [as expected from Equation (4)], but this effect was mainly visible at very ancient times (back to t = 500, right column) for which the IICR is unlikely to be observed from real data. Second, it had a mode for very low λi values, which probably resulted from the inclusion of regions with very low recombination where the impact of linked selection is substantial. This mode had a limited effect on the IICR (see Supplementary Fig. 4 for an IICR obtained after filtering out λ values below 0.25 from the distribution).
Despite the differences between the species and the methods used to estimate the variation in Ne, we obtained rather similar IICRs between t = 0 and t = 10 (middle column). The magnitude of the decrease observed in these IICRs was also comparable to that expected from Fig. 2 for small values of a1 (e.g. , top right panel). Consequently, a long-term 5-fold IICR decrease (from t = 10 to t = 0 forward in time) could realistically be the result, in both humans and D. melanogaster, of a moderate proportion of loci with very small Ne (Fig. 2, , Supplementary Fig. 3, top) or from a larger proportion of loci with only slightly decreased Ne (Supplementary Fig. 3, middle and bottom), all as a consequence of linked selection. Obviously, this conclusion can only be seen as a first order approximation, given that neither the estimation of the Ne distribution by Elyashiv et al. (2016) or Gossmann et al. (2011), nor the computation of the resulting IICR, account for population demography or structure. Models including these aspects when computing the IICR are considered in the next section.
Generalization to more complex models
Methods: extended model
We can generalize Equation (2) to more complex models by still assuming that the genome is divided into K groups of loci each characterized by a different coalescence rate history. However, instead of describing this history by assuming panmixia and constant population size (λiN), we can study different demographic models with departures from these assumptions, including models with panmixia and population size changes, models with population structure and models with transient (rather than recurrent) selection. In this more general framework, let us denote the pdf of the coalescence time in the i-th class and ai the proportion of the genome in this class. The IICR is:
| (5) |
where .
Results: panmixia and population size changes
One first potential application of this general framework is to study how linked selection interferes with genuine temporal variations of the population size. For instance, a natural question would be to know whether the spurious signal of recent population size decline arising from positive or background selection is strong enough to mask a genuine recent population expansion. To answer this question, we considered a simple extension of the 2-class model studied in Fig. 1 (K = 2, and ), where the population sizes in the 2 classes are multiplied by the same factor at a given time T before present. This expansion factor was set either to 5 in order to mimic the magnitude of (opposite) linked selection effects (Fig. 3), or to 100 to mimic the very strong recent expansion that may be observed in some species including humans (Supplementary Fig. 5). The IICR of this model was computed by inserting known analytical expressions for the pdf of in each class i (e.g. Mazet et al. 2015) into Equation (5). Note that the same approach could be applied to arbitrary complex demographic and selective scenarios, as long as the same temporal variations are applied to all classes.
Fig. 3.
IICR curves for a panmictic model with a recent 5-fold expansion and K = 2 classes of genomic regions. Regions of class 1 and 2 have an ancestral population size and and a recent population size and , with and . Each panel corresponds to a different expansion time, indicated in the panel header. Frequencies a1 and a2 of the 2 classes are given by the legend ().
In the specific scenario considered here, we found that a strong proportion of selection in the genome could mask a genuine 5-fold expansion or even lead to the opposite conclusion of a population size decline (Fig. 3). When 50% of the genome was under selection, the IICR showed transient temporal variations around the expansion time T (whose magnitude depended on T) but could at first approximation be interpreted as a constant population size history. When 90% of the genome was under selection, the overall pattern was that of a 2-fold decline. In contrast, smaller proportions of selection (10% of the genome or less) did not strongly affect the signal of population expansion. For stronger expansion events (100-fold, Supplementary Fig. 5), the IICR showed a significant increase for all values of a1 and T, but the IICR increase was much weaker than the true population size expansion: around 15-fold for and 10-fold for . These results confirm that linked selection can significantly bias population size change inference, even in the presence of clear genuine demographic events.
Results: stationary population structure
One other important extension of the models considered above is to account for population structure when modeling each genomic class. To illustrate this idea, we first considered a model with K = 2, and as in Fig. 1. Here, we assumed that these 2 classes evolved under a n-island model with the same number of demes (n = 10), the difference in Ne being modeled through the use of different deme sizes in the 2 classes ( and ) We further assumed that selection did not affect migration, so that the per generation migration rate m was the same for the 2 classes. In other words, selection reducing Ne is assumed to operate after migration and thus only affects coalescence rates, but not migration rates, of the 2 genomic regions. This implies that the scaled migration rate is identical in the 2 classes (time scale is still 2 N here, but now refers to deme diploid size rather than to the entire population size). One way of seeing this is by considering that there are 2 N haploid genomes in each deme with scaled migration rate 2Nm and that selection acts on the different genomic regions by changing drift by a factor λi.
As already mentioned and exploited in previous studies on the IICR (Mazet et al. 2016; Grusea et al. 2018; Rodríguez et al. 2018), the distribution of coalescence times under a symmetrical n-island model can be derived analytically (Herbots 1994). Extending these derivations to a model with general deme size , instead of N in previous studies, we can show (see Supplementary Text 1) that in this case
| (6) |
with
and
Setting for all i recovers the results of Mazet et al. (2016). The IICR of an n-island model with 2 classes of deme size can be obtained by computing with each λi using Equation (6) and inserting the results into Equation (5).
IICR curves obtained for this 2 class n-island model are shown in Fig. 4 for different values of the scaled migration rate. When M increases, they become more similar to those shown in Fig. 1, also reported in the right panel of Fig. 4. This was expected given that an n-island model with high migration () should behave in a way that is similar to a panmictic model with population size Nn, except in the recent past where the IICR of the n-island still reflects local deme size (Mazet et al. 2016). When M decreases, the 2 extreme models with (red curve) or (violet) show that a higher plateau of the IICR is observed, which was again expected (Mazet et al. 2016).
Fig. 4.
IICR curves for a symmetrical n-island model with n = 10 demes and K = 2 classes of genomic regions. Regions of class 1 and 2 have a constant deme size and with and . Scaled migration rate is the same for the 2 classes, each panel corresponding to a different value of this parameter. Frequencies a1 and a2 of the 2 classes are given by the legend (having in mind that ). For comparison with panmictic models (in particular those in Fig. 1), time is scaled by the meta-population size 2Nn rather than by the deme size 2 N as in Equation (6).
For lower migration rates ( in Fig. 4), models with rather large values of a1 are hard to distinguish from the model with a1 = 0 (no selection). For instance, the IICR with is not very different from that with , in contrast to the right panel where panmixia is assumed. This suggests that population structure may tend to mask the effect of positive or negative selection even when a quite important part of the genome is under selection. On the other hand, the IICR with is more similar to that with than under panmixia. This suggests that, in the presence of population structure, models with pervasive selection (99% of the genome with ) may be interpreted as neutral models with small effective size (100% of the genome with ).
Another interesting observation from Fig. 4 is the existence of a time window where the IICR is lower when a2, corresponding to the largest Ne, is largest, i.e. the IICR is lower for models with a smaller part of their genome under selection reducing Ne. This time window occurs in the recent past and is wider for lower migration rates. This counterintuitive result illustrates the limits of interpreting the IICR as a trajectory of effective size, as already outlined for several other demographic scenarios (Mazet et al. 2016; Chikhi et al. 2018). Outside this period, the IICR curves seem to always reach higher values when a2 is larger. This is in particular the case for t close to 0, which is expected analytically (Equation 3).
Results: nonstationary population structure
To check whether these conclusions may still hold for more realistic evolutionary scenarios, we next assume that each genomic class evolves under the nonstationary n-island model estimated by Arredondo et al. (2021) to fit the observed PSMC of a modern human from Karitiana (Li and Durbin 2011). This model includes 11 islands with symmetric migration and (diploid) deme size 1,380 and it assumes that these islands go through 4 changes of connectivity in the past: ( 1.6e-4) from present to 24,437 generations before present (BP), ( 3.2e-3) from 24,437 to 82,969 generations BP, ( 4.5e-4) from 82,969 to 107,338 generations BP, ( 1.3e-4) from 107,338 to 179,666 generations BP and ( 2e-4) in more ancient times. We define K classes of genomic regions: 1 neutral region with deme size N and K–1 other regions under selection with deme size , for λi either smaller or larger than 1. Results are shown in Fig. 5, where 2 different options are considered to model the heterogeneity of effective size along the genome: (1) the hypothetical 3-class model of Fig. 2 with 1 class corresponding to positive or negative selection and one other corresponding to balancing selection (top panels), and (2) the 25 class model of Supplementary Figure 3 estimated from Gossmann et al. (2011)’s analysis of human real data (bottom panel).
Fig. 5.
IICRs for demographic models combining population structure and linked selection in humans. The neutral part of the genome evolves under the nonstationary n-island model estimated by Arredondo et al. (2021) to fit the observed PSMC of a modern human from Karitiana (Li and Durbin 2011). This model includes 11 islands with (diploid) deme size N = 1380, whose connectivity varied along time according to a 5 step process (see the text for details). To account for selection, this neutral class only represents a fraction of the genome and other classes with lower or higher Ne are also considered. The number of these classes, their proportions and deme sizes (relative to the neutral class) are taken either from Fig. 2 (top, where a3 is fixed to 0.01 in the left panel, and a1 fixed to 0.5 in the right one) or from Supplementary Fig. 3 (bottom, red line). The black curve on all panels depicts the IICR for this demographic scenario but without selection. Time is shown in generations and in log10 scale.
We find that large values of a1 could have a significant impact on the IICR in the period ranging from 10,000 to 30,000 generations ago (corresponding to 200–300,000 to 600–900,000 years ago). For instance with , the IICR is around 17 in the most recent hump and around 5 in the most recent “valley,” vs 22 and 12 without selection (top left panel). However, this effect is very moderate when considering the λi distribution estimated by Gossmann et al. (2011) (bottom panel). Much more dramatic is the effect observed in the ancient past above 100,000 generations ( 2–3 million years) before present, where the IICR with selection is significantly larger than the neutral IICR. This difference is driven by the part of the genome with large effective size (i.e. under balancing selection) and is found (with varying magnitude) in all scenarios.
While the neutral model considered here was estimated without accounting for selection and may thus be itself a biased representation of the true neutral history, the results shown in Fig. 5 provide a first approximation of the impact of linked selection on demographic inference in a realistic scenario.
Methods: modeling transient selection
We finally apply this general framework to model the transient effect of recent selective sweeps, rather than the effect of recurrent positive, negative, or balancing selection considered until now. For this analysis, we consider a panmictic population. A similar question was tackled by Schrider et al. (2016), who showed in their Fig. 5 the estimations obtained when applying the PSMC to a 15 Mb genomic region that experienced one or several recent selective sweeps. We focus here on a scenario similar to theirs, with 1 single selective sweep and approximate the resulting IICR using a model with different classes of λi that are time-dependent. In contrast to the model considered in Fig. 3, these temporal variations differ between classes, because they depend on the distance to the selected site. Although this model is built based on the expected variations of effective size (or coalescence rate) in a 15 Mb region, we note that it also applies to a whole-genome having experienced on average 1 recent selective sweep per 15 Mb region. In other words, our aim here is not to switch from the analysis of global to local IICRs, but rather to explore the local and implicitly global effects in a relatively realistic example.
To approximate the IICR resulting from a recent selective sweep, we assume that the effect of this sweep can be modeled by a reduction of effective population size that is limited both in time (from the emergence of the derived favorable allele to its eventual fixation in the population) and in “genomic space” (i.e. in a genomic neighborhood of this selected variant). More precisely, we consider that the region affected by the sweep on one side of the selected locus is of size
with N the diploid population size, r the per site recombination rate and the scaled selection intensity (s being the fitness advantage of homozygotes carrying the selected mutation). This quantity corresponds to the distance in base pairs (bp) from the selected site such that heterozygosity is reduced by only 5% at the end of the sweep (Walsh and Lynch 2018, chap. 8). To capture the fact that the reduction of effective size caused by the sweep depends on the physical distance to the selected site, we further divide this affected region in 10 classes of size with increasing distance from the sweep, where the factor 2 results from the sweep extending on both sides of the selected site.
Modeling the selective sweep under the classical “star-like” hypothesis (Nielsen et al. 2005), we approximate (see Supplementary Text 1) the average coalescence rate during the sweep as
where
is the duration of the sweep (in generations) and
is the per lineage probability of recombination between the selected site and the genomic class. Thus, the relative effective population size in a given genomic class affected by the sweep is equal to 1 before and after the sweep and to
during the τ generations of the sweep. A neutral class with λ = 1 at all times is also included to account for positions within the 15 Mb segment but with physical distance to the selected site greater than L.
Results: transient selection
As shown in Fig. 6, top panel, the resulting IICR for α = 200 (corresponding to s = 0.01 for N = 10,000) is very close to that of a neutral scenario. The IICR for α = 1000 (corresponding to s = 0.05 for N = 10,000) shows a reduction of about one half at sweep time, similar to the average PSMC plot in Fig. 6b of Schrider et al. (2016). The IICR for α = 10,000 (corresponding to s = 0.5 for N = 10,000 or to s = 0.05 for N = 100,000) shows a much stronger decline, down to almost zero. However, the IICR decline in our analysis is very localized in time, while the PSMC decline in (Schrider et al. 2016) extends for a longer period. Another important difference is that the PSMC plot in the simulations of Schrider et al. (2016) not only recovers the neutral value after the sweep but increases up to more than twice this value in the recent past. To understand these differences, we simulated coalescence times along a 15 Mb region under the same sweep scenario, with α = 1000, using the software msms (Ewing and Hermisson 2010) and estimated the resulting empirical IICR as in Chikhi et al. (2018).
Fig. 6.
IICRs for a 15 Mb region experiencing a single recent selective sweep. Parameter values were chosen to reproduce those in Fig. 5 of Schrider et al. (2016): N = 10,000 (diploid size), (per site recombination rate) and t0 = 4,000 generations before present (time where the derived allele got fixed). Times are given in generations and are shown in log10 scale. Top: Expected IICRs when modeling selection using a panmictic model with K = 11 classes of regions. Class 11 represents the neutral part of the region (unaffected by the sweep), with relative population size . Class j () represents a part of the region affected by the sweep, with a given physical distance from the selected site (which increases with j). Relative population size is equal to before and after the sweep and is decreased during the sweep to match the larger coalescence rate (see the text for more details). The proportion of each selected class is , where L is the size of the region affected by the sweep on either side of the selected site. Scaled selection intensity was equal to 200, 1,000, or 10,000 (see the legend). Bottom: Empirical IICRs based on coalescence times simulated with the software msms, for α = 1000. Two hundreds independent 15 Mb regions were simulated. Colored lines show the IICRs for 5 of these regions (taken at random) and thus represent typical local IICRs. Black lines show the IICRs obtained when merging coalescence times from all regions, they thus correspond to genome-wide IICRs obtained for a 3 Gb genome (200 × 15 Mb) with one selective sweep every 15 Mb. The number of time windows considered (i.e. of distinct estimated IICR values) was equal to 25 (left) or 200 (right) and the length of these windows was increasing exponentially backward in time, as in the PSMC approach.
Similar to PSMC estimations, these empirical IICR estimations depend on the number of time windows considered, the assumption being that Ne is constant within each time window but may vary between time windows. In the bottom left panel of Fig. 6, we consider 25 time windows, which corresponds to the order of magnitude used in most PSMC studies. The resulting IICR, averaged over 200 replicates, is transiently reduced around the sweep time and shows no increase above 1 in the recent past, similar to our theoretical prediction (top panel). However, the reduction of Ne is both longer and of lower magnitude than in our prediction, as in the PSMC plots of Schrider et al. (2016). In the bottom right panel, we consider 200 time windows and obtain an average IICR in which the magnitude and duration of the decrease is much more consistent with our theoretical prediction. IICRs from single replicates also correctly capture this reduction around the sweep time but are very noisy outside this period as a side effect of the finer time discretization. Altogether, these results show that modeling selective sweeps by local transient changes of population size leads to a reasonable approximation of the IICR (or equivalently of the genome-wide distribution of T2) but that discretizing time using a limited number of time windows may lead to soften the true sweep signature by an averaging effect. They also outline that some aspects of a PSMC estimation, as the recent expansion following the sweep in the study of Schrider et al. (2016), cannot be predicted by the IICR, whatever method is used to compute the IICR. The next section explores in more details the link between IICR predictions and PSMC estimations.
IICR predictions and PSMC estimations
The models and results presented so far allow to predict the effect of linked selection on the IICR, or equivalently on the genome-wide distribution of pairwise coalescence times. However, coalescence times are not directly observed from real data so the IICR is in practice estimated from methods like PSMC or MSMC. When population size history is homogeneous along the genome (i.e. K = 1 class), PSMC generally provides a very good estimation of the IICR (Mazet et al. 2016) (taking apart considerations relative to the amount or the quality of the data). But when population size history is heterogeneous along the genome, as considered here to approximate the effects of selection, the answer may depend on the scale (10 kb? 100 kb? 1 Mb?) at which this heterogeneity is detectable. In other words, for a fixed proportion of genomic positions with reduced effective size due to linked selection, PSMC results may depend on the spatial clustering of these positions along the genome, while the IICR does not.
To explore this question, we tested whether genomic data including genome-wide heterogeneity of Ne at different scales could generate PSMC plots consistent with our IICR predictions. To do this, we carried out a limited number of additional simulations in which, using the genomic sizes and , we varied the lengths L1 and L2 of contiguous DNA chunks belonging to a given class, while keeping constant the proportions a1 and at which these classes are represented. The lengths L2 for the chunks of class 2 were chosen to be 106, 105, and 104 base pairs, and the lengths for the chunks of class 1 followed from the proportions a1 and a2 (). We tested 3 values for the frequency a1 (0.5, 0.9, and 0.99). For each combination of a1 and L1 we simulated 2 haploid genomes consisting of 10 independent chromosomes of length 108 base pairs, where the 2 size classes were evenly alternated in the form . More precisely, 2 independent samples of 2 haploid sequences were simulated for each chromosome using ms (Hudson 2002), one with size and one with size , and chunks from each sample were concatenated alternately in order to obtain the final 108 bp sequence. We ran PSMC on the simulated genome pairs using the default settings provided on the github repository https://github.com/lh3/psmc [accessed 2022 Jan 23] and found that the resulting estimations fit well IICR predictions for large chunks ( and 105), but may highlight more complex and unpredicted patterns for smaller ones (Fig. 7). Code used to reproduce these results can be found at https://github.com/sboitard/IICR_selection [accessed 2022 Jan 22].
Fig. 7.
Comparison between theoretical IICR and inferred PSMC. For each frequency distribution (a1, a2) of the 2 size classes and we show the corresponding theoretical IICR (black) and 2 independent PSMC estimations for 3 values of the chunk length L2. In each case, . The simulated sequence has a total length of 109 bp and the 2 class chunks are evenly alternated in the form . For these simulations, population size was equal to 10,000, mutation rate to 2.5e-8 per bp per generation and recombination rate to 0.5e-8 per bp per generation.
Discussion
Effects of linked selection on the IICR
A classical assumption in population genetics considers that linked selection can be modeled as a first approximation by a local change in effective population size (Hill and Robertson 1966). Background selection and selective sweeps, which tend to reduce genetic diversity locally (Smith and Haigh 1974; Charlesworth et al. 1993), are then seen as resulting in lower Ne values, whereas genomic regions under balancing selection are in contrast interpreted in terms of higher Ne values. In both cases, the impact of selection on genetic diversity or Ne is stronger for regions with lower recombination or higher selective constraints (number of selected sites, selection intensity) (Charlesworth 2009). At the genome-wide level, linked selection appears thus to generate an apparent heterogeneity of Ne among genomic regions, reflecting the variations of the mode (increasing or decreasing Ne) and the intensity of linked selection (Gossmann et al. 2011; Jiménez-Mena et al. 2016a). Following this simplifying assumption, we described in this study the distribution of the coalescence time between 2 sequences (T2) for models including variable classes of Ne along the genome. More precisely, we characterized the IICR (Mazet et al. 2016) of such models, a quantity that is equivalent to the T2 distribution and corresponds to the graphical output of the popular PSMC approach (Li and Durbin 2011), which is generally interpreted as the past temporal trajectory of Ne of the population or species under study. This analysis allowed us to predict the expected effects of linked selection on PSMC or related demographic inference approaches (Schiffels and Durbin 2013).
One of the main conclusions of our work is that, under panmixia and constant population size, the existence of several classes of Ne (induced by linked selection) always results in a spurious signal of population size decline: the IICR of such models is a decreasing function (forward in time) whose highest value (reached in the ancient past) corresponds to the largest genomic Ne and lowest value (reached in the most recent past) to the harmonic mean of genomic Ne values weighted by their relative proportion in the genome (Fig. 1, Equation 3). Specifically, we found that selection reducing Ne (background selection or sweeps) has a stronger effect on the IICR in the recent past, while selection increasing Ne (balancing selection) mainly influences the IICR in the intermediate and ancient past (Fig. 2). There is a striking asymmetry between the 2 forms of selection: because the IICR plateau is determined by the class with the largest Ne independently of the proportion of this class, even a minute proportion of balancing selection can have a large effect on the IICR, whereas higher proportions of background selection or sweeps are necessary to generate significant and detectable effects on the IICR (Fig. 2). Combining the 2 forms of selection by considering Ne distributions inferred from real data (Gossmann et al. 2011; Elyashiv et al. 2016) we found that linked selection is expected to cause a long term apparent 5-fold decrease of the IICR in organisms such as humans or D. melanogaster (Supplementary Fig. 3). However, we stress that these results assumed panmixia and constant population size.
Another important conclusion of our work is indeed that the effects of linked selection on the IICR mentioned above may be largely hidden by those of population structure. Considering a symmetrical n-island model, we observed for instance that even when a large proportion of the genome is influenced by selection reducing Ne the effect on the IICR could be difficult to see for models with reduced migration rates between islands (Fig. 4). Focusing on humans we also considered a simple but reasonable demographic scenario of variable population structure (Arredondo et al. 2021) together with a realistic genomic Ne distribution for this species (Gossmann et al. 2011). We found that the largest and most visible effect of linked selection on the IICR was an ancient population size decline related to the presence of balancing selection (Fig. 5, bottom).
Such ancient declines are indeed observed in PSMC plots inferred in humans and a number of other species, but a further complication is that these patterns may also arise due to the low number of informative coalescence events available to PSMC in this ancient time period. PSMC analyses of genomic data simulated under realistic demographic scenarios, with and without balancing selection, will be necessary to investigate whether these ancient signatures of balancing selection can be disentangled from statistical artifacts. As a simple test, we simulated genomic data under the demographic model of Fig. 5 with a single genomic Ne (i.e. no selection). We applied PSMC to these data and found no ancient decrease in the estimated trajectory compared to the expected IICR (Supplementary Fig. 6). These admittedly limited results suggest that the PSMC is not necessarily statistically biased in the ancient past, and that the signals observed in several species including humans and chimpanzees might be due to balancing selection or other forms of selection maintaining high levels of diversity over very long periods. One possible strategy to limit the influence of regions submitted to such forms of selection would be to first detect them and filter them out from the PSMC analysis. For the demographic scenario of Fig. 5, we found that this would reduce the biases observed in the ancient past without affecting significantly other parts of the IICR (Supplementary Fig. 7).
The intriguing signature of background selection on the IICR
The framework developed in this study makes no particular distinction between positive and background selection, which are both modeled as leading to a reduction of Ne. Thus, one possible interpretation of our results would be that ignoring background selection leads to infer spurious population declines. This conclusion is at odds with several previous studies, which concluded that unaccounted background selection may actually lead to a spurious signature of recent population expansion. For instance, Zeng and Charlesworth (2011) and Walczak et al. (2012) developed theoretical approximations of the genealogical process at a neutral locus linked to a site under negative selection and showed that this process shared many properties with that of an expanding population. The former study accounted for intra-locus recombination, whereas the latter ignored it. Several recent studies have applied demographic inference methods to genomic data simulated with and without background selection (Ewing and Jensen 2016; Lapierre et al. 2016; Pouyet et al. 2018; Johri et al. 2021) and observed a signal of recent population expansion in the scenarios including selection. Finally, Johri et al. (2020) analyzed real data from an African population of D. melanogaster with a new ABC demographic inference approach accounting for background selection. They estimated that the size of this population has been relatively constant for a few millions generations, while several previous studies on this or other related populations, which ignored background selection, estimated a strong recent population size increase (e.g. Kapopoulou et al. 2018; Arguello et al. 2019).
Two main reasons may resolve this apparent paradox between these previous results and ours. First, we assume that linked selection can be modeled by a local change of Ne without any temporal dynamics (except in Fig. 6 and related text, whose focus is specifically on recent selective sweeps). In particular, our results do not hold for demographic inference approaches based on the site frequency spectrum (SFS), because weak background selection is expected to produce an excess of low-frequency alleles, in particular singletons, which cannot be mimicked by just assuming a smaller Ne. Such an excess of rare alleles is also a classical signature of expanding populations, which may explain the conclusions of several of the studies mentioned above (Ewing and Jensen 2016; Lapierre et al. 2016; Pouyet et al. 2018; Johri et al. 2020).
Second, even when focusing on pairwise statistics such as heterozygosity or T2, the signature of population decline predicted by the IICR can only be observed if the data considered exhibit some heterogeneity in Ne. As it can easily be seen from Fig. 1, panmictic models with either no () or only () selection do not show declining but constant IICRs. Consequently, a decline signature is not necessarily expected when analyzing a single locus under selection as in Zeng and Charlesworth (2011) or Walczak et al. (2012). It is also not necessarily expected when analyzing genome-wide data with homogeneous selective constraints along the genome. For instance, Johri et al. (2021) simulated genome-wide sequences including background selection by considering a regular alternance of functional (selected) and intergenic (neutral) regions of fixed and relatively small sizes: depending on the scenario, the size of a single ’unit’ including 1 functional and 1 intergenic region ranged from 13 to 55 kb. The PSMC analyses of these sequences suggested a population under constant size or slight recent expansion. We believe that some of the results obtained by these (and possibly other) authors could be due to the fact that the data simulated with this approach do not exhibit enough heterogeneity in population sizes among (short) sliding windows over the genome. Such a regularity is at odds with observations made in different organisms (Gossmann et al. 2011; Elyashiv et al. 2016).
IICR predictions and PSMC estimations
Understanding the difference between our results and those of Johri et al. (2021) also leads to the fundamental question of the link between a PSMC curve and the IICR. The results obtained in Fig. 7 suggest that the IICRs computed in this study are good predictors of PSMC outputs when variations of Ne occur at a relatively large scale (100 kb or more), but not always when these variations occur at a smaller scale. This may explain the discrepancy between our predictions and the PSMC results in the scenario simulated by Johri et al. (2021), where the heterogeneity of Ne was detectable only at very small scale (55 kb).
The recent selective sweep scenario considered in Fig. 6 provides another example of potential differences between PSMC estimations and IICR predictions in the case of genomic heterogeneity. Simulating genome sequences in a single 15 Mb region experiencing 1 recent selective sweep, Schrider et al. (2016) found that PSMC applied to these sequences would infer a bottleneck around the time of the sweep completion, generally followed by a more recent expansion exceeding the “neutral” effective size. Simulating coalescence times under the same selective sweep scenario and estimating the IICR from these simulated values, we observed a similar bottleneck but no recent expansion. This difference likely results from the fact that short coalescence times are mostly clustered around the selected site in the real data, while for IICR estimation only their proportion over the 15 Mb region matters. Approximating the IICR under a selective sweep through a model with several classes of time-dependent Ne, we managed to reproduce the main characteristics of the IICR of this scenario, but this is not exactly similar to the PSMC that would be estimated in this scenario.
Overall, these results suggest that assessing potential PSMC biases in a given species may require specific simulations based on precise genomic annotations (positions and lengths of genes, local recombination rates…). As an alternative to such specific studies, we provide here a quick and flexible approach to predict the distribution of coalescence times in the presence of linked selection, which is to some extent also representative of expected PSMC outputs.
Perspectives for demographic inference
The above discussion illustrates that the effects of linked selection on demographic inference are complex, as they not only depend on the type and intensity of linked selection but also on the inference approach applied (SFS or T2 based for instance) or the scale at which selection constraints vary along the genome. If the future confirms that linked selection is pervasive in the genome as claimed for several model species (Elyashiv et al. 2016; Pouyet et al. 2018) new demographic inference approaches accounting for linked selection and population structure will be needed. One way of achieving this objective is to jointly estimate demographic and selection parameters, as proposed in 2 recent studies relying on simulation based approaches, deep learning (Sheehan and Song 2016) and approximate Bayesian computation (ABC) (Johri et al. 2020). These studies focused on relatively simple models, considering panmictic populations with a single population size change and only some types of selection (background selection in 1 study, sweeps and balancing selection in the other). To integrate more complex demographic scenarios, several recent studies considered demographic models including 2 classes of Ne along the genome, one for neutral loci and one for loci under linked selection. The proportion of the 2 classes and the ratio of Ne between them were estimated together with other parameters of the demographic model, using either ABC (Roux et al. 2016; Rougemont and Bernatchez 2018) or a modification (Rougeux et al. 2017; Rougemont et al. 2020) of the diffusion approach implemented in the software ai (Gutenkunst et al. 2009). Our study suggests that a similar inference approach, accounting for linked selection through variable classes of Ne along the genome, could be developed based on the IICR. An IICR-based inference framework was recently proposed for the estimation of nonstationary n-island models and provided very encouraging results (Arredondo et al. 2021). Given the strong impact of linked selection on the IICR under panmixia, we believe that a similar approach could allow to jointly infer parameters related to demographic history and to the Ne distribution. However, the results obtained under models of population structure suggest that it may be necessary to use the IICR in addition to other summaries of genomic diversity to overcome identifiability issues. Also, we should stress that separating the effects of population size change, selection and population structure is likely to be one of the major challenges of population genetics in the future.
Pros and cons of an IICR approach
Whether the objective is to predict potential effects of linked selection or to estimate linked selection parameters from real data, 2 nice features of an IICR-based approach such as the one considered here are flexibility and speed of computation. This approach allows to simultaneously include different forms of selection and to combine linked selection with arbitrary complex demographic models. The examples considered here included for instance panmictic models with temporal variations of the population size (Fig. 3) and n-island models with temporal variations of the migration rate (Fig. 5). We also considered different distributions of λi, some of them including a large number of classes. More general models could be considered, for instance including other forms of structure or combining population structure and temporal population size variations. In the case of structured models, variable migration rates along the genome may be considered: we could either decrease M in the linked selection class(es) to account for possible effects of selection on migration success or introduce new classes with lower M values in order to model possible barriers to gene flow (Roux et al. 2016). As outlined in Fig. 6, transient selection can be modeled by including population size changes in a subset of classes, and this approach could also be extended to model more complex fluctuating selection effects. Whatever the complexity of the demographic model and the Ne distribution considered, the associated IICR can be computed exactly in a very small time using the rate matrix approach described in Rodríguez et al. (2018) or Arredondo et al. (2021), which allows to efficiently explore a very large number of scenarios or parameter values.
We should also stress that apparent variations of Ne along the genome may result from other biological processes than linked selection. The models presented here, and the general conclusion that heterogeneity in Ne is expected to generate population size decline patterns, also apply to these other biological processes. For instance, genome-wide variations of the mutation rate may have similar effects on the data than genome-wide variations of Ne, because high mutation rates and large population sizes both lead to increase the number of polymorphic sites in a region. Consistent with our results, Sellinger et al. (2021) showed that applying SMC methods to genomic sequences that were simulated with local variations of the mutation rate leads to infer spurious population size declines. Actually, a direct consequence of Ne heterogeneity is to increase the variance of coalescence times along the genome (see Supplementary Text 1 for a proof of this statement under panmixia). Inference methods like the PSMC, which do not account for genomic variations of Ne, try to explain this additional variance using temporal variations of Ne, more precisely population size declines.
The main limitation of the IICR approach described in this study is that it focuses on pairs of sequences. It provides information that is complementary to that provided by the SFS, as we have noted elsewhere (Chikhi et al. 2018; Arredondo et al. 2021) For instance, some effects of weak background selection or selective sweeps may be visible on the SFS but not on the IICR. Currently, we have mainly focused on the IICR as defined for a pair of sequences, but extensions to multiple sequences might provide additional information on the distribution of higher order coalescence times (T3, T4, …)., hence allowing a finer characterization of selective and neutral processes.
Closing comments
We have used the IICR as a way to explore important ideas that are central to population genetics such as the notion of effective size [see also Mazet et al. (2016); Chikhi et al. (2018) for discussions on these questions], drift and selection. We wished to re-open discussions regarding the influence of selective and neutral processes on genetic diversity, some of them general and theoretical, others more specific and practical: Can selection be modeled as a genomic variation in Ne? What are the limits of such an approximation? Can linked selection, and more generally Ne variation along the genome, be detected in real genomes by applying the PSMC method of (Li and Durbin 2011) or related approaches? These are exciting questions to ask and the recent years have shown that they are at the heart of modern population genetics.
Data availability
Code used to generate the exact and simulated IICRs shown in this study can be found at https://github.com/sboitard/IICR_selection.
Supplementa1 material is available at GENETICS online.
Supplementary Material
Acknowledgments
The first submitted version of this article (BioRxiv, https://doi.org/10.1101/2021.06.11.448122) included Camille Noûs as a coauthor. Camille Noûs is not a real person but a symbolic author who embodies the collegial nature of our work (https://www.cogitamus.fr/camilleen.html). As many other scientists before us, we wished to include Camille Noûs as a coauthor to acknowledge the contribution of our academic community and emphasize that the construction and dissemination of scientific knowledge is intrinsically selfless, collaborative, and open. The editorial team of Genetics expressed disagreement with this co-authorship, arguing that Camille Noûs does not comply to the authorship rules set forth by ICMJE. These rules were created because some humans behave in nonethical ways and authorship rules thus provide important safeguards against such behaviors, but we believe that they should only apply to humans. We also believe in the importance of publishing in historical journals edited by a scientific society, like Genetics. For these reasons we regret this editorial decision but decided to maintain our submission. We appreciate the frank and sympathetic exchanges we had with the editorial team and would like to thank them for allowing us to write this text, which we hope will contribute to open debates on (and improve) a publication and evaluation system that needs change.
Funding
Armando Arredondo was funded by the Université Fédérale Toulouse Midi Pyrénées (UFTMiP) and the Région Occitanie (formerly Midi-Pyrénées) with PhD grant No. 31I2017M248. Lounès Chikhi was funded by Fundação para a Ciência e Tecnologia (ref. PTDC-BIA-EVL/30815/2017). Olivier Mazet and Lounès Chikhi were funded by the 2015–2016 BiodivERsA COFUND call for research proposals, with the national funders ANR (ANR-16-EBI3-0014) and the Fundação para a Ciência e Tecnologia ref. Biodiversa/0003/2015 and PT-DLR (01LC1617A). This work was also supported by the LABEX entitled TULIP (ANR-10-LABX-41 and ANR-11-IDEX-0002-02) as well as the IRP BEEG-B (Laboratoire International Associé-Bioinformatics, Ecology, Evolution, Genomics and Behaviour). We acknowledge an Investissement d’Avenir grant of the Agence Nationale de la Recherche (CEBA: ANR-10-LABX-25-01).
Conflicts of interest
None declared.
Literature cited
- Arguello JR, Laurent S, Clark AG.. Demographic history of the human commensal Drosophila melanogaster. Genome Biol Evol. 2019;11(3):844–854. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Arredondo A, Mourato B, Nguyen K, Boitard S, Rodríguez W, Noûs C, Mazet O, Chikhi L.. Inferring number of populations and changes in connectivity under the n-island model. Heredity (Edinb). 2021;126(6):896–912. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Charlesworth B. Effective population size and patterns of molecular evolution and variation. Nat Rev Genet. 2009;10(3):195–205. [DOI] [PubMed] [Google Scholar]
- Charlesworth B. Elements of Evolutionary Genetics. Greenwoord Village, Colorado, US: Roberts Publishers; 2010. [Google Scholar]
- Charlesworth B, Morgan M, Charlesworth D.. The effect of deleterious mutations on neutral molecular variation. Genetics. 1993;134(4):1289–1303. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chikhi L, Rodriguez W, Grusea S, Santos P, Boitard S, Mazet O.. The IICR (inverse instantaneous coalescence rate) as a summary of genomic diversity: insights into demographic inference and model choice. Heredity (Edinb). 2018;120(1):13–24. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Comeron JM. Background selection as null hypothesis in population genomics: insights and challenges from Drosophila studies. Philos Trans R Soc B. 2017;372(1736):20160471. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Elyashiv E, Sattath S, Hu TT, Strutsovsky A, McVicker G, Andolfatto P, Coop G, Sella G.. A genomic map of the effects of linked selection in drosophila. PLoS Genet. 2016;12(8):e1006130. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ewing G, Hermisson J.. MSMS: a coalescent simulation program including recombination, demographic structure and selection at a single locus. Bioinformatics. 2010;26(16):2064–2065. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ewing GB, Jensen JD.. The consequences of not accounting for background selection in demographic inference. Mol Ecol. 2016;25(1):135–141. [DOI] [PubMed] [Google Scholar]
- Gossmann TI, Woolfit M, Eyre-Walker A.. Quantifying the variation in the effective population size within a genome. Genetics. 2011;189(4):1389–1402. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Grusea S, Rodriguez W, Boitard S, Chikhi L, Mazet O.. Coalescence times for three genes are sufficient to detect population structure. J Math Biol. 2018;1(78):189–224. [DOI] [PubMed] [Google Scholar]
- Gutenkunst RN, Hernandez RD, Williamson SH, Bustamante CD.. Inferring the joint demographic history of multiple populations from multidimensional SNP frequency data. PLoS Genet. 2009;5(10):e1000695. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Herbots HMJD. Stochastic models in population genetics: genealogy and genetic differentiation in structured populations. [PhD thesis]. London, UK: University of London; 1994.
- Hill WG, Robertson A.. The effect of linkage on limits to artificial selection. Genet Res. 1966;8(3):269–294. [PubMed] [Google Scholar]
- Hudson RR. Generating samples under a Wright–Fisher neutral model of genetic variation. Bioinformatics. 2002;18(2):337–338. [DOI] [PubMed] [Google Scholar]
- Jensen JD, Payseur BA, Stephan W, Aquadro CF, Lynch M, Charlesworth D, Charlesworth B.. The importance of the neutral theory in 1968 and 50 years on: a response to Kern and Hahn 2018. Evolution. 2019;73(1):111–114. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jiménez-Mena B, Hospital F, Bataillon T.. Heterogeneity in effective population size and its implications in conservation genetics and animal breeding. Conservation Genet Resour. 2016a;8(1):35–41. [Google Scholar]
- Jiménez-Mena B, Tataru P, Brøndum RF, Sahana G, Guldbrandtsen B, Bataillon T.. One size fits all? Direct evidence for the heterogeneity of genetic drift throughout the genome. Biol Lett. 2016b;12(7):20160426. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Johri P, Charlesworth B, Jensen JD.. Toward an evolutionarily appropriate null model: jointly inferring demography and purifying selection. Genetics. 2020;215(1):173–192. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Johri P, Riall K, Becher H, Excoffier L, Charlesworth B, Jensen JD.. The impact of purifying and background selection on the inference of population history: problems and prospects. Mol Biol Evol. 2021;38(7):2986–3003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kapopoulou A, Pfeifer SP, Jensen JD, Laurent S.. The demographic history of African Drosophila melanogaster. Genome Biol Evol. 2018;10(9):2338–2342. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kern AD, Hahn MW.. The neutral theory in light of natural selection. Mol Biol Evol. 2018;35(6):1366–1371. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kimura M. The Neutral Theory of Molecular Evolution. Cambridge, UK: Cambridge University Press; 1983. [Google Scholar]
- Lapierre M, Blin C, Lambert A, Achaz G, Rocha EP.. The impact of selection, gene conversion, and biased sampling on the assessment of microbial demography. Mol Biol Evol. 2016;33(7):1711–1725. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lewontin RC. The Genetic Basis of Evolutionary Change. Vol. 560. New York (NY: ): Columbia University Press; 1974. [Google Scholar]
- Li H, Durbin R.. Inference of human population history from individual whole-genome sequences. Nature. 2011;475(7357):493–496. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mazet O, Rodríguez W, Chikhi L.. Demographic inference using genetic data from a single individual: separating population size variation from population structure. Theor Popul Biol. 2015;104:46–58. [DOI] [PubMed] [Google Scholar]
- Mazet O, Rodriguez W, Grusea S, Boitard S, Chikhi L.. On the importance of being structured: instantaneous coalescence rates and human evolution—lessons for ancestral population size inference. Heredity (Edinb). 2016;116(4):362–371. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nielsen R, Williamson S, Kim Y, Hubisz MJ, Clark AG, Bustamante C.. Genomic scans for selective sweeps using SNP data. Genome Res. 2005;15(11):1566–1575. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ohta T. The nearly neutral theory of molecular evolution. Annu Rev Ecol Syst. 1992;23(1):263–286. [Google Scholar]
- Pouyet F, Aeschbacher S, Thiéry A, Excoffier L.. Background selection and biased gene conversion affect more than 95% of the human genome and bias demographic inferences. Elife. 2018;7:e36317. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rodríguez W, Mazet O, Grusea S, Arredondo A, Corujo JM, Boitard S, Chikhi L.. The IICR and the non-stationary structured coalescent: towards demographic inference with arbitrary changes in population structure. Heredity (Edinb). 2018;121(6):663–678. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rougemont Q, Bernatchez L.. The demographic history of Atlantic salmon (Salmo salar) across its distribution range reconstructed from approximate Bayesian computations. Evolution. 2018;72(6):1261–1277. [DOI] [PubMed] [Google Scholar]
- Rougemont Q, Moore J-S, Leroy T, Normandeau E, Rondeau EB, Withler RE, Van Doornik DM, Crane PA, Naish KA, Garza JC, et al. Demographic history shaped geographical patterns of deleterious mutation load in a broadly distributed pacific salmon. PLoS Genet. 2020;16(8):e1008348. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rougeux C, Bernatchez L, Gagnaire P-A.. Modeling the multiple facets of speciation-with-gene-flow toward inferring the divergence history of lake whitefish species pairs (Coregonus clupeaformis). Genome Biol Evol. 2017;9(8):2057–2074. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Roux C, Fraïsse C, Romiguier J, Anciaux Y, Galtier N, Bierne N.. Shedding light on the grey zone of speciation along a continuum of genomic divergence. PLoS Biol. 2016;14(12):e2000234. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Schiffels S, Durbin R.. Inferring human population size and separation history from multiple genome sequences. Nat Genet. 2013;8(46):919–925. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Schrider DR, Shanku AG, Kern AD.. Effects of linked selective sweeps on demographic inference and model selection. Genetics. 2016;204(3):1207–1223. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sellinger T, Abu Awad D, Tellier A.. Limits and convergence properties of the sequentially markovian coalescent. Mol Ecol Resour. 2021;21(7):2231–2248. [DOI] [PubMed] [Google Scholar]
- Sheehan S, Song YS.. Deep learning for population genetic inference. PLoS Comput Biol. 2016;12(3):e1004845. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sjödin P, Kaj I, Krone S, Lascoux M, Nordborg M.. On the meaning and existence of an effective population size. Genetics. 2005;169(2):1061–1070. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Smith JM, Haigh J.. The hitch-hiking effect of a favourable gene. Genet Res. 1974;23(1):23–35. [PubMed] [Google Scholar]
- Walczak AM, Nicolaisen LE, Plotkin JB, Desai MM.. The structure of genealogies in the presence of purifying selection: a fitness-class coalescent. Genetics. 2012;190(2):753–779. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Walsh B, Lynch M.. Evolution and Selection of Quantitative Traits. Oxford, UK: Oxford University Press; 2018. [Google Scholar]
- Zeng K, Charlesworth B.. The joint effects of background selection and genetic recombination on local gene genealogies. Genetics. 2011;189(1):251–266. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Code used to generate the exact and simulated IICRs shown in this study can be found at https://github.com/sboitard/IICR_selection.
Supplementa1 material is available at GENETICS online.






