## Abstract

Since its inception in 1973, the slightly deleterious model of molecular evolution, also known as the nearly neutral theory of molecular evolution, remains a central model to explain the main patterns of DNA polymorphism in natural populations. This is not to say that the quantitative fit to data are perfect. A recent study used polymorphism data from *Drosophila melanogaster* to test whether, as predicted by the nearly neutral theory, the proportion of effectively neutral mutations depends on the effective population size (*N _{e}*). It showed that a nearly neutral model simply scaling with

*N*variation across the genome could not alone explain the data, but that consideration of linked positive selection improves the fit between observations and predictions. In the present article, we extended the work in two main directions. First, we confirmed the observed pattern on a set of 59 species, including high-quality genomic data from 11 animal and plant species with different mating systems and effective population sizes, hence

_{e}*a priori*different levels of linked selection. Second, for the 11 species with high-quality genomic data we also estimated the full distribution of fitness effects (DFE) of mutations, and not solely the DFE of deleterious mutations. Both

*N*and beneficial mutations contributed to the relationship between the proportion of effectively neutral mutations and local

_{e}*N*across the genome. In conclusion, the predictions of the slightly deleterious model of molecular evolution hold well for species with small

_{e}*N*, but for species with large

_{e}*N*, the fit is improved by incorporating linked positive selection to the model.

_{e}THE year 2018 saw the celebration of the 50th anniversary of the neutral theory of molecular evolution (called simply the neutral theory thereafter). At 50 years of age, the neutral theory is still shrouded in controversies, some pronouncing it dead and overwhelmingly rejected by facts (Kern and Hahn 2018), while others see it as very much alive and kicking (Nei *et al.* 2010; Jensen *et al.* 2019). As a quick glance at major textbooks in population genetics and at the literature would suggest, it seems fair to say that the neutral theory is certainly not totally dead. Even if it undoubtedly did lose some of its initial appeal it continues to play a central role in population genetics, a position well summarized by Kreitman (1996) in his spirited essay “The neutral theory is dead. Long live the neutral theory.” Shortcomings of the neutral theory were already noted in the 1970s and the Neutral Theory has itself evolved. Indeed, its inadequacy to fully explain the data, in particular the constancy of the molecular clock, was already noted in 1973, leading Tomoko Ohta (1973) to propose the nearly neutral theory of molecular evolution. In contrast to the neutral theory, where most mutations are assumed to be neutral or strongly deleterious, the nearly neutral theory assigns much more prominence to the contribution of standing polymorphism of mutations that are weakly selected and effectively neutral (Ohta 1992; Ohta and Gillespie 1996). Weakly selected mutations can be slightly deleterious or slightly beneficial, but as noted by Kreitman (1996), the best developed of the weak selection models primarily considers slightly deleterious mutations and was therefore christened by him “the slightly deleterious model”. This is the model that we will be testing in most of the present paper.

Like the neutral theory, the nearly neutral theory still assumes that “only a minute fraction of DNA changes in evolution are adaptive in nature” (Kimura 1983). Under this view, polymorphism is thought to be mostly unaffected by positive selection, except around the few recently selected beneficial alleles (selective sweeps). This was already at variance with the view put forward by Gillespie (2004) that assigned a greater role to linked positive selection in shaping polymorphism [see also Corbett-Detig *et al.* (2015)], and is in even stronger contrast with the claim by Kern and Hahn (2018) that “natural selection has played the predominant role in shaping within- and between-species genetic variation,” and that “the ubiquity of adaptive variation both within and between species” leads to the rejection of the universality of the neutral theory. In a far more nuanced assessment of the neutral theory and its contribution, Jensen *et al.* (2019) argued that the effects of linked selection could readily be incorporated in the nearly neutral framework. The heart of the dispute, either today or in the early days of the nearly neutral theory, is about the degree to which each category of mutation contributes directly and indirectly to genetic variation within and between species.

A core prediction of the nearly neutral theory is that the fraction of mutations affected by selection depends on the effective population size, *N _{e}* (Ohta 1973).

*N*is a measure of (the inverse of) genetic drift and corresponds to the size of an ideal, typically Wright–Fisher, population generating the same amount of drift as the observed population. The definition of

_{e}*N*depends on the drift-related process (

_{e}*e.g.*, inbreeding, variance in allelic frequencies) and the timescale of interest. The coalescent effective population size is relevant for the prediction of polymorphism patterns (Sjödin

*et al.*2005).

*N*can vary among species (because of difference in population size, variance in fecundity, reproductive systems etc.), but also along a genome because linked selection generates variation in the coalescent process if recombination rate and selection targets are not uniformly distributed [reviewed in Ellegren and Galtier (2016)]. The effect of selection against deleterious mutations on linked neutral variants—background selection (Charlesworth

_{e}*et al.*1993)—is often modeled by a simple rescaling of

*N*, but in specific situations effects of linked selection are more complex and there is not a single rescaling (Barton 1995; Zeng 2013; Comeron 2017; Cvijović

_{e}*et al.*2018; Torres

*et al.*2019). In the case of beneficial mutations, for instance, the interference depends both on the beneficial effect of the sweeping mutation and on selection acting at linked sites (Barton 1995; Weissman and Barton 2012).

Evidence that linked positive selection, and not only direct selection on slightly deleterious and beneficial mutations, contributed to the relationship between the fraction of mutations affected by selection and *N _{e}* has recently been obtained by Castellano

*et al.*(2018). Using two

*Drosophila melanogaster*genome resequencing data sets, Castellano

*et al.*(2018) tested a prediction of the slightly deleterious model first obtained by Kimura (1979) and then extended by Welch

*et al.*(2008). Welch

*et al.*(2008) showed that if one considers only deleterious mutations, the logarithm of the ratio of nucleotide diversity at nonsynonymous and synonymous amino acid changes is linearly related to the logarithm of the effective population size, and that the slope of this log–log regression line is equal to the shape parameter of the distribution of fitness effects (DFE),

*β*, if the DFE of deleterious mutations is modeled by a γ distribution:(1a)where π

_{N}is the nucleotide diversity at nonsynonymous sites and π

_{S}is the nucleotide diversity at synonymous sites.

Or, rewriting this expectation by using π_{S} as a proxy for *N _{e}*:(1b)The second equation holds only if variation in π

_{S}solely depends on variation in

*N*, and there is no correlation between the mutation rate and

_{e}*N*. It should also be pointed out that the DFE used here only considers deleterious mutations, as estimated for instance by DFE-α (Eyre-Walker and Keightley 2009). A direct test of this prediction using among-species comparison can be problematic if mutation rates cannot be controlled for. To circumvent this problem, Castellano

_{e}*et al.*(2018) used within-genome variation in

*N*, under the reasonable assumption that variation in mutation rates are negligible compared to variation in

_{e}*N*across a genome. They found [see also James

_{e}*et al.*(2017)] that the slope was significantly steeper than expected under a simple scaling of

*N*and simulations indicated that linked positive selection, but not background selection, could explain this discrepancy. The effect of linked selection on the relationship between π

_{e}_{N}/π

_{S}and π

_{S}is twofold. First it increases stochasticity in allele frequencies, or, in other words, decreases the local effective population size. Second, linked selection leads to nonequilibrium dynamics. Genetic diversity will recover faster for deleterious than neutral mutations, altering the relationship between π

_{N}/π

_{S}and π

_{S}(Gordo and Dionisio 2005; Do

*et al.*2015; Brandvain and Wright 2016; Vigué and Eyre-Walker 2019). More precisely, the more a region is affected by selective sweeps, the lower π

_{S}is and the higher π

_{N}/π

_{S}is compared to the equilibrium expectation: this effect makes the slope steeper compared to the equilibrium expectation.

In the present paper, we first confirmed the observed pattern on the set of 59 species used in Chen *et al.* (2017). We then used 11 high-quality genomic data sets for which an outgroup was available to test whether the results obtained by Castellano *et al.* (2018) hold more generally and, in particular, in species with much smaller effective sizes than *D. melanogaster*, and with different levels of linkage disequilibrium. While we adopted the same general approach as Castellano *et al.* (2018), our analysis differed from theirs in one important respect. In their study, Castellano *et al.* (2018) only characterized the DFE of deleterious mutations. Instead, we used a newly developed approach, *polyDFE* (Tataru *et al.* 2017), that also considers positive mutations, which is expected to improve the estimation of the shape of the DFE of deleterious mutations, and to disentangle the direct effects of both positive and negative selection.

## Materials and Methods

### Genomic data and regression of π_{N}/π_{S} over π_{S}

In a first step, we reanalyzed 59 species from Chen *et al.* (2017), which included 30 animals and 29 plant species. We estimated the DFE using folded site frequency spectra (SFS) with the same method as in Chen *et al.* (2017) and calculated the slope [regression coefficient of log (π_{0}/π_{4}) over log (π_{4})] as described in the next paragraph (we used 0-fold degenerated sites for the calculation of genetic diversity at nonsynonymous sites and fourfold degenerated sites for synonymous sites; the same estimates are used in the rest of the paper). For DFE estimation using folded SFS, the model assumes a γ distribution for deleterious mutations and takes demography (or sampling or any departure from equilibrium) into account by introducing *n−1* nuisance parameters for an SFS of size *n* [the corresponding code was provided in Chen *et al.* (2017)]. In later analyses that required unfolded SFS, we retained 11 species with high-quality genomic data sets and with an available outgroup. These 11 species are given in Table 1. They include both animal and plant species with contrasting levels of nucleotide polymorphism and mating systems. For each of the 11 species, we aligned short reads to the genome using BWA-mem (Li and Durbin 2010) and sorted the alignment using SAMtools. PCR duplicates were removed and insertions/deletions (indels) were realigned using the GATK toolkit (McKenna *et al.* 2010). HaplotypeCaller was used for individual genotype identification and joint SNP calling was performed across all samples using GenotypeGVCFs. Variant and invariant sites were kept only if genotypes of all individuals were successfully identified (Carson *et al.* 2014). We collected SNPs in all coding sequence regions, and calculated genetic diversity of fourfold and 0-fold degenerated sites as proxies for polymorphism at synonymous (π_{S}) and nonsynonymous sites (π_{N}). Sites were all masked with “N” and excluded from further computation in the following five cases: heterozygous sites in selfing species, sites with more than two variants, variants at sites within 5 bp of a flanking indel, variants sites with GQ < 20, and missing individuals. We applied the same SNP sampling strategy as in James *et al.* (2017) and Castellano *et al.* (2018) to remove potential dependency between estimates of π_{0}/π_{4} and π_{4}. In brief, we first split all synonymous SNPs into three groups (S1, S2, and S3) following a hypergeometric sampling process in R based on the total number of synonymous sites (see equations 3–6 in Castellano *et al.* 2018). To bin genes and reduce the difference in the number of SNPs in each bin, we ranked genes according to their Watterson’s estimate of nucleotide diversity (θ_{S1}) and grouped these ranked genes into 20 bins each representing ∼1/20 of the total number of synonymous SNPs. We then used π_{S2} to estimate the π_{0}/π_{4} (we summed π over all genes, and scaled by the total length to get π_{0} and π_{4} for each bin) ratio and π_{S3} as an independent estimate of the genetic diversity of each bin.

We calculated the slope of the linear regression (*l*) of the log-transformed value of the π_{0}/π_{4} ratio on the log-transformed value of π_{4}, using the “lm” function in R (R Core Team 2018). In pilot runs on 59 species [population data of Chen *et al.* (2017)], the estimates of *l* showed extensive variation depending on, among other things, the qualities of genome sequencing, read depth, annotation, and SNP calling. Thus, we selected 11 species for which a high-quality genome sequence and an outgroup were available. Individuals were selected from the same genetic background, *i.e.*, admixture or population structure were carefully removed. At least 20 alleles (*i.e.*, 10 individuals for outcrossing species or 20 for selfing species) were retained from a single ancestral cluster defined in admixture/structure analysis in the original publication. For the two *Capsella* species, we performed admixture analysis for both species separately. A series of quality controls for *l* calculation were performed as follows. The longest transcript for each gene model was kept only if it contained both start and stop codons (putative full length), and no premature stop codons. SNPs flanking 5 bp of indels were masked to avoid false-positive calls. A grid of filtering criteria (see details in Supplemental Material, Table S2) was also implemented on each species based on sequence similarity against the Swiss-Prot database (e-value, bit-score, and query coverage) and sequencing quality (sites with low read depth or ambiguous variants). We selected the filtering criteria to maximize the adjusted R^{2} in the log–log regression of π_{0}/π_{4} on π_{4}. By doing so, we aimed to reduce the error introduced by annotation and quality difference between model and nonmodel organisms. Also, to evaluate the variance introduced by random sampling and grouping of SNPs, we performed 1000-iteration bootstraps to get the bootstrap bias-corrected mean and 95% C.I.s for *l* calculations.

### Estimates of the DFE

The DFE for all nonsynonymous mutations across the genome was first calculated by considering only deleterious mutations. We first reused the DFE parameters estimated in 59 animal and plant species in Chen *et al.* (2017), which assume that only neutral and slightly deleterious mutations contribute to genetic diversity. In brief, in this previous study, the DFE was modeled using a γ distribution with mean *S _{d}* and shape parameter

*β*. Folded SFS were compared between synonymous and nonsynonymous sites, and demography (or any departure from equilibrium) was taken into account by introducing

*n*–1 nuisance parameters for an unfolded SFS of size

*n*, following the method proposed by Eyre-Walker

*et al.*(2006). The possible issues and merits of this approach compared to those based on an explicit (albeit very simplified) demographic model have been discussed previously, and the method introduced by Eyre-Walker

*et al.*(2006) has proved to be relatively efficient (Eyre-Walker and Keightley 2007; Tataru

*et al.*2017). The calculations were carried out using an in-house Mathematica script implementing the method of Eyre-Walker

*et al.*(2006) provided in supplementary file S2 of Chen

*et al.*(2017).

However, for species with large effective population sizes, like *D. melanogaster*, ignoring the effects of beneficial mutations could distort the DFE to a great extent and lead to a wrong estimate of *β*. Therefore, we further estimated the DFE under a full model that takes both deleterious and beneficial mutations into account (Tataru *et al.* 2017) using unfolded SFS for 11 species. Briefly, the model mixes the γ distribution of deleterious mutations (shape = *β* and mean = *S _{d}*) with an exponential distribution of beneficial mutations (mean =

*S*), in proportions of (1−

_{b}*p*) and

_{b}*p*, respectively. The unfolded SFS was calculated for the 11 retained species, for which a closely related outgroup with similar sequencing quality was available to polarize the SFS. Ancestral state was assigned as the state of the outgroup if the outgroup was monomorphic for one of the two variants, and the derived allele frequency was calculated from this polarization. Otherwise (in the case of missing data, polymorphic site, or third allele in the outgroup) the site was masked. The percentage of SNPs that could not be polarized and were masked varied between 0 and 29.3%, with a mean of 4.6% and a median value of 0.5% (Table S2).

_{b}In addition, since polarization errors could remain, the error rate of the ancestral state assignment (ε_{an}) was also taken into account in *polyDFE*. The γ DFE (that only considers deleterious mutations) and the full DFE were estimated for each species. In both cases, a nuisance parameter was also fitted to account for possible misassignment errors in SNP ancestral allele estimation (a step required to obtain the unfolded SFS). Note that, although we used outgroups to polarize SFS, we did not use divergence but only polymorphism to estimate the effects of beneficial mutations. This is at the cost of larger variance in estimates but it avoids the (potentially strong) bias due to ancient variations in *N _{e}* that cannot be captured by modeling recent changes in population size (Rousselle

*et al.*2018). When comparing the estimates of the DFE among several species, the problem arises that the best model is not necessarily the same for all species (the best model can include or not beneficial mutations, and include or not polarization errors). Comparisons cannot be fairly done if all species do not share the same model. Alternatively, estimations under an overparameterized model can lead to large variance and extreme values. To circumvent this problem, we used a model-averaging procedure where each parameter of interest (

*β*,

*S*,

_{b}*S*, and

_{d}*p*) was estimated as a weighted mean of estimates obtained under four models: the γ DFE and the full DFE models, including polarization errors or not. The weight given to the estimate from model

_{b}*k*is , where , with AIC being the Akaike information criterion and AIC

*the minimum AIC among the four models (Posada and Buckley 2004). All calculations were performed using the software*

_{min}*polyDFE*and the associated R script (Tataru

*et al.*2017). A goodness-of-fit test was carried out by comparing observed SFS to expected SFS under γ DFE or the full DFE model for each SNP category, respectively.

*P*-values were calculated under a χ

^{2}distribution with the number of d.f. equal to

*n*(total number of SNP categories) – 2 (synonynmous and nonsynonymous sites).

### Expectations under different selection models

Independently of possible indirect effects of selective sweeps, Equation 1 only considers deleterious mutations, in line with the initial view of the nearly neutral theory where beneficial mutations negligibly contribute to polymorphism (Ohta 1973). Giving more weight to beneficial mutations slightly modified the relationship between the slope of the linear regression, *l*, and the shape parameter, *β*. For beneficial mutations only, the equivalent of Equation 1 is simply (see Appendix):(2)where *β _{b}* is the shape of the distribution of beneficial mutations, still assuming a γ distribution, so

*β*would be 1 in the statistical framework we used. Thus, the π

_{b}_{0}/π

_{4}ratio increases with

*N*, so that considering beneficial mutations the global π

_{e}_{0}/π

_{4}decreases more slowly than when only deleterious mutations are taken into account. Thus, with beneficial mutations the slope will always be lower than without. For the majority of species beneficial mutations are rare and thus

*b*(thereafter we define

*b*= −

*l*) is approximately equal to

*β*. For those with a relatively high proportion of beneficial mutations, direct positive selection should result in a flattened slope,

*i.e.*, a smaller value of

*b*than

*β*. As we mostly observed the reverse pattern,

*b*>

*β*, the observed discrepancy cannot be explained by the direct effect of beneficial mutations.

### Trends across the genome and tests for selection

For each of the 20 bins defined above and ranked according to their mean synonymous nucleotide diversity, we calculated *β*, *p _{b}*, and

*S*values and a summary statistic of the SFS, Tajima’s D (Tajima 1989). Tajima’s D tests for an excess of rare over intermediate variants compared to the frequencies expected under the standard coalescent, and was calculated from synonymous sites. Demography does affect Tajima’s D and can explain the difference among species; however, a negative Tajima’s D is also expected under recurrent selective sweeps (Jensen

_{b}*et al.*2005; Pavlidis and Alachiotis 2017) and should be more negative in genomic regions more strongly affected by linked positive selection. Background selection can also affect Tajima’s D in the same direction but much more weakly (Charlesworth

*et al.*1995). Independently of the species mean value, we thus expect a strong positive relationship between recombination and Tajima’s D in species where linked positive selection is prominent.

### Forward simulations under selective sweep scenario

The code developed by Castellano *et al.* (2018), which is based on forward simulations using the software SLiM version 3.2.1 (Haller and Messer 2019), was modified to assess the effect of parameters *p*_{b}, *S _{b}*, and N on

*b*and Tajima’s D. More specifically, a 20-kb genomic region was simulated with a mutation rate of 1 × 10

^{−6}to study the behavior of

*b*and Tajima’s D under selective sweep scenarios, with varying parameters of

*p*

_{b},

*S*, and N. First, we simulated equal amounts of neutral and deleterious mutations whose fitness effects were drawn from a γ distribution with a shape parameter 0.4 and a mean

_{b}*S*of −10. Different percentages of beneficial mutations (

_{d}*p*= 1%, 0.8%, 0.5%, 0.4%, 0.3%, 0.2%, 0.01%, 0.005%, and 0) were drawn randomly from a distribution with a fixed

_{b}*S*of 1 to simulate loci experiencing selective sweeps at different frequencies, and we then calculated

_{b}*b*[figure 5 of Castellano

*et al.*(2018)] and Tajima’s D. We also investigated the behavior of

*b*and Tajima’s D by varying

*s*(1, 0.5, and 0.1), N (100, 500, and 1000), and the recombination rate (Nr = 0, 1e-3, and 1e-2). Simulated values were averaged across 50 samples, which were taken every 5N generations after an initial burn-in period of 10N generations.

_{b}### Data availability

All calculation files can be found in Supplementary file 1. The VCF files are available upon request, and the data sets analyzed are publicly available and are referenced in Chen *et al.* (2017). Supplemental material available at figshare: https://doi.org/10.25386/genetics.11536971.

## Results

### b and *β* are generally similar, but the variance is large

One of the most important predictions of the nearly neutral theory is that the proportion of effectively neutral mutations is a function of the effective population size (Kimura and Ohta 1971; Ohta 1972, 1973, 1992). In species with large effective population size, selection is efficient and the proportion of effectively neutral mutations is small. Here, we used the ratio of genetic diversity at 0-fold over fourfold degenerate sites (π_{0}/π_{4}) in protein-coding regions as a measure of the proportion of effectively neutral mutations, and examined the linearity between log (π_{0}/π_{4}) and across the genomes of 59 species used in Chen *et al.* (2017). The slope [linear regression coefficient between log (π_{0}/π_{4}) and ] was negative for 51 of the 59 species (*l* < 0), although it was significantly different from zero at *P* = 0.05 in less than one-half of the species (28/59). The value of *l* varied from −0.424 (*D. melanogaster*) to 0.22 (*Callithrix jacchus*) (Table S1). Since balancing selection can lead to both high π_{4} and π_{0}/π_{4}, it can generate an increase in π_{0}/π_{4} for high-π_{S} bins. Thus, we removed the five bins with the highest diversity and recalculated *l* values for all species. This reduced the *l* values of 36 species and led to negative *l* values in 55 species.

We further examined the DFE for mutations across the genome in the same data sets. A γ distribution with two parameters, mean (*S _{d}*) and shape (

*β*), was used to describe the distribution of deleterious mutations under purifying selection. Importantly, the contribution of beneficial mutations, even those under weak selection that are potentially behaving neutrally, is ignored in this case. Estimates of the shape parameter,

*β*, varied from 0.01 (

*C. jacchus*) to 0.347 (

*D. melanogaster*), but were only weakly correlated with effective population size (Table S1).

Considering only deleterious mutations and assuming a simple scaling of *N _{e}* variation across the genome, the slightly deleterious model predicts that the value of the slope of the linear regression between log (π

_{0}/π

_{4}) and ,

*b*(recall that

*b*= −

*l*), is equal to

*β*(Welch

*et al.*2008). The discrepancy between the two might indicate a departure from this model, and Castellano

*et al.*(2018) suggested that in

*D. melanogaster*, where the observed slope was steeper than expected, the departure was caused by linked positive selection across the genome. We observed a general consistency between

*β*and

*b*as estimators of effective neutrality (linear coefficient = 1.04, intercept = 0.007,

*P*-value < 2e-16, and adjusted R

^{2}= 0.35; Figure 1A). The difference (Δ =

*b*−

*β*) was small in 40 species and varied from −0.1 to 0.1 (Figure 1B). In 36 species (61%),

*b*values were larger than

*β*and in 23 species (39%)

*β*was larger than

*b*. However, the variation in Δ was not explained by π

_{S}or

*N*, as the adjusted R

_{e}^{2}was only 0.06. Removing the five bins with the highest diversity, the correlation between

*β*and

*b*was still significant (coefficient 0.89 and

*P*-value = 2.14e-6). The median value of Δ increased from 0.0085 to 0.045, but there was still no correlation between Δ and .

### The effects of quality control and full DFE model

The variation in Δ may come from two sources. First, it can be due to the estimation quality of *b* and *β*. Tests have shown that quality control on sequencing and SNP calling can have a dramatic influence on *b* calculations, and ignoring beneficial mutations in the DFE model could also distort the estimates of *β* (Tataru *et al.* 2017). Second, the variation in Δ can be caused by departures from the assumptions underlying the simple version of the nearly neutral theory, for instance, a larger role of direct or linked positive selection than assumed by the theory.

To assess the relative importance of these two sources we selected 11 species with genomic data of high quality and performed a series of stringent quality controls (see details in the *Materials and Methods*) before reestimating *b*. This improved the goodness of fit for the log linear regression between π_{0}/π_{4} and π_{4} across the genome, and *b* estimates were significantly different from zero for all 11 species (Figure 2 and Table 1, see also details in Table S2 and Figures S1–S3 for correlation between π_{0}/π_{4} and π_{4}, and between π_{0} and π_{4} in linear and log scales). To estimate *β*, we used closely related species to polarize the SFS, and applied both the γ DFE model and the full DFE model implemented in *polyDFE*, which considers both deleterious and beneficial mutations. Instead of choosing the best DFE model, an average value weighted by the different models’ AIC scores was calculated for each parameter (Tataru and Bataillon 2019).

In this case, we observed a better correlation between *b* and *β* (Pearson’s correlation ρ = 0.727 and *P*-value = 0.011) than when we considered the 59 species and used only a γ DFE. In addition, considering beneficial mutations slightly increases *β* estimates, making them closer to *b*. However, the linear coefficient between *b* and *β* (1.26) is significantly > 1 and the variation of Δ remains large (−0.026 to ∼0.289), suggesting that some additional factors may lie behind the remaining variation.

### The roles of effective population size and positive selection

We then tested if the variation in Δ, where Δ = *b* − *β*, could simply reflect differences in effective population size (*N*_{e}) among species. Estimates of *N _{e}* were obtained by rescaling π

_{S}using estimates of the mutation rate (μ) from the literature (see Table S3 for the sources of the μ estimates). When Δ is regressed against , explained up to 49% of the variance in Δ (

*P*-value = 0.014). Considering the uncertainty in μ, we also regressed Δ on log (π

_{S}) and obtained similar results (R

^{2}= 0.41 and

*P*-value = 0.019; Figure 3).

Furthermore, we tested whether species with potentially more selective sweeps show higher Δ, as predicted by Castellano *et al.* (2018). An explicit model of selective sweeps is difficult to fit given the uncertainty about beneficial mutation parameters and would require additional information, especially on the recombination map of the different species. Alternatively, we qualitatively reasoned that, in addition to being more frequent when the effective population is large, the number of selective sweeps should increase with both the proportion (*p _{b}*) and the mean strength of beneficial mutations (

*S*). Log (

_{b}*S*) had a significant and positive effect on Δ (

_{b}*P*-value = 0.0018; Figure 3) and explained 64.3% of the variance in Δ, but the effect of

*p*was not significant (

_{b}*P*-value = 0.29). When considered together, the effects of both log (

*S*) and log (π

_{b}_{4}) (or ) in the joint model explained up to 78% of the variance in Δ (

*P*-value = 0.0068 and 0.059, respectively, Table 2). However, no significant effect of

*p*could be detected either in the single regression model (

_{b}*P*-value = 0.29) or joint model with other variables (

*P*-value = 0.15). The rate of adaptive evolution relative to the neutral mutation rate ω

_{a}(Galtier 2016) combines the proportion (

*p*) and the mean strength of beneficial mutations (

_{b}*S*) according to ω

_{b}_{a}=

*p*×

_{S}*S*/ (1 – exp (−

_{b}*S*)). However, as for

_{b}*p*, the effect of ω

_{b}_{a}on Δ was not significant (

*P*-value = 0.17), although the relationship was positive as expected.

We also conducted goodness-of-fit tests for both γ DFE and full DFE models by comparing the difference between the observed SFS to that simulated under both DFE models, respectively (Figure S4 and Table S4). For all 11 species, the expected SFS under the full DFE model showed a better or as good fit to the data as the one under the γ DFE model (higher or equal *P*-values), especially for species like *Capsella grandiflora*, *D. melanogaster*, *Solanum habrochaites*, *S. huaylasense*, and *Populus trichocarpa* where either *p _{b}* or

*S*could not be ignored. Overall, the full DFE model predicted the observed SFS with < 5% error (Figure S4).

_{b}### Trends across the genome and tests for selection

Variation of DFE parameters across bins could also explain the difference between *β* and *b*, since the underlying assumption is that *β* is constant across bins. Thus, we calculated *β* for all 20 bins for the 11 species. Seven species had *β* values increasing weakly with genetic diversity (*P*-value < 0.05 and mean regression coefficient 0.056), while *C. grandiflora* and *Heliconius timareta* had a much faster increase (regression coefficient = 0.2 and 0.15, respectively, Table 3). In five species, the slope was steeper than the maximum *β* value, similar to what was obtained by Castellano *et al.* (2018) in *Drosophila*. However, the slope was shallower than the maximum *β* value in the six remaining species and in five of them the maximum *β* value was > 1 (Table 1). We also compared *p _{b}* and

*S*values across bins. In

_{b}*Arabidopsis thaliana*,

*p*increased slowly with diversity whereas in

_{b}*C. grandiflora*,

*S. huaylasense*, and

*D. melanogaster p*decreased significantly (

_{b}*P*-value < 0.05). In all 11 species,

*S*did not show any significant trend across bins. To more formally test for the significance of these variations, we also divided the genomes into five bins (to get enough power per bin) and tested the invariance of the DFE across bins using likelihood ratio tests as implemented in

_{b}*polyDFE*. For all species, a model with independent DFE parameters for each bin is significantly better than a model with shared parameters across bins (see Table S5).

For all 11 selected species, we also calculated Tajima’s D (Tajima 1989), thereafter simply called D, in each bin to test for departure from neutrality across the genome. Mean values of D were slightly negative across bins for most species except *S. habrochaites*. For 9 of the 11 species, D values increased significantly with genetic diversity (Table 3). Interestingly, we found a negative and strong correlation of Tajima’s D with log (*S _{b}*) for all 11 species (Pearson’s correlation ρ = −0.74 and

*P*-value = 0.0086) but not with any other DFE parameters. This is in agreement with the expectation that selective sweeps decrease D. Background selection could also decrease D, albeit to a lower extent. We further tested the trends of positive and negative selection by calculating the proportions of deleterious, or beneficial, mutations over all bins with selective strength <−10 and >10, respectively. However, no significant trends were identified for either type of direct selection.

We also tested whether alternative measures of the possible occurrence of selective sweeps could explain a larger part of the variation in Δ. We used both the mean Tajima’s D and the among-genome regression coefficient of the relationship between D and π_{S} (ρ_{D}) as predictors. More negative D and a stronger positive regression coefficient between D and π_{S} can be viewed as signatures of stronger hitchhiking effects. So, we would expect to see a negative effect of D and a positive effect of ρ_{D} on the variation in Δ. In combination with π_{4} (or ), both D and ρ_{D} indeed explained a significant part of the variation in Δ (adjusted *R*^{2} = 0.76, Table 2).

### Simulations

Castellano *et al.* (2018) used forward simulations to assess the extent to which selective sweeps made the slope between log (π_{0}/π_{4}) and steeper, and thereby could explain the discrepancy between the slope and the shape parameter of the DFE, *β*. They tested varying proportions of adaptive mutations (their figure 5). We extended their investigation to test the effect of selective strength (*s _{b}*) on

*b*with a fixed

*β*(0.4) and how selective strength (

*s*) also affected estimates of Tajima’s D. Without recombination (Nr = 0), Figure 4 shows that when

_{b}*s*increased from 0.1 to 1,

_{b}*b*increased from 0.46 to 0.72 (Δ = 0.06–0.32). As expected, mean Tajima’s D decreased from −0.36 to −0.77 as

*s*increased, and ρ

_{b}_{D}between D and π

_{4}increased (see also Table 4). We also increased N from 100 to 500, and to 1000, and fixed the mean selective strength at either

*S*= 10 or

_{b}*S*= −1000. With these parameters, the strength of selection was not affected by N, but the number of sweeps increased with N due to the higher input of (beneficial) mutations. In this case, Δ increased from 0.06 to 0.41 as N increased and Tajima’s D again decreased (Figure 5 and Table 4). With recombination (Nr = 1e-3 and Nr = 1e-2), we noticed similar trends of

_{d}*b*, D, and ρ

_{D}when

*s*or N are large enough to recover the significance of the linearity between log (π

_{b}_{0}/π

_{4}) and log (π

_{4}) (Figure S5 and S6).

## Discussion

The aim of the present study was to test quantitatively one of the predictions of the nearly neutral theory of molecular evolution or, more precisely, the slightly deleterious model. More specifically, we used full-genome data sets to test whether the proportion of effectively neutral mutations varies with local variation in *N _{e}* across the genome and decreases linearly with increasing

*N*, and whether the slope is equal to the shape parameter of the DFE. The negative log linear relationship between π

_{e}_{0}/π

_{4}and

*N*observed in previous studies (Gossmann

_{e}*et al.*2011; Murray

*et al.*2017; Castellano

*et al.*2018; Vigué and Eyre-Walker 2019) was also observed in the present study, although the slope was not always significantly negative and, when negative, could differ significantly from the shape parameter of the DFE and be much steeper. The latter was especially true in species with large effective population size and the difference was correlated to the estimated mean strength of selection acting on beneficial mutations. In the case of species with large effective population size, neglecting linked positive selection could therefore lead to a significant quantitative discrepancy between predictions and observations. On the other hand, the slightly deleterious model appears to be a good approximation when the effective population size is small. Below, we first consider possible caveats and discuss the implications of the results for the relative importance of purifying and adaptive selection in shaping the genetic diversity of species.

The discrepancy between the slope of the log linear relationship between π_{N}/π_{S} and *N _{e}* and

*β*could simply be due to difficulties in estimating them precisely. In general, estimates of the DFE shape parameter,

*β*, were rather stable compared to estimates of the slope of the regression of log (π

_{0}/π

_{4}) over log (π

_{4}),

*b*, with the variance of the former being one-half that of the latter independently of quality control, and whether the SFS was folded or unfolded. High variation in

*b*estimates may explain the fact that a significant correlation between π

_{0}/π

_{4}and π

_{4}could not be observed for all species, particularly those with low genetic diversity (

*e.g.*, great apes). Therefore, stringent quality control for read alignment and SNP calling is necessary, even for

*D. melanogaster*, where an improvement of the fit in

*l*calculation (linear regression adjusted

*R*

^{2}= 0.79 to 0.95) leads to a dramatic change in the estimate of Δ (from 0.077 to 0.29). Even if stringent quality control had been implemented, the goodness of fit for the log linear regression leading to the estimation of

*b*would differ significantly from species to species. The fit across the

*D. melanogaster*and

*A. thaliana*genomes was almost perfect (

*R*

^{2}> 0.95) while, at the other extreme, the fit was rather poor in

*S. habrochaites*(

*R*

^{2}= 0.38). However, even among species for which the fit is almost perfect (

*R*

^{2}> 0.95),

*b*could vary rather dramatically:

*D. melanogaster*had a much larger

*l*(0.7) than

*A. thaliana*(0.48),

*C. rubella*(0.43), and

*Zea mays*(teosinte, 0.29), whereas

*β*only changed marginally for these species. However, not all species showed a significant negative linear relationship between π

_{0}/π

_{4}and

_{}, and some even had positive slopes, especially for those of low diversity (

*e.g.*, great apes; Figure 2). Therefore, besides purifying selection, the slope is also likely to be affected by additional factors. Factors that affect the likelihood of observing a negative relationship between π

_{0}/π

_{4}and , and its relationship with the DFE parameters, were thoroughly discussed by Castellano

*et al.*(2018). Below, we highlight those that seem particularly relevant when considering a group of species with contrasting levels of diversity, as was done here. These factors are the variation in

*N*estimates along the genome, which itself reflects the joint distribution along the genome of recombination rate and density of selected sites, the DFE, and the variation along the genome of the rate of adaptive evolution (Castellano

_{e}*et al.*2018).

Lack of joint variation in recombination rate and selected sites seems to be an unlikely cause of an absence of a negative relationship between π_{0}/π_{4} and *N _{e}*, as such a relationship is observed in selfing species where this joint variation is expected to be more limited than in outcrossing ones. A possible source of variance in

*β*could be that the single-sided γ distribution does not describe well the real DFE curves, at least not for all species, particularly when the DFE is not unimodal (Tataru

*et al.*2017). For species like

*D. melanogaster*, for instance, there is mounting evidence of adaptive evolution [reviewed in Eyre-Walker (2006) and Sella

*et al.*(2009)]. Therefore, it is necessary to consider the possible contribution of beneficial mutations. The full DFE model provided a much better fit than the γ DFE that considers only deleterious mutations in

*D. melanogaster*(log likelihood = −187.3

*vs.*−245.7, respectively). This was also true of some of the outcrossing plants like

*C. grandiflora*and

*S. huaylasense*. In all three species,

*β*estimates increased when estimated with the full DFE instead of the γ DFE, sometimes significantly [from 0.33 to 0.41 in

*D. melanogaster*(Rwanda) and 0.15 to 0.31 in

*S. huaylasense*] and at other times only marginally (0.27 to 0.30 in

*C. grandiflora*). Taking beneficial mutations into account when fitting the shape of the DFE can partly reduce the discrepancy between

*β*estimates and the slope of the regression. However, it is not sufficient, as Δ was positive in 10 of the 11 focal species we studied.

Based on the prediction of the nearly neutral theory with direct positive selection (Equation 2), the proportion of beneficial mutations is the only factor that could alter the relationship between *b* and *β*, and should always result in a larger *β* compared to *b*. However, this is usually not the case as, on the contrary, values of *b* larger than *β* have generally been reported (Chen *et al.* 2017; James *et al.* 2017; Castellano *et al.* 2018). In this paper, we systematically investigated this relationship across the genomes of multiple species. Two-thirds of the 59 species, and 10 out of the subset of 11 species that were selected for the high quality of their genome, had larger *b* than *β* values. Hence, direct positive selection is not the main cause of the discrepancy.

Investigation of DFE parameter changes across bins may help to identify changes in natural selection. Increasing *β* values over bins could be a signal for stronger positive selection in low-diversity regions. Although the maximum *β* value of some species can be larger than *b*, *β* grows slowly for most species and shows hardly any pattern between species. Neither did *p _{b}* or

*S*. This lack of significant trend in these parameters could simply be due to an increase in variance of their estimates, as only one-twentieth of the total number of polymorphic sites were used for DFE calculations in each bin. It could also again suggest that direct selection is not the main cause of the discrepancy.

_{b}One of the main findings of the present study is that a large proportion of variance in the discrepancy can be explained by the estimated strength of positive selection, which can be regarded as an indication for linked selection, such as selective sweeps or, more generally, hitchhiking effects. To test for that, we compared changes in Tajima’s D and its among-genome correlation coefficients over bins. As expected we observed a negative effect of D and a positive effect of ρ_{D} on Δ, both suggesting the presence of linked selection, with lower diversity at nearby sites and thus increased discrepancy between *b* and *β*. This is also in agreement with our simulations and those of Castellano *et al.* (2018), which illustrate that hitchhiking effects can lower the genetic diversity at nearby neutral or nearly neutral positions. These results can be understood because selective sweep effects cannot simply be captured by a rescaling of *N _{e}*. Selective sweeps not only reduce genetic diversity at linked sites but also distort the coalescent genealogy (Fay and Wu 2000; Walsh and Lynch 2018; Campos Parada and Charlesworth 2019), so that we cannot define a single

*N*in this context (Weissman and Barton 2012). In particular, the scaling is not expected to be the same for neutral or weakly selected polymorphisms. However, as far as we know, there is no quantitative model predicting the value of the slope as a function of DFE, rates of sweep, and recombination rates, and such models still need to be developed.

_{e}### Conclusions

There are three major conclusions to the present study. First, the nearly neutral theory in its initial form may not explain all aspects of polymorphisms but, almost 50 years after it was first proposed by Tomoko Ohta (Ohta 1973), it still constitutes an excellent starting point for further theoretical developments (Galtier 2016; Walsh and Lynch 2018). Second, considering linked beneficial selection indeed helps to explain polymorphism data more fully, and this is especially true for species with high genetic diversity. This can explain both patterns of synonymous polymorphism (Corbett-Detig *et al.* 2015) and how selection reduces nonsynonymous polymorphism [Castellano *et al.* (2018) and this study]. One could have a progressive increase of the effect of selective sweeps as suggested by Walsh and Lynch (2018, chapter 8) with a shift from genetic drift to genetic draft (Gillespie 1999; 2000; 2001). If so, we could have three domains. For small population sizes, drift would dominate and the nearly neutral theory in its initial form would apply. For intermediate population sizes, beneficial mutations would start to play a more important part, and finally for large population sizes, the effect of selective sweeps would dominate and draft would be the main explanation of the observed pattern of diversity. Third, our study once more emphasizes the central importance of the DFE in evolutionary genomics and we will likely see further developments in this area.

## Acknowledgments

We thank Thomas Bataillon and David Castellano for comments on earlier versions of the manuscript. The project was in part supported by grants from the Swedish Research Council and the Swedish Foundation for Strategic Research to M.L.

## Appendix

In a constant population with population size *N _{e}*, π

_{S}= 4

*N*µ and π

_{e}_{N}is given by (Sawyer and Hartl 1992):

where(A2)is the mean time a new semidominant mutation of scaled selection coefficient *S* = 4*N _{e}s* spends between

*x*and

*x*+

*dx*(Wright 1938). For constant selection

*S*, by integrating (A1) and dividing by 4

*N*µ, we have:(A3)(A3) is valid for both positive and negative fitness effect. If we consider only beneficial mutations with a γ distribution of effects, with mean

_{e}*S*and shape

_{b}*β*: , we can use the same approach as Welch

_{b}*et al.*(2008) to show that:(A4)where is the Hurwith ζ function. (A4) can be approximated under the realistic assumption that and taking Taylor expansion of (A4) in around 0. We thus obtain:(A5)which leads to Equation 2 in the main text.

## Footnotes

Supplemental material available at figshare: https://doi.org/10.25386/genetics.11536971.

*Communicating editor: S. Ramachandran*

- Received November 3, 2019.
- Accepted January 26, 2020.

- Copyright © 2020 by the Genetics Society of America

Available freely online through the author-supported open access option.