SciEvidence Papers

PAPERCommunity contribution

  • Research Article
  • Evolutionary genetics
  • Science

Limited genomic predictability of complex trait evolution despite genotype-phenotype stability

J. A. Smiley-Rhodes, M. C. Bitter, S. Berardi, J. Beltz, D. A. Petrov, P. Schmidt

Science10.1126/science.aee0342View paper

Abstract

Whether genomic data can be used to effectively predict adaptation in natural populations is unknown. Here, we tested the efficacy of genomic prediction of complex trait evolution by monitoring genome-wide allele frequencies and pigmentation variation in genetically diverse populations of Drosophila melanogaster during evolution in both field mesocosms and a controlled, lab-based setting. At two points during trait evolution, we produced a high-powered, well-resolved genotype-phenotype map that exhibited marked stability across independent populations. Although we were able to use this map to correctly infer the direction of pigmentation evolution in both the lab and field settings, the particular loci responding to selection were largely unpredictable based on the direction of trait evolution itself. Our results hold implications for the promise, and limitations, of genomic prediction.

The extent to which adaptation can be predicted is a fundamental question that permeates issues of societal concern, from the preservation of species in the face of global change to the management of disease outbreaks1, 2. Predicting adaptation hinges on a quantitative understanding of how genetic variation maps onto phenotypic variation and how phenotypic variation, in turn, translates into fitness differences among genotypes to drive evolutionary change. Successful examples of building such genotype-phenotype-fitness maps and predicting adaptation exist but are almost exclusively confined to traits for which variation is controlled by one or a few large-effect loci3–9. Whether this predictability extends to complex traits for which phenotypic differences are due to tens to thousands of loci throughout the genome and that constitute most fitness-relevant phenotypes10, 11 is unknown.

Three facets of complex trait variation that may create unpredictable relationships between genotype, phenotype, and fitness and thus challenge evolutionary predictions are pleiotropy, epistasis, and genotype-by-environment interactions. Pleiotropy occurs when a single genomic locus affects phenotypic variation in multiple fitness-relevant traits12, 13. As populations adapt, correlated selection across these traits can then affect the evolution of pleiotropic loci, constraining their effect on the evolution of the focal trait in question14. In such a scenario, genetic variation at a mapped locus may behave as effectively neutral during the evolution of the trait itself or even indicate trait shifts in the opposite direction of how it actually evolved through time10, 13, 15, 16. Whereas pleiotropy complicates predictions through cross-trait correlation, epistatic interactions among loci can cause the marginal effect of a trait-associated locus to differ across genetic backgrounds17–20. Because genetic background compositions shift as populations evolve, the effect of any given locus on trait variation may then differ between when the trait was mapped and when it comes under selection and evolves17, 18, 20–28. Similarly, genotype-by-environment interactions may cause a locus’s effect size, as quantified during mapping, to be miscalibrated relative to its true effect on trait variation in the specific environment in which selection actually acts25, 29–31. In concert, these forces make it unclear whether loci mapped within a single population, environment, and point in time will be those that actually drive trait evolution in nature.

One way to systematically test how these facets of complex trait variation shape the predictability of adaptation is to directly quantify selection on individual genomic loci and specific quantitative traits as evolution proceeds. We took such an approach here by mapping abdominal pigmentation in large, genetically diverse populations of Drosophila melanogaster as they evolved in two environments with distinct selective pressures: a controlled, lab-based environment and a dynamic, seminatural field setting32. We selected pigmentation as our focal complex trait because of its putative ecological relevance in D. melanogaster: It exhibits latitudinal clines among populations and rapidly and repeatedly evolves in response to seasonally varying selection pressures in temperate populations33. Furthermore, a suite of functional genetic studies and genome-wide association studies (GWASs) has pinpointed core genes in the melanin and sclerotin biosynthetic pathways that underpin pigmentation variation in the species—bric à brac (bab), tan, and ebony34–38—providing a benchmark for the mapping conducted here. Leveraging this system, we generated genotype-phenotype maps before and after pigmentation evolved and separately for populations evolved in lab-based and field settings. We then combined these mapping data with genome-wide allele frequencies procured throughout evolution to ask the following questions: Are the loci underpinning phenotypic variation in a complex trait the same loci that respond to selection and underpin trait evolution in a natural setting? How does the environment of selection affect the efficacy of genomic prediction of trait evolution? Is the genotype-phenotype map of complex traits stable throughout evolution and across different environments of selection?

Results

Study scheme and power

Our study population was derived by outcrossing a panel of 76 inbred lines originally collected in local Pennsylvania orchards39. By allowing evolution to proceed from a single founding population, we could evaluate the effect of epistasis on genotype-phenotype map stability directly and in a manner that is not confounded by population-specific demographic history and patterns of linkage23, 25. Furthermore, the variation subject to selection in our study was evaluated in the same geographic region where it is maintained naturally and in which we have documented repeatable seasonal evolution of lighter pigmentation from late spring through summer33. Finally, the haplotype-informed allele frequency estimates we generated from our reconstituted outbred populations are of comparable accuracy to those produced using standard pooled sequencing approaches at depths of ~200x40. Haplotype frequencies of samples collected throughout the experiment indicated that the outbred populations were not dominated by a subset of founding haplotypes, and we did not observe extinction of any founding lines throughout the progression of the experiment (figs. S1 and S2).

Our founding population was used to seed each of 10 indoor cage replicates maintained in controlled, lab-based conditions as well as 10 replicate outdoor mesocosms exposed to natural environmental fluctuations in Philadelphia, Pennsylvania (Materials and methods)32, 41, 42. This paired design provides insights into the primary drivers of pigmentation evolution observed in natural populations—specifically, whether the trait is under selection elicited by fluctuating abiotic variables such as temperature or also affected by the biotic stressors (namely rapidly increasing density) shared between study environments. Selection in this latter case could be direct or indirect and due to genetic correlations of pigmentation with reproduction-associated traits under selection with increasing population densities32, 43. Over the course of 10 weeks and approximately seven generations of evolution, we quantified selection on pigmentation and monitored genome-wide frequency changes of 1.9 million single-nucleotide polymorphisms (SNPs). At two time points throughout this process (weeks 4 and 10) and in each environment and replicate cage, we conducted a tail-based mapping: Three pools of 75 female flies each—one representing the 15% lightest, one the 15% darkest, and one a representative sample of the midpoint of the trait value distribution (hereafter referred to as “light,” “dark,” and “midpoint” trait value groups)—were isolated and sequenced (Materials and methods). Simulations were carried out to evaluate the statistical power of this tail-based mapping approach, specifically its ability to identify quantitative trait loci over a range of effect sizes and starting frequencies (Materials and methods). Congruent with recent work44, we found that our highly replicated, tail-based mapping exhibits the power to detect complex trait loci comparable to that of an inbred-line GWAS using ~700 strains (figs. S3 to S5)36.

Phenotypic and genomic variation across environments and throughout evolution

We first quantified whether pigmentation evolved in our experimental populations and whether this was driven by natural selection. Specifically, we quantified pigmentation independently for each inbred reference line, across individuals in the derived outbred population (hereafter, “baseline”), and among replicate populations at weeks 4 and 10 of evolution in each environment. The baseline population exhibited variation in pigmentation that was representative of the variation observed across the 76 inbred lines from which it was derived (Fig. 1A). After approximately two generations in the mesocosms, pigmentation evolved to be significantly lighter (less melanized) across replicates in both the lab and field environments (pairwise t tests; P < 0.001 for week 4 outdoor, and P < 0.001 for week 4 indoor). In the subsequent interval (6 weeks, approximately five generations), the pigmentation phenotype further evolved to be lighter, in parallel and across replicates, in both the field and lab environments (pairwise t tests; P < 0.001 for week 4 versus week 10 outdoor, and P = 0.0245 for week 4 versus week 10 indoor). A significant treatment-by-time interaction on pigmentation variation occurred throughout the experiment [two-way analysis of variance (ANOVA); F = 17.03, P < 0.001], driven by the accelerated rate and magnitude of pigmentation evolution in the outdoor environment (Fig. 1A).

Fig. 1. Phenotypic and genomic variation throughout study period. (A) Box plot distributions of the total pigmentation scores (whereby higher scores indicate darker pigmentation) across samples. Limits of box plots represent the interquartile range, with a line at the median and whiskers extending to the most extreme data points within 1.5× of the interquartile range (any points beyond that are plotted individually as outliers). “Founder” refers to our 76 inbred lines that we outbred for four generations to generate our baseline (week 0) population, and gray dots in this panel each represent the average pigmentation score of n = 3 females from each inbred line. The baseline pigmentation distribution represents the scores of n = 90 females from the initial outbred population, which was used to seed our indoor and outdoor cages. From the samples collected during the experiment at weeks 4 and 10 in both environments, we scored 30 females per replicate cage and found a significant shift toward lighter pigmentation in both outdoor and indoor populations (pairwise t test). (B and C) Projection of samples used in trait mapping onto the first two principal components generated by PCA of allele frequency data from all 1.9 million SNPs. In (B), samples are colored by the color fraction from which they originate (dark, midpoint, or light), and the shape of the points corresponds to the time point when the sample was collected. PC1 value and color fraction identity are significantly associated (linear regression, P < 0.001). In (C), samples are colored by treatment. PC2 value and treatment are significantly associated (ANOVA, P < 0.001).
Fig. 1. Phenotypic and genomic variation throughout study period. (A) Box plot distributions of the total pigmentation scores (whereby higher scores indicate darker pigmentation) across samples. Limits of box plots represent the interquartile range, with a line at the median and whiskers extending to the most extreme data points within 1.5× of the interquartile range (any points beyond that are plotted individually as outliers). “Founder” refers to our 76 inbred lines that we outbred for four generations to generate our baseline (week 0) population, and gray dots in this panel each represent the average pigmentation score of n = 3 females from each inbred line. The baseline pigmentation distribution represents the scores of n = 90 females from the initial outbred population, which was used to seed our indoor and outdoor cages. From the samples collected during the experiment at weeks 4 and 10 in both environments, we scored 30 females per replicate cage and found a significant shift toward lighter pigmentation in both outdoor and indoor populations (pairwise t test). (B and C) Projection of samples used in trait mapping onto the first two principal components generated by PCA of allele frequency data from all 1.9 million SNPs. In (B), samples are colored by the color fraction from which they originate (dark, midpoint, or light), and the shape of the points corresponds to the time point when the sample was collected. PC1 value and color fraction identity are significantly associated (linear regression, P < 0.001). In (C), samples are colored by treatment. PC2 value and treatment are significantly associated (ANOVA, P < 0.001).

We next determined whether there existed evidence of environment-specific patterns of selection on genomic variation that could induce distinct epistatic landscapes between the lab and field-based mapping populations. Specifically, we ran principal components analysis on the normalized allele frequency data, composed of 1.9 million SNPs, from the samples used in trait mapping. Projecting samples onto the first two principal components, we observed that the first principal component (6.4% variance explained) segregated samples in accordance with trait group [fig. S6; coefficient of determination (R2) = 0.762; linear regression, P < 0.001], whereas the second principal component (4.8% variance explained) segregated samples by environment (ANOVA, P < 0.001) (Fig. 1, B and C). These patterns largely held when PCA was conducted separately for each chromosomal arm (figs. S7 and S8) and thus indicate an effect of environment of selection on genome-wide patterns of variation across mapping populations.

Ancestry-informed mapping provides resolved architecture of abdominal pigmentation

We initially focused our mapping of pigmentation on samples collected at week 10 in the outdoor mesocosms, as these replicate populations had undergone evolution in a seminatural environment and experienced more generations of recombination since initial outbreeding than the week 4 samples. Still, given the finite number of haplotypes in our founding inbred panel, a significant association between a SNP and pigmentation could indicate either its linkage to a locally causal allele or simply its broader inbred-line ancestry. To determine the magnitude of this ancestry effect genome-wide, we quantified the average contribution of haplotypes coming from each inbred line to each trait value group and tested for the association of this quantity with the pigmentation score of that inbred line. We found that samples from the light trait value group contained a disproportionate amount of ancestry from the lightest inbred lines and, likewise, the dark trait value groups contained a similarly disproportionate amount of ancestry from the darkest inbred lines (Fig. 2A; R2 = 0.32, P < 0.001). To further quantify this ancestry effect on pigmentation mapping, we ran a simple regression using a generalized linear model (GLM; logistic link function and quasibinomial error variance) of allele frequencies on trait value group (light, midpoint, or dark). We took the top 1% of SNPs from this regression (based on nominal P value) and calculated their expected frequency difference between light and dark color fractions based on estimates of the average contribution of each inbred line to that sample as well as the association between that SNP and its presence in the inbred line. Indeed, we observed that SNPs with a higher relative frequency in the light-color fraction tended to be associated with the lighter pigmented inbred lines, making it hard to disentangle the SNP’s local association with a causal locus from its association with global inbred line ancestry (Fig. 2B).

Fig. 2. Genetic architecture of female abdominal pigmentation. (A) The pigmentation score of the founding inbred lines compared with the respective light versus dark frequency differences across all samples for the haplotypes originating from these lines (linear regression, P < 0.001). Gold points correspond to inbred lines enriched in light color fraction, and dark brown points correspond to lines enriched in dark color fraction; gray points are enriched in neither color fraction. (B) Distribution of the difference between average expected light frequencies and average expected dark frequencies for the top 1% of SNPs from a model only considering the impact of trait value on allele frequency variation (Trait Only) versus a model with an additional term that represents the expected frequency in the sample based on the SNPs’ ancestry (Ancestry). (C) Manhattan plot depicting each SNP’s nominal P value derived from an ancestry-informed mapping of SNP association with pigmentation variation. The dashed horizontal line corresponds to an empirical FDR threshold of 0.05%. (D) Genomic distribution of SNPs confined within n = 42 unlinked, independent loci underpinning pigmentation variation. SNPs are plotted as a function of their genomic coordinate and GLM-derived P value [as in (C)]. Shaded regions denote the start and end points of each of the identified unlinked loci, whereas region color denotes the behavior of light-associated SNPs within each locus during the evolution of lighter pigmentation: Red shading indicates loci in which light-associated alleles increased in frequency (18 total loci; binomial test, FDR < 0.05), blue shading indicates loci in which light-associated alleles decreased in frequency (seven total loci; binomial test, FDR < 0.05), and gray shading indicates loci with no signature of selection on light-associated alleles (17 total loci; binomial test, FDR > 0.05).
Fig. 2. Genetic architecture of female abdominal pigmentation. (A) The pigmentation score of the founding inbred lines compared with the respective light versus dark frequency differences across all samples for the haplotypes originating from these lines (linear regression, P < 0.001). Gold points correspond to inbred lines enriched in light color fraction, and dark brown points correspond to lines enriched in dark color fraction; gray points are enriched in neither color fraction. (B) Distribution of the difference between average expected light frequencies and average expected dark frequencies for the top 1% of SNPs from a model only considering the impact of trait value on allele frequency variation (Trait Only) versus a model with an additional term that represents the expected frequency in the sample based on the SNPs’ ancestry (Ancestry). (C) Manhattan plot depicting each SNP’s nominal P value derived from an ancestry-informed mapping of SNP association with pigmentation variation. The dashed horizontal line corresponds to an empirical FDR threshold of 0.05%. (D) Genomic distribution of SNPs confined within n = 42 unlinked, independent loci underpinning pigmentation variation. SNPs are plotted as a function of their genomic coordinate and GLM-derived P value [as in (C)]. Shaded regions denote the start and end points of each of the identified unlinked loci, whereas region color denotes the behavior of light-associated SNPs within each locus during the evolution of lighter pigmentation: Red shading indicates loci in which light-associated alleles increased in frequency (18 total loci; binomial test, FDR < 0.05), blue shading indicates loci in which light-associated alleles decreased in frequency (seven total loci; binomial test, FDR < 0.05), and gray shading indicates loci with no signature of selection on light-associated alleles (17 total loci; binomial test, FDR > 0.05).

To account for the strong ancestry effects on SNP-pigmentation associations, we modeled allele frequency as a function of both pigmentation trait value and an ancestry-predicted frequency term—the latter capturing each SNP’s expected frequency given its association with each inbred line and that line’s genome-wide relative frequency across the sample. Thus, this model controlled for SNPs that had an elevated light-dark frequency difference that could be entirely explained by linkage to high-frequency haplotypes. Our model also treated allele frequency data across replicate populations as independent technical replicate observations, allowing the identification of trait-associated SNPs that are robust to unmodeled cage-level variance (for an analysis of cage-level variance in mapping, see Results section “Stable genotype-phenotype mapping throughout evolution and across environments of selection”). In Fig. 2B, we see that the distribution of expected light-dark frequency differences for SNPs identified by this model is now centered around zero, indicating that the global bias produced by our trait-only GLM is eliminated. We further validated that SNPs identified through this approach were not exclusive to either the lightest or darkest founding inbred lines but rather present at appreciable frequency across all founding haplotypes (fig. S9). Finally, we defined a robust set of pigmentation-associated SNPs by permuting trait values and rerunning our ancestry-informed GLM (100 permutations), considering a SNP significant if its observed P value exceeded the 99.95th percentile of significance in the permuted P value distribution [empirical false discovery rate (FDR) threshold of 0.05%; fig. S10]. Even at this conservative threshold, we see that trait-associated SNPs are pervasive throughout the genome and distributed across all chromosomal arms (Fig. 2C).

We next used our set of pigmentation-associated SNPs to identify the number and location of unlinked loci underpinning variation in the trait. To do so, we developed a procedure to account for chromosome-wide patterns of linkage (Materials and methods and fig. S11). This approach yielded a set of 42 independent, nonoverlapping pigmentation-associated loci, ranging in size from 700 kb to 3 Mb and distributed across all chromosomal arms (data S1). This indicates that the genetic architecture of pigmentation is not underpinned solely by a single or few large-effect loci or by a very large number (e.g., >1000) of weak-effect loci. Rather, we inferred the presence of a moderate number of large- to moderate-effect loci underpinning trait variation while acknowledging that there may be further loci of small effect that our approach lacks sufficient power to detect. We again validated that pigmentation-associated SNPs within the identified loci were not exclusive to the lightest and darkest haplotypes enriched in the trait tails but rather shared across all founding inbred lines (fig. S12).

Reassuringly, the top identified pigmentation loci on chromosomal arms 3L, 3R, and X contained the previously described core pigmentation genes: bab, ebony, and tan37, 45–47. A systematic comparison of our association signal and two recent, well-powered GWASs of the trait35, 36 indicated significantly more overlap than expected by chance (permutation, P < 0.001; Materials and methods). However, this signal was eliminated when we no longer considered SNPs within the loci containing bab, ebony, or tan (P = 0.994), suggesting little overlap outside of these three core genes. We suspect the pigmentation-associated variation outside the canonical loci quantified here to represent the discovery of undescribed pigmentation-associated loci, identifiable here for the first time because of the increased power of our mapping (figs. S3 to S5) and also potential differences in the underlying causal loci that affect pigmentation variation in our focal population relative to those in previous studies27, 48. In the supplementary materials (SM), we describe candidate genes within these loci that likely harbor pigmentation-relevant variation (supplementary text and tables S1 and S2) and demonstrated, using out-of-sample phenotypic prediction, that these loci are unlikely to be false positives (see section Stable genotype-phenotype mapping throughout evolution and across environments of selection).

Genomic predictions of complex trait evolution

One application of a well-resolved genotype-phenotype map is to predict whether a trait has evolved in a natural population using genomic data alone. Our longitudinal study design afforded the opportunity to test the efficacy of this approach directly by combining our mapping data with the time-series allele frequency data that we collected throughout phenotypic evolution in the outdoor mesocosms. Accordingly, for each of the 42 unlinked loci identified above, we quantified the frequency shifts of the light-associated alleles (i.e., those at higher frequency in the light trait value group) over the period during which the outdoor replicate populations evolved to become significantly lighter (pairwise t test, P < 0.001; Fig. 1A). We then inferred whether observed allele frequency movement within each locus indicated lighter pigmentation evolution by comparing the distribution of shifts at mapped alleles to a distribution derived from a set of matched control SNPs, the latter of which served as a proxy for the magnitude of allele frequency change expected as a result of genetic drift and/or sampling noise (binomial test; Materials and methods).

We found that out of the 42 pigmentation-associated loci, 18 exhibited an overall increase in light-associated allele frequency and thus a behavior through time indicative of the evolution of lighter pigmentation (red bars in Fig. 2D). However, for 17 mapped loci, we did not detect any systematic shift indicative of trait evolution (gray bars in Fig. 2D), whereas seven loci showed frequency shifts indicative of the evolution of darker pigmentation (blue bars in Fig. 2D). Thus, in sum, although our genome-wide inference correctly predicted evolution of lighter pigmentation in the outdoor mesocosms (Fig. 3A), we observed that at particular loci, and even entire chromosomal arms (fig. S13), the genetic basis of pigmentation evolution was unpredictable based on mapping data alone. This unpredictable genetic architecture of adaptation was evident at our loci of largest effect: Allele frequency shifts within the ebony locus, as well as the largest-effect locus on 2R, correctly predicted evolution of lighter pigmentation; variation at the tan locus indicated that pigmentation did not evolve; and variation within our largest-effect, mapped locus, which contained bab, predicted evolution of darker pigmentation (Fig. 2D).

Fig. 3. Prediction of phenotypic evolution in simple and complex environments. (A) Genome-wide allele frequency change at pigmentation-associated SNPs identified in the outdoor week 10 mapping population and quantified throughout trait evolution in the outdoor (left, magenta) and indoor (right, turquoise) mesocosms, relative to matched control shifts (gray distributions) (P values indicate two-sided binomial test between pigmentation-associated SNP and matched control SNP distributions). (B) Z-score estimates (diamond), and distribution of bootstrapped estimates (violin distribution), of genomic predictions for pigmentation evolution in the outdoor (magenta) and indoor (turquoise) mesocosms using SNPs identified in the outdoor week 10 mapping population. Positive Z-scores indicate net lighter pigmentation evolution, whereas negative values indicate net darker evolution. Z-scores were computed by comparing estimated relative phenotypic change using mapped SNPs to estimates generated using a set of matched control SNPs (gray distributions). (C) Same as in (B), but here genomic predictions discard pigmentation-associated SNPs within the bab locus. (D and E) Same as (B) and (C), but for pigmentation-associated SNPs identified by mapping the indoor week 10 mapping population.
Fig. 3. Prediction of phenotypic evolution in simple and complex environments. (A) Genome-wide allele frequency change at pigmentation-associated SNPs identified in the outdoor week 10 mapping population and quantified throughout trait evolution in the outdoor (left, magenta) and indoor (right, turquoise) mesocosms, relative to matched control shifts (gray distributions) (P values indicate two-sided binomial test between pigmentation-associated SNP and matched control SNP distributions). (B) Z-score estimates (diamond), and distribution of bootstrapped estimates (violin distribution), of genomic predictions for pigmentation evolution in the outdoor (magenta) and indoor (turquoise) mesocosms using SNPs identified in the outdoor week 10 mapping population. Positive Z-scores indicate net lighter pigmentation evolution, whereas negative values indicate net darker evolution. Z-scores were computed by comparing estimated relative phenotypic change using mapped SNPs to estimates generated using a set of matched control SNPs (gray distributions). (C) Same as in (B), but here genomic predictions discard pigmentation-associated SNPs within the bab locus. (D and E) Same as (B) and (C), but for pigmentation-associated SNPs identified by mapping the indoor week 10 mapping population.

Efficacy of genomic prediction of trait evolution differs between complex and simple environments

The unpredictable genetic architecture of trait evolution that we observed manifested in a field setting where replicate populations were exposed to a dynamic suite of fluctuating selection pressures. This raises the question of whether this unpredictability would be subdued in a simpler, lab-based environment. We tested this hypothesis by comparing genomic predictions of trait evolution for the replicate populations that evolved in the outdoor mesocosms relative to predictions generated for the populations that evolved in the lab-based mesocosms. Specifically, we first quantified whether light-associated alleles were favored during the evolution of lighter pigmentation in each environment and found that their genome-wide frequencies increased significantly relative to that of background allele frequencies in both environments (two-sided binomial test, P < 0.001; Fig. 3A and also see figs. S13 to S15). Next, we used the relative effect sizes of mapped loci in conjunction with their observed allele frequency shifts during trait evolution to produce a genome-wide prediction of pigmentation evolution in each environment (Materials and methods). This approach is analogous to polygenic score-based predictions of trait evolution that are often implemented in studies of human adaptation49–51 but differs in that the effect-size estimates of loci mapped here are derived from regressions of allele frequencies on group-level trait value data (not individual-level trait and genotype data). Our predictions thus represent a genomic prediction of shifts in relative (not absolute) pigmentation value through time. This approach correctly inferred that lighter pigmentation evolved in both the indoor and outdoor environments (Fig. 3B). Yet the predicted magnitude of phenotypic change was greater in the indoor environment, despite our phenotypic assays showing that replicate populations in this environment evolved to a lesser degree (Fig. 1A).

We next systematically evaluated the impact of the bab locus on the accuracy of our genomic prediction of trait evolution because it is a canonical pigmentation gene, has documented pleiotropic effects across a range of fitness-relevant phenotypes52–55, and, in our experimental populations, harbors light-associated alleles that became selected against during lighter pigmentation evolution in the outdoor mesocosms (Fig. 2D). Specifically, by excluding mapped alleles at the bab locus and reconducting our genomic prediction, we observed that the predicted magnitude of lighter pigmentation evolution increased in both environments, and to a much greater degree in the outdoor environment (Fig. 3C). In the SM, we present genomic predictions of trait evolution using mapped SNPs from only the canonical pigmentation loci, which led to a spurious prediction of darker pigmentation evolution (figs. S16 and S17). Finally, we quantified whether our genomic predictions of trait evolution in the outdoor mesocosms differed when using mapping results derived from the indoor populations sampled at week 10. This independently identified set of mapped loci still correctly predicts trait evolution in the indoor environment but fails to predict evolution of lighter pigmentation in the outdoor environment (Fig. 3D). However, by excluding mapped variation from the bab locus, we recovered the correct genomic prediction of trait evolution in the outdoor environment (Fig. 3E).

Stable genotype-phenotype mapping throughout evolution and across environments of selection

How well do genotype-phenotype maps derived from a single population and point in time transfer to independent populations? This represents another fundamental question in complex trait evolution that our longitudinal, multi-environment study allowed us to address. Specifically, we observed a pronounced signature of genome-wide differentiation between our lab-based and outdoor field mesocosms (Fig. 1C), and we previously reported substantial evolutionary change within each of these environments throughout the observation period monitored in this study32, 41. Accordingly, we tested whether this genomic differentiation among mapping populations shifts the epistatic landscape in such a way that the genotype-phenotype map itself differs among mapping populations25, 56, 57. Specifically, we reimplemented our mapping approach on the replicate populations sampled in outdoor mesocosms at week 4, as well as the indoor populations sampled at weeks 4 and 10. The number of loci underpinning variation across all mapping populations was comparable (ranging from 30 to 43 independent loci; data S1). The average genomic distance spanned by these loci declined from weeks 4 to 10 (from ~1 Mb at week 4 to ~700 kb at week 10) because of additional recombination events that allowed for more localized mapping at the later sampling points.

The similarities in trait architecture quantified in the lab and field populations are shown in the mirrored Manhattan plots presented in Fig. 4A, where regions of heightened pigmentation-associated variation largely track between these independent populations. Loci identified across all four mapping populations contained the canonical pigmentation genes tan, ebony, and bab (fig. S18), demonstrating consistency of mapping as well as the pronounced effect that these genes have on pigmentation variation in this species. We took two approaches to quantify the similarity in pigmentation-associated loci across the four independent mapping populations. First, we assessed whether the start and end points of loci identified in each independent mapping population were closer than expected by chance: For each set of loci identified within a particular mapping population, we selected the locus-defining, midpoint SNP (i.e., that with the most significant P value) and then quantified the number of times it fell within a locus in the other three sets of mapped loci (each locus could therefore overlap between zero and three times with the remaining mapping populations). The number of overlaps across all loci for a particular mapping population was then summed and compared with an empirical null distribution generated by iterating this procedure 2000 times using a set of randomly selected SNPs (see Materials and methods). Across sets of mapped loci, midpoint SNPs were far more likely to fall within a locus of an independent mapping than expected by chance (Fig. 4B), demonstrating that the regions harboring pigmentation-associated variation were conserved across mapping populations. Furthermore, we found that the distances between locus midpoints are generally significantly closer than expected based on an empirical null (Fig. 4C).

Fig. 4. Epistasis does not preclude portability of trait mapping. (A) Mirrored Manhattan plots depicting mapping results from week 10 outdoor (top) versus week 10 indoor (bottom) populations. Only SNPs with a GLM P value corresponding to an empirical FDR of <0.0005 are depicted, and shaded regions correspond to unlinked loci underpinning pigmentation-associated variation (see text for details). (B) Observed (diamonds) versus expected (gray violin distributions) overlap between pigmentation-associated loci identified within each mapping population and pigmentation-associated loci identified in all other independent mapping populations. (C) Observed (diamonds) versus expected (gray violin distributions) distances between midpoint SNPs of pigmentation-associated loci identified within each mapping population and midpoint SNPs of pigmentation-associated loci identified in all other independent mapping populations. (D) Percent overlap of trait-associated SNPs identified within and between mapping populations, categorized as follows: (i) sets of SNPs identified from subsets of the same mapping population [same time point and treatment (Same tpt/treat)]; (ii) sets of SNPs identified from mapping populations evolved in the same environment but sampled at a different time point (Same treatment); (iii) sets of SNPs identified from mapping populations evolved in a different environment but sampled at the same time point (Same time point); and (iv) sets of SNPs identified from mapping populations evolved in a different environment and sampled at different time points (Other tpt/treat). Distributions are presented as violin plots overlaid with box plots, with the box marking the median and interquartile range and points indicating individual outliers falling beyond 1.5× the interquartile range. (E) Genomic predictions of relative phenotypic values for dark (brown points), midpoint (orange points), and light (yellow points) trait value groups, derived using week 10 outdoor mapping data and tested within and between mapping populations using the same categories as in (D). Here, positive and negative values indicate lighter or darker pigmentation relative to the baseline population, respectively. Predictions (diamonds) were generated separately for each trait value group and replicate cage. Colored violins represent 1000 bootstrapped predictions of each relative phenotypic value.
Fig. 4. Epistasis does not preclude portability of trait mapping. (A) Mirrored Manhattan plots depicting mapping results from week 10 outdoor (top) versus week 10 indoor (bottom) populations. Only SNPs with a GLM P value corresponding to an empirical FDR of <0.0005 are depicted, and shaded regions correspond to unlinked loci underpinning pigmentation-associated variation (see text for details). (B) Observed (diamonds) versus expected (gray violin distributions) overlap between pigmentation-associated loci identified within each mapping population and pigmentation-associated loci identified in all other independent mapping populations. (C) Observed (diamonds) versus expected (gray violin distributions) distances between midpoint SNPs of pigmentation-associated loci identified within each mapping population and midpoint SNPs of pigmentation-associated loci identified in all other independent mapping populations. (D) Percent overlap of trait-associated SNPs identified within and between mapping populations, categorized as follows: (i) sets of SNPs identified from subsets of the same mapping population [same time point and treatment (Same tpt/treat)]; (ii) sets of SNPs identified from mapping populations evolved in the same environment but sampled at a different time point (Same treatment); (iii) sets of SNPs identified from mapping populations evolved in a different environment but sampled at the same time point (Same time point); and (iv) sets of SNPs identified from mapping populations evolved in a different environment and sampled at different time points (Other tpt/treat). Distributions are presented as violin plots overlaid with box plots, with the box marking the median and interquartile range and points indicating individual outliers falling beyond 1.5× the interquartile range. (E) Genomic predictions of relative phenotypic values for dark (brown points), midpoint (orange points), and light (yellow points) trait value groups, derived using week 10 outdoor mapping data and tested within and between mapping populations using the same categories as in (D). Here, positive and negative values indicate lighter or darker pigmentation relative to the baseline population, respectively. Predictions (diamonds) were generated separately for each trait value group and replicate cage. Colored violins represent 1000 bootstrapped predictions of each relative phenotypic value.

Given the pronounced mapping stability at the level of genomic loci, we next interrogated whether individual pigmentation-associated SNPs were also shared across mapping populations. To do so, we reidentified trait-associated SNPs using our ancestry-informed GLM in groups of five (of the 10 total) replicates per mapping population. This then allowed for a balanced comparison of the overlap in trait-associated SNPs within subsets of the same mapping population (e.g., overlap in trait-associated SNPs between independent subsets of five replicates from the week 10 outdoor samples) and between mapping populations (e.g., overlap in trait-associated SNPs between subsets of week 10 outdoor and week 4 indoor replicates). We found that the amount of overlap in SNPs identified between subsets of the same mapping population did not exceed that between different mapping populations (Fig. 4D and fig. S19). In the SM, we further quantified this SNP-level parallelism using a leave-one-out cross-validation scheme (fig. S20).

Given the overall stability of mapping, we queried our ability to predict relative phenotypic values across independent populations using allele frequency data alone. Specifically, we predicted the relative pigmentation of each trait value group, both within the same population and across independent populations, from which a given genotype-phenotype map was produced (Materials and methods). We found that we could correctly predict relative pigmentation scores for samples from within the same, as well as independent, mapping populations (Fig. 4E and fig. S21). Predicted pigmentation scores maintained their accuracy even when excluding variation within the canonical pigmentation genes (fig. S22), again indicating that the previously undescribed pigmentation-associated loci identified here are not likely to be false positives but rather harbor pigmentation-relevant variation.

Despite the strong stability of the genotype-phenotype map across independent populations (Fig. 4, B to D), we still observed several conspicuous instances in which genomic regions harboring pigmentation-relevant variation for one mapping population appeared to lack pigmentation-associated variation in an independent mapping population. Several such instances can be observed in the mirrored Manhattan plot in Fig. 4A, where the start and end points of pigmentation loci within one environment (indicated by shaded regions) have no overlap with loci in the second environment. We suspect that these environment-specific loci indicate the effects of epistasis altering the marginal effect of pigmentation-associated SNPs across mapping populations. In the SM, we show that such instances of environment-specific loci are not solely due to technical noise but are indeed environment-specific marginal effects (figs. S23 and S24 and see fig. S25 for a demonstration that the exclusion of these loci from cross-treatment genomic prediction of trait evolution does not alter our inferences). Still, over and above this detectable set of environment-specific mapped loci, most loci are shared across independent mapping populations (e.g., 29 of 42 loci identified in the week 10 outdoor population overlapped with at least one of the 43 loci in the week 10 indoor population), and thus the dominant signal in the data is one of strong stability of mapping.

Discussion

The central goal of this study was to rigorously evaluate the predictability of adaptation. To do so, we leveraged a model complex trait (abdominal pigmentation), a model species (D. melanogaster), and a high-powered, longitudinal study design in an ecologically relevant setting. Our data demonstrate that a well-resolved genotype-phenotype map can indeed be used to correctly predict whether, and in what direction, a complex trait evolves. However, the specific genetic architecture of adaptation—which loci show signatures of selection during trait evolution—was largely unpredictable based on mapping data alone. Specifically, as our study populations evolved lighter pigmentation in seminatural, outdoor mesocosms, we observed a net genome-wide increase in the frequency of light-associated alleles (Fig. 3A). But at the level of individual mapped loci, there were instances in which light-associated alleles behaved neutrally, or were even selected against, during this period (Fig. 2D). The key implication of this result is that genetic redundancy in complex traits may allow populations to adapt despite complex relationships among genotype, phenotype, and fitness58–60. From an applied standpoint, it demonstrates that predicting complex trait evolution hinges upon a well-resolved genotype-phenotype map in which loci of moderate to small effect are characterized, as these may indeed be the loci that drive evolution of trait means in natural settings.

Our study design and results afforded further insights into the underlying processes that give rise to the unpredictable architecture of adaptation that we quantified. Specifically, instances in which light-associated alleles were selected against during the evolution of lighter pigmentation suggest that these alleles are pleiotropic, generating negative genetic correlations between pigmentation and other fitness-associated traits under selection during the observation period10, 13, 15. We anticipated this dynamic to play out in our study system, as a plethora of fitness-relevant traits coevolve with, and may be genetically correlated with, pigmentation33, 42, 43, 61. Furthermore, the canonical pigmentation locus bab, for which we identified signatures of selection during trait evolution that were in direct contrast to what was predicted based on our mapping (i.e., a net decrease in frequency of light-associated alleles during lighter pigmentation evolution; Fig. 2D), is a well-documented pleiotropic regulator, with effects on traits ranging from pattern formation in limbs to ovary morphogenesis52, 53, 62. Such pleiotropic constraint may not necessarily be a function of a single allele but instead be representative of a haplotype-level pleiotropy where alleles conferring lighter pigmentation may be in tight linkage to those associated with another fitness-associated trait that is strongly selected against over the same time period32.

An additional facet of complex trait variation that may have further exacerbated the unpredictable genetic architecture of adaptation is genotype-by-environment interactions (GxE). Specifically, we conducted trait mapping under common garden conditions (25°C, 12 hours light:12 hours dark) to standardize the environment in which each genotype-phenotype map was constructed. Trait evolution, however, proceeded in the context of continually shifting abiotic and biotic conditions where the presence of GxE may continually alter the marginal effect of a locus on trait variation (Fig. 1C). In other words, the marginal effect of a locus on trait variation in the conditions in which it was mapped may differ from that in the environment in which the trait comes under selection. We indeed suspect this dynamic to, at least in part, explain instances in which light-associated alleles behave neutrally as the population evolves lighter (gray bars in Fig. 2D). However, it is highly unlikely that such GxE induces the behavior we observed at several large-effect loci in which dark-associated alleles increased in frequency while the population became lighter, counter to expectations (blue bars in Fig. 2D). Rather, this “counter-gradient” behavior is a hallmark of pleiotropic constraint driven by negative genetic correlations among fitness-associated traits15, 16, 63, which, again, was expected to occur in our ecologically realistic, outdoor system52–55.

Although the impacts of pleiotropy and GxE were pronounced in our genomic predictions of trait evolution, we found epistasis to have a less detrimental effect on the prediction of complex trait variation overall. Specifically, by reconducting our high-powered mapping in four independent sets of replicate populations, differentiated by evolutionary time and environment of selection (Fig. 1C), we quantified a notable stability of trait architecture (Fig. 4). Therefore, at least within the confines of the magnitude and timescale of evolution manipulated here, epistasis (and/or context-dependent dominance shifts) did not inhibit the transferability of mapping results across independently evolved populations. This finding is bolstered by recent work demonstrating increased mapping portability when trait architecture has been quantified in a manner that effectively controls for ancestry and demographic effects, allowing better refinement of trait loci and putatively causal variants20, 56, 57, 64.

A key additional component of this study was pairing our outdoor mesocosms with indoor mesocosms that were founded with the same outbred population but in which abiotic conditions were held constant. The observed evolution of lighter pigmentation in both environments suggests that selection on the trait not only is directly imposed by fluctuating abiotic variables such as temperature33 but also implicates a role of indirect selection by means of correlated traits (e.g., fecundity, developmental rate) that are favored under increasing population density (which occurs in both the outdoor and indoor mesocosms)32, 42, 43. Yet despite this parallel phenotypic evolution across environment, we observed differences in the underlying genetic architecture of trait adaptation through time. Specifically, we found that pigmentation-associated loci behaved more predictably in the indoor environment, with light-associated variants more likely to increase in frequency as the population itself became lighter. By contrast, in the outdoor environment, we observed stronger countergradient behavior, where a handful of dark-associated variants strongly increased in frequency even as the populations evolved to become lighter (Fig. 2D). We hypothesize that this pattern is a result of the more complex selective regime of the outdoor environment, where selection on a greater number of traits overall increases pleiotropic constraint at the level of individual loci65, 66. From a practical standpoint, this demonstrates that lab-based studies of trait variation and evolution may poorly recapitulate the dynamics of adaptation in the wild, bolstering recent calls to study the ecology and evolution of populations in natural contexts67.

Looking forward, our results are pertinent to numerous applications of genomic data: using mapping data to predict phenotype across disparate populations, inferring past selection using time series and ancient DNA genomic data, or manipulating contemporary variation to shape future evolutionary trajectories. The key takeaways from this study are that high-powered mapping data are indispensable in such approaches and that the procurement of longitudinal data in natural settings can provide insights into the dynamics of trait architecture and the evolutionary process that remain masked from inference using static data alone.

Materials and methods

Experimental overview

A genetically diverse population of outbred D. melanogaster was generated by outcrossing 10 male and 10 female individuals from a total of 76 inbred lines, originally collected from Linvilla Orchards, Media, PA39. The outbred population was allowed to recombine and expand for four generations in density-controlled conditions, after which 500 males and 500 females from a single age cohort were used to seed each of 10 outdoor and indoor replicate cages. The outdoor mesocosms consisted of 10 replicate, 2-m–by–2-m–by–2-m mesh cages, each harboring a single dwarf peach tree, and were exposed to natural environmental conditions, insects, and microbial communities41. The indoor mesocosms consisted of 10 replicate, ~0.5-m3 cages housed in a temperature-controlled laboratory at the University of Pennsylvania. Constant food was supplied to the replicates within each environment: 400 ml of Drosophila media were provided in 900-cm3 aluminum loaf pans within each cage three times per week32, 41. Monitoring of phenotypic and genomic variation in the replicates began 2 weeks after cage founding and continued for a period of 10 total weeks and seven generations of evolution. Generation time estimates were produced using a degree-day model, a class of phenological models that uses accumulated heat exposure to compute a proxy of biological time (here, the number of generations between two timepoints), which often does not directly scale linearly with Julian day68. The degree-day model implemented here was specifically calibrated using published D. melanogaster developmental rate data69.

Population-wide pigmentation variation was quantified in our panel of inbred lines, the recombinant outbred population after four generations of expansion and recombination and the evolving replicate populations in the outdoor and indoor environments at weeks 4 and 10 (20 July and 1 September). To quantify evolved changes in pigmentation, eggs were collected overnight from all replicate cages (indoor/lab and outdoor/field), after which they were transferred to common garden conditions (25°C, 12 hours light:12 hours dark), where they were reared for two generations. After density control of F2 eggs (30 ± 5) in replicate vials, adult female abdominal pigmentation (n = 30 individuals per replicate) was scored as the proportion of pigmentation observed on tergites 5, 6, and 770. The sum of these scores across the three tergites provided the total pigmentation score for the assayed individual.

We quantified genome-wide allele frequencies weekly from weeks 3 to 10 in the outdoor environment, and at weeks 3, 4, and 10 in the indoor environment. At each collection point, eggs were collected overnight from each cage and then transferred to common garden conditions where larval development took place. One hundred random females of the eclosed adult cohort from each replicate cage were then collected and stored separately in ethanol at −20°C for later DNA extraction and sequencing (next section).

At the week 4 and 10 sampling points, we conducted a tail-based mapping of pigmentation variation for each mapping population. Specifically, we first quantified pigmentation variation within each treatment using a random sample of 100 F2 females (3 to 6 days after eclosion)70. Then, for each replicate across both environments, we segregated individuals into one of three trait value groups: (i) those exhibiting pigmentation within the lower (lightest) 15% of the population-wide phenotypic distribution, (ii) those exhibiting pigmentation within the upper (darkest) 15% of the trait distribution, and (iii) a random sample from those representative of the midpoint (~35th to 65th percentile) of the trait distribution. Seventy-five individuals from each trait value group and replicate were then stored in ethanol at −20°C for later DNA extraction and sequencing. In total, this resulted in 120 samples available for mapping: three trait value groups across 10 replicate cages in each of two environments and sampled at two time points.

Sequencing and allele frequency estimation

Genomic DNA was extracted for both mesocosm time-series and trait-mapping samples using NEB’s Monarch DNA kit. After sample QC by NanoDrop and Qubit, whole-genome libraries were constructed using an Illumina DNA prep kit. Each sample was sequenced to an equal coverage of 8x using Illumina NovaSeq 6000. From the resulting sequencing data, we generated haplotype-informed allele frequencies using previously described methods40, 71. In brief, we computed allele frequencies at sites previously identified in the genome sequences of each founding inbred strain using an expectation-maximization algorithm that estimates haplotype frequencies in a pooled sample of mapped sequencing reads. Haplotype inference was conducted in window sizes that varied proportionally to the length of unrecombined haplotype blocks expected as a function of the estimated number of generations since original inbred line outbreeding71. Notably, given our empirical coverage of 8x and this haplotype-aware based method of allele frequency computation, our allele frequency estimates are of the accuracy expected from sequencing at ~200x coverage and using standard pooled sequencing methodology40, 41. After filtering sites to those with an average minor allele frequency of ≥0.02 in the founder population and present in at least one evolved sample at a minor allele frequency of ≥0.01, we retained 1.9 million SNPs for analysis.

Genome-wide patterns of variation across environments and throughout evolution

All data analysis was performed in R72. We first interrogated our haplotype frequencies derived throughout the experiment to quantify whether there existed skew in the contribution of specific inbred lines to the outbred population used in founding our mesocosm cage replicates. Specifically, we evaluated derived haplotype frequencies within our founding population, as well as the samples collected throughout the progression of evolution in our mesocosm cages. We used Shannon’s evenness, an ecological metric for the distributional uniformity of individuals among species within natural communities, to quantify skew in the contribution of specific founder haplotypes to the derived outbred population (here, haplotypes are analogous to species and observed frequencies to the relative abundance of each haplotype within the outbred population). We found an observed evenness value of 0.97 (maximum value 1), indicating only a 3% reduction in abundance equality relative to what would be expected under purely uniform haplotype abundance in our outbred population. This evenness is then visualized as the rank order of haplotype frequencies both in our founding baseline population, as well as the evolved populations sampled throughout the course of the experiment (figs. S1 and S2).

We then assessed genome-wide patterns of variation across all samples used in trait mapping using PCA (prcomp function, R) and normalized allele frequency data across all 1.9 million SNPs. We projected samples onto the first two principal components and visualized the data by shaping and coloring points according to different underlying variables (e.g., trait value group, treatment) to infer which variables may dominate variance in allele frequencies across samples. We quantified whether samples segregated along the first two principal components in accordance with trait value group or environment using linear regression and ANOVA, respectively.

Ancestry-informed association analysis of pigmentation variation

Our general approach to mapping pigmentation was to identify SNPs harboring alleles with systematic frequency changes across the light, midpoint, and dark trait value groups. First, however, it was important to consider that owing to the finite number of haplotypes from the founding inbred lines used to derive our outbred population, a significant association between a SNP and trait value group could indicate its biological impact on pigmentation variation and/or its inbred-line ancestry. This effect could appear at the level of entire chromosomes as a result of long-range patterns of linkage, as well as more locally around causal loci. We quantified the magnitude of this effect genome-wide by computing the average contribution of haplotypes coming from each inbred line to each trait value group (i.e., the difference in haplotype frequency between the light and dark tails) and quantified the relationship of this value with the pigmentation score of each inbred line using linear regression and Pearson’s correlation coefficient. Lines that significantly contributed to this relationship were determined by an elimination method, where inbred lines were excluded from the regression analysis in order of magnitude of color fraction enrichment. Any lines eliminated prior to the P value of the regression coefficient dipping below 0.05 were considered to be significantly associated with color fraction differences.

We interrogated the effect of linkage on SNP mapping further by running two GLMs (both with logistic link function and quasibinomial error variance). The first model only took into consideration the impact of trait value group on variation in allele frequencies (model formula: allele frequency ~ trait value; where allele frequencies are normalized by the SNP’s effective coverage and the total number of chromosomes sampled, and trait value is either 0, 1, or 2, where 0 is dark, 1 is midpoint, and 2 is light). If the effects of ancestry on SNP association were pervasive, SNPs identified through this approach would be enriched in those SNPs expected to have elevated light versus dark frequency differences based on their association with particular haplotypes alone. To test this, we selected the top 1% of the SNPs (based on nominal P value from the GLM) and calculated their expected frequency difference between light and dark color fractions based on estimates of the average contribution of each inbred line to that sample and the association between that SNP and inbred line. We then compared these results to a separate GLM in which the haplotypic ancestry was accounted for (model formula: allele frequency ~ trait value + ancestry-predicted frequency). This second model then regressed allele frequencies both on pigmentation trait value, as well as each SNP’s expected frequency in the sample, calculated using the sum of average genome-wide haplotype frequencies from lines that possess the alternative allele. In accordance with the previous ancestry-agnostic model, we used a logistic link function and quasibinomial error variance, and allele frequencies were weighted to account for variation in coverage and the finite number of chromosomes sampled. Both models treated allele frequency data across replicate populations as independent, technical observations in order to identify trait associations that are robust to unmodeled replicate-level variance. We then compared the density distributions of expected light-dark frequency differences for SNPs identified through each of these distinct models using a Kolmogorov-Smirnov test.

After GLM structure selection, we used permutations to define a final set of trait-associated SNPs. Specifically, we randomly shuffled trait value data and reconducted our regressions 100 total times to generate an empirical null distribution. We then considered a SNP significant if its nominal P value from the empirical GLM fell in the upper 99.95th percentile of significance in the permuted P value distribution (corresponding to an empirical FDR threshold of 0.05%).

The set of pigmentation-associated SNPs identified by GLM was then used to quantify the number and distribution of unlinked loci underpinning trait variation. We developed an iterative procedure for this, whereby we first identified the most significant SNP on each chromosomal arm, as well as its surrounding locally unrecombined region [defined by the recombination rate and number of generations since cage founding40]. We then eliminated all trait-associated SNPs on the chromosomal arm (i.e., those with a significant GLM P value) whose relative presence in the light and dark fractions can be explained by haplotype frequencies (i.e., ancestry) in the locally unrecombined focal region alone. As the significance of these SNPs could be driven either by linkage to the focal top SNP or by variation in the trait itself, we eliminated these and defined the trait-associated locus as the locally unrecombined region (quantified using the number of generations since founder line outbreeding and genome-wide recombination rates) around the lowest P value SNP. The specific threshold used in SNP elimination was the top 10% most “light” predicted SNPs and the top 10% most “dark” predicted SNPs. This threshold was defined via permutations: we iteratively subset the 10 replicates into two equal subsets (N= 5). In one subset, termed “real-data,” light-dark haplotype frequency differences within the focal region were computed as above. In the other subset, the dark-light haplotype frequency difference was calculated (i.e., termed “sign-flipped” data). In each subset, we sequentially eliminated percentiles of SNPs starting with the top and bottom 2.5% of expected light-dark frequency differences and selected our threshold as the percentile at which the number of true significant SNPs eliminated in the real data matched that of the sign-flipped data (fig. S26). From the set of remaining SNPs (those not eliminated in the first iteration), we identified the SNP with the most significant nominal P value and repeated the procedure. This was iterated until we exhausted all trait-associated SNPs on the chromosome. For each chromosomal arm, we then quantified how the number of trait-associated SNPs decreased as a function of these iterations (fig. S27). Finally, we merged all loci with overlapping breakpoints to procure a final set of unlinked and independent trait-associated loci. A visualization of this clustering procedure is presented as fig. S11.

We additionally explored which candidate genes may be underlying the identified loci. Specifically, we identified genes within each locus with a gene ontology term associated with pigmentation (excluding eye pigmentation) or cuticle development/molting. For each of the identified genes, we then quantified whether the number of pigmentation-associated SNPs within the gene (identified through mapping) was greater than expected based on their genome-wide abundance using a binomial test with a Benjamini-Yekutieli FDR correction.

Power simulations of highly replicated, tail-based mapping

We evaluated the power of our tail-based mapping using a series of simulations in the forward-in-time population genetic simulator, SLiM73. We specifically aimed to assess the power of our study design to detect loci of a range of empirically informed effect sizes and how our study’s power specifically compares to more standard, individual-level GWAS approaches (e.g., using lines available from the Drosophila Genetics Reference Panel). The universal variables established and held constant across this first set of simulations were as follows: 10 quantitative trait loci spread across a 20-Mb chromosome, each of which was separated by at least 1 Mb from adjacent loci. The loci were assigned a range of effect sizes, which, in SLiM, are encoded as the percentage of variance explained (PVE), to determine the effect of an allele on the complex phenotype. We evaluated PVEs ranging from 0.0001 to 0.05, which represented the range of detection limits (from undetectable to detected in 100% of simulation scenarios) for both the tail-based and individual-level GWAS approaches. Our 10 modeled loci account for ~10% of the genetic variation, so the remaining ~90% of genetic variation and its contribution to a fly’s phenotypic value is modeled as a simple random variable for each individual. The environmental variance and genetic variance encoded into the model simulations were determined empirically and based on quantification of pigmentation in the focal inbred line panel used in this study: The environmental variance is the square of the average standard deviation of pigmentation within individual inbred lines (SD ≈ 1.24); the genetic variance is half the square of the standard deviation of pigmentation across inbred lines (SD ≈ 5.07), reflecting the twofold inflation of among-line variance in fully inbred lines relative to the outbred population. From these values, we computed the broad-sense heritability of pigmentation to be ~0.89.

We then determined our power to identify the simulated trait loci using a replicated, tail-based approach as conducted in this experiment, as well as an individual-level GWAS using inbred lines, a common approach to complex trait mapping in D. melanogaster. Simulations of the tail-based approach were carried out identically to our experimental methodology: We initiated simulations with 76 haplotypes each randomly assigned a presence/absence of the causal allele at each of the 10 trait-associated loci (the number of lines possessing each causal allele ranged across simulations to quantify the impact of causal allele frequency on locus identification). Twenty individuals from each line were then mixed and allowed to reproduce and expand for four generations to a population size of 20,000. At this stage, sets of 1000 individuals were randomly selected to serve as the founding population for a set of replicate populations, which were then each allowed to evolve and expand to a size of 50,000 over the course of eight additional generations under a Wright-Fisher model of evolution. The population sizes were determined empirically from census counts throughout the experiment. After this burn-in period, 1500 individuals were randomly selected per replicate population, their pigmentation computed (by summing the number of causal loci each individual harbored and their relative effect sizes while accounting for the environmental and genetic noise), and then segregated into the 15% darkest, the 15% lightest, and midpoint of the trait value distribution. As with our experimental design, 75 individuals per trait value group and replicate were randomly selected and used to compute the allele frequencies. These data were then used to map the association between each SNP and trait value group using a GLM with quasibinomial error variance structure. These simulations were conducted over a range of replicate population numbers (from 1 to 10), allowing us to develop an intuition regarding how the power of this approach scales with biological replication, as well as over a range of minor allele frequencies at causal loci, ranging from rare to common (0.02, 0.05, 0.1, 0.2, and 0.3).

We next evaluated the detection power of the same set of simulated loci using the more common approach of individual-level, inbred line GWAS. As above, each inbred line simulated for the GWAS was assigned the presence/absence of each causal allele, and its pigmentation determined based on the sum of the presence of causal alleles and their relative effect sizes. Twenty individuals were phenotyped per GWAS line, and the mean of these individuals’ pigmentation scores was used as the phenotypic value for the inbred line. This level of replication was chosen to mirror the replication in a previous work36, in which the authors phenotyped 10 females per line. To be conservative with our comparison, we doubled the number of individuals phenotyped. Mapping was then conducted using a simple linear model regressing phenotype on genotype (0 for non-carriers of causal allele, and 2 for carriers). We evaluated GWAS mapping power over a range of sample sizes (from 200 to 1000 inbred lines) and, as above, over a range of minor allele frequencies at causal loci (0.02, 0.05, 0.1, 0.2, and 0.3).

We performed an additional set of simulations using haplotype data from our 76 inbred lines to more precisely mirror our mapping approach and better quantify the effect of linked neutral variation on trait-SNP associations. Specifically, we initialized simulations using our founder .vcf file, from which we imputed missing genotypes using Beagle v. 5.5, without an external reference panel and retaining the program’s default model parameters74. To reduce computational load in the forward simulations, we thinned the imputed biallelic SNPs to a minimum intermarker spacing of 1.2 Kb using VCFtools75, yielding 91,879 SNPs genome-wide across chromosome arms 2L, 2R, 3L, 3R, and X. We used recombination maps with one recombination event per 100-Kb window76. We monitored variation across all chromosomal arms and, for each of 138 independent simulations, we randomly designated a set of 100 loci as causal. We encoded each of these causal loci with an effect size (PVE), the distribution of which was as follows: three loci with PVE = 0.05, five with PVE = 0.02, 10 with PVE = 0.01, 20 with PVE = 0.007, 25 with PVE = 0.005, 30 with PVE = 0.003, and 45 with PVE = 0.002. The remaining genetic variance was then provided by 98 loci with a PVE of 0.001. We permitted any locus with an allele frequency between 0.05 and 0.95 to be selected as causal. Additionally, 200 neutral control loci were randomly selected, which were similarly restricted to alleles with a frequency between 0.05 and 0.95. We then replicated our empirical mapping approach (see above), running a GLM of the form allele frequency ~ trait value + ancestry-predicted frequency, and determined genome-wide haplotype frequencies as follows: We seeded evenly spaced markers at every megabase, resulting in ~118 markers across the genome. The frequency of these haplotype-unique markers allows us to estimate the genome-wide frequencies of the starting haplotypes. Power in this case is defined as the proportion of loci for each effect size bin and across all simulations that exhibited a P value at or below our empirical FDR cutoff (<0.05%) determined by mapping in our week 10 outdoor populations. The false positive rate was determined by the proportion of the 200 neutral loci that reached our significance threshold. We then compared the power of this set of simulations to the set of simulations produced under different scenarios of individual-level inbred line GWAS, as described above, though this time seeding loci into the GWAS inbred lines at the same frequency as they were observed in the data from the 76 haplotypes used here. No control loci were seeded into the GWAS lines, so FDR was calculated through permutations, and as expected, was exactly at the empirical FDR cutoff.

Comparison of mapping to previous association studies

We leveraged results reported by two previous genome-wide association studies35, 36 to quantify the consistency of mapping of pigmentation across disparate populations and studies. In brief, Bastide et al.35 conducted a pooled-GWAS approach using wild populations of D. melanogaster from Austria and Italy and focused on female pigmentation on tergite 7. Dembeck et al.36 conducted a GWAS using individual D. melanogaster lines from the Drosophila Genetics Reference Panel77, focusing on pigmentation variation of tergites 5 and 6. We evaluated whether all SNPs identified as trait-associated in Dembeck et al.36 and the top 100 SNPs from Bastide et al.35 exhibited more overlap with our unlinked loci than expected by chance. Specifically, we compared the number of SNPs falling within each locus with a random set of SNPs within the chromosome of the same test set size as those obtained from the comparison studies. We iterated this process 1000 times and generated an empirical P value given the observed overlap, relative to the randomly generated 1000 overlaps. We then reconducted this analysis but excluded those within loci containing tan, ebony, and bab to infer the extent to which shared signal across studies was driven by these large-effect genes.

Predicting evolution using mapping results

We assessed the predictability of the architecture of adaptation by quantifying whether mapped SNPs associated with lighter pigmentation increased in frequency as the experimental populations evolved to become lighter. Specifically, we computed the frequency shifts for all light-associated alleles at pigmentation-associated SNPs during the period over which lighter pigmentation evolved in the outdoor mesocosm, separately for each of the unlinked, trait-associated loci. We compared the resulting distribution to one derived through a set of matched control SNPs [matched on chromosome and starting frequency (±2.5%), and excluding those SNPs within 500 kb of the respective target SNP] using a two-sided binomial test. The P values from these tests were corrected for multiple hypothesis testing by Benjamini-Yekutieli correction. In effect, we quantified whether the proportion of light-associated SNPs within each locus shifting in a manner concordant with that predicted by mapping (i.e., increasing in frequency as lighter pigmentation evolved) was significantly greater than expected based on our matched control distribution.

We then compared how our genomic predictions of trait evolution differed between the seminatural outdoor mesocosms and relatively simple indoor environment. First, we quantified the trajectory of trait-associated SNPs (identified in our outdoor, week 10 mapping population) separately in the outdoor and indoor mesocosms throughout the period of lighter pigmentation evolution (weeks 3 through 10). We compared each resulting distribution with a set of matched control SNPs using a binomial test to infer whether the direction and magnitude of light-favored allele frequency shifts exceeded background allele frequency movement. This analysis was then reconducted separately for SNPs within each of the top loci on chromosomal arms 2L and 2R, as well as the loci containing the genes bab, ebony, and tan on chromosomal arms 3L, 3R, and X, respectively. Furthermore, the distribution of trait-associated SNP trajectories throughout trait evolution within each environment was compared directly with each other using a pairwise t test.

Finally, we generated genomic predictions of trait evolution using an approach that explicitly accounted for the observed effect size of each SNP on trait variation observed through mapping. Specifically, we summed the frequency shifts of light-associated alleles, this time weighting each allele’s shift by the associated SNP’s GLM regression coefficient. This summation then represents a genomic prediction of relative phenotypic shift in population pigmentation based on our genotype-phenotype map, whereby positive values indicate the evolution of lighter pigmentation and negative values, darker pigmentation. We bootstrapped these estimates 1000 times, and their significance was then assessed using Z-scores computed through a comparison of the estimate to a distribution generated from 1000 matched control SNP sets (matched on chromosome and starting frequency) that did not display evidence of a significant pigmentation association in our mapping. We considered the empirical, bootstrapped value significant if its confidence intervals did not overlap with the matched control distribution.

Stability of mapping throughout evolution and across environments of selection

We determined the stability of the genotype-phenotype map across independent mapping populations (i.e., each mapping environment and time point) using several approaches. First, we reconducted our mapping procedure, as described above, for the indoor weeks 4 and 10 as well as the outdoor week 4 mapping population. Next, we asked whether the proximity of loci identified across mapping populations was more similar than expected by chance. To address this, for each of the four genotype-phenotype maps we identified the top SNP of each locus (the SNP with the lowest P value, and also the locus midpoint) and summed the number of times it fell within a locus identified in one of the independent mapping populations. This then produced a score, ranging from 0 to 3, for each locus and these scores were summed across all loci to produce an empirical overlap score for each mapping population (note that to increase power of this analysis, we selected focal SNPs using the set of premerged loci for each mapping population). To determine whether the observed overlaps were greater than expected by chance, we generated an empirical null distribution by random sampling of sets of SNPs for each genotype-phenotype map and recomputing overlap scores with each independent mapping (a procedure iterated 2000 times for each of the four genotype-phenotype maps). We then interrogated whether the distance between locus-defining midpoint SNPs across sets of loci was closer than expected by chance. Specifically, as before, we first identified the top SNPs for each set of loci from every genotype-phenotype map and then computed its distance to the closest top SNP of each of the remaining three mappings. This distance metric was averaged to produce an average proximity score which, as above, was compared with a distribution of scores derived from a random set of SNPs (2000 times).

We next aimed to quantify the extent to which the identity of specific pigmentation-associated SNPs was shared across independent mapping populations. To do so, we compared the overlap in identified SNPs within and between independent mapping populations. To conduct this analysis in a balanced manner (i.e., compare sets of SNPs identified using the same number of replicate populations), we iteratively subset our set of 10 replicates from each mapping population into groups of five replicates and identified pigmentation associated SNPs in each subset using the ancestry-informed regression introduced above. This was iterated with each possible combination of subset replicates, yielding 126 total sets of significant SNPs per mapping population. The percentage of shared SNPs was then calculated for subsets of the same mapping population (e.g., overlap between pigmentation-associated SNPs identified using different subsets of five replicate populations from the outdoor week 10 replicates) and compared with those observed between independent mapping populations (e.g., overlap between sets of pigmentation associated SNPs identified using five replicate populations from outdoor week 10 replicates and sets of SNPs from independent treatment and/or time point). Whether the amount of overlap in identified SNPs within versus between mapping populations differed was evaluated with a planned contrast using a one-way ANOVA model.

We next sought to quantify whether there existed mapped loci with environment-specific marginal effects on pigmentation variation. Accordingly, we first isolated those loci from the outdoor and indoor week 10 mapping populations that had nonoverlapping breakpoints with any of the loci in the opposing environments (n = 13 total unique outdoor loci, and n = 13 total unique indoor loci). We then identified all pigmentation-associated SNPs within each unique locus and quantified the light-dark frequency difference for the light-associated allele for the environment in which it was identified, as well as the environment that did not contain the locus. Evidence for environment-specific marginal effects of each locus was then determined by comparing the distribution of light-dark frequency shifts for each locus between environments (using a Wilcoxon signed-rank test), as well as to a distribution derived from an equally sized set of matched control SNPs (using a Mann-Whitney U test).

Finally, we sought to determine whether genotype-phenotype maps produced at a particular point in evolution, and within a particular environment of selection, could correctly predict phenotypes of individuals sampled at an independent time and environment. To do so, we used those SNPs identified in our outdoor week 10 mapping and calculated the relative expected phenotypic score for trait value groups (e.g., light, midpoint, and dark color fractions) within this focal mapping, as well as all remaining, independent mapping populations. Specifically, for each light-associated allele at all pigmentation-associated SNPs, we calculated the difference in frequency between the baseline population and each pooled sample. This allele frequency difference was weighted in accordance with the SNP’s effect size on trait variation as computed through mapping (i.e., by multiplying the light-favored allele frequency change by the regression coefficient from the ancestry-informed GLM). These values were then summed across all SNPs for each sample, providing a metric of the relative lightness of the sample, as predicted by mapping (values greater than zero indicating lighter pigmentation and less than zero darker). We then bootstrapped this value 1000 times for each sample. The accuracy of relative predicted phenotypic scores was then evaluated using three criteria: (i) whether the dark samples had, on average, predicted phenotypic values below 0; (ii) whether the light samples had, on average, predicted phenotypic values above 0; and (iii) whether there existed a significant linear association between trait value group and relative predicted phenotypic value. The latter was tested using a simple linear regression of trait value group on phenotypic prediction, where trait value groups were assigned a numeric value (dark = 0, midpoint = 1, and light = 2).

Author contributions:

Conceptualization: M.C.B., D.A.P., P.S.; Experimental methodology: J.A.S.-R., M.C.B., S.B., J.B., D.A.P., P.S.; Formal analysis: M.C.B., J.A.S.-R.; Writing – original draft: M.C.B., J.A.S.-R., D.A.P., P.S.; Writing – review & editing: All authors.

References

  1. Z. D. Blount, R. E. Lenski, J. B. Losos, Contingency and determinism in evolution: Replaying life’s tape. Science 362, eaam5979 (2018). Source
  2. M. T. Wortel, D. Agashe, S. F. Bailey, C. Bank, K. Bisschop, T. Blankers, J. Cairns, E. S. Colizzi, D. Cusseddu, M. M. Desai, B. van Dijk, M. Egas, J. Ellers, A. T. Groot, D. G. Heckel, M. L. Johnson, K. Kraaijeveld, J. Krug, L. Laan, M. Lässig, P. A. Lind, J. Meijer, L. M. Noble, S. Okasha, P. B. Rainey, D. E. Rozen, S. Shitut, S. J. Tans, O. Tenaillon, H. Teotónio, J. A. G. M. de Visser, M. E. Visser, R. M. A. Vroomans, G. D. A. Werner, B. Wertheim, P. S. Pennings, Towards evolutionary predictions: Current promises and challenges. Evol. Appl. 16, 3–21 (2022). Source
  3. P. F. Colosimo, K. E. Hosemann, S. Balabhadra, G. Villarreal, M. Dickson, J. Grimwood, J. Schmutz, R. M. Myers, D. Schluter, D. M. Kingsley, Widespread parallel evolution in sticklebacks by repeated fixation of ectodysplasin alleles. Science 307, 1928–1933 (2005). Source
  4. N. S. Enattah, T. G. K. Jensen, M. Nielsen, R. Lewinski, M. Kuokkanen, H. Rasinpera, H. el-Shanti, J. K. Seo, M. Alifrangis, I. F. Khalil, A. Natah, A. Ali, S. Natah, D. Comas, S. Q. Mehdi, L. Groop, E. M. Vestergaard, F. Imtiaz, M. S. Rashed, B. Meyer, J. Troelsen, L. Peltonen, Independent introduction of two lactase-persistence alleles into human populations reflects different history of adaptation to milk culture. Am. J. Hum. Genet. 82, 57–72 (2008). Source
  5. H. E. Hoekstra, R. J. Hirschmann, R. A. Bundey, P. A. Insel, J. P. Crossland, A single amino acid mutation contributes to adaptive beach mouse color pattern. Science 313, 101–104 (2006). Source
  6. A. E. van ‘t Hof, P. Campagne, D. J. Rigden, C. J. Yung, J. Lingley, M. A. Quail, N. Hall, A. C. Darby, I. J. Saccheri, The industrial melanism mutation in British peppered moths is a transposable element. Nature 534, 102–105 (2016). Source
  7. K. Kunte, W. Zhang, A. Tenger-Trolander, D. H. Palmer, A. Martin, R. D. Reed, S. P. Mullen, M. R. Kronforst, Doublesex is a mimicry supergene. Nature 507, 229–232 (2014). Source
  8. N. J. Nadeau, C. Pardo-Diaz, A. Whibley, M. A. Supple, S. V. Saenko, R. W. R. Wallbank, G. C. Wu, L. Maroja, L. Ferguson, J. J. Hanly, H. Hines, C. Salazar, R. M. Merrill, A. J. Dowling, R. H. ffrench-Constant, V. Llaurens, M. Joron, W. O. McMillan, C. D. Jiggins, The gene cortex controls mimicry and crypsis in butterflies and moths. Nature 534, 106–110 (2016). Source
  9. R. D. Reed, R. Papa, A. Martin, H. M. Hines, B. A. Counterman, C. Pardo-Diaz, C. D. Jiggins, N. L. Chamberlain, M. R. Kronforst, R. Chen, G. Halder, H. F. Nijhout, W. O. McMillan, optix Drives the repeated convergent evolution of butterfly wing pattern mimicry. Science 333, 1137–1141 (2011). Source
  10. G. Sella, N. H. Barton, Thinking about the evolution of complex traits in the era of genome-wide association studies. Annu. Rev. Genomics Hum. Genet. 20, 461–493 (2019). Source
  11. P. M. Visscher, N. R. Wray, Q. Zhang, P. Sklar, M. I. McCarthy, M. A. Brown, J. Yang, 10 Years of GWAS discovery: Biology, function, and translation. Am. J. Hum. Genet. 101, 5–22 (2017). Source
  12. T. F. C. Mackay, R. R. H. Anholt, Pleiotropy, epistasis and the genetic architecture of quantitative traits. Nat. Rev. Genet. 25, 639–657 (2024). Source
  13. B. Walsh, M. W. Blows, Abundant Genetic Variation + Strong Selection = Multivariate Genetic Constraints: A geometric view of adaptation. Annu. Rev. Ecol. Evol. Syst. 40, 41–59 (2009). Source
  14. E. I. Svensson, S. J. Arnold, R. Bürger, K. Csilléry, J. Draghi, J. M. Henshaw, A. G. Jones, S. de Lisle, D. A. Marques, K. McGuigan, M. N. Simon, A. Runemark, Correlational selection in the age of genomics. Nat. Ecol. Evol. 5, 562–573 (2021). Source
  15. M. A. Albecker, T. B. Bittar, G. C. Trussell, K. E. Lotterhos, A quantitative survey of cogradient and countergradient variation in nature. Am. Nat. 206, 385–402 (2025). Source
  16. D. O. Conover, E. T. Schultz, Phenotypic similarity and the evolutionary significance of countergradient variation. Trends Ecol. Evol. 10, 248–252 (1995). Source
  17. L. Duncan, H. Shen, B. Gelaye, J. Meijsen, K. Ressler, M. Feldman, R. Peterson, B. Domingue, Analysis of polygenic risk score usage and performance in diverse human populations. Nat. Commun. 10, 3328 (2019). Source
  18. W. Huang, S. Richards, M. A. Carbone, D. Zhu, R. R. H. Anholt, J. F. Ayroles, L. Duncan, K. W. Jordan, F. Lawrence, M. M. Magwire, C. B. Warner, K. Blankenburg, Y. Han, M. Javaid, J. Jayaseelan, S. N. Jhangiani, D. Muzny, F. Ongeri, L. Perales, Y. Q. Wu, Y. Zhang, X. Zou, E. A. Stone, R. A. Gibbs, T. F. C. Mackay, Epistasis dominates the genetic architecture of Drosophila quantitative traits. Proc. Natl. Acad. Sci. U.S.A. 109, 15553–15559 (2012). Source
  19. P. C. Phillips, Epistasis—The essential role of gene interactions in the structure and evolution of genetic systems. Nat. Rev. Genet. 9, 855–867 (2008). Source
  20. F. Privé, H. Aschard, S. Carmi, L. Folkersen, C. Hoggart, P. F. O’Reilly, B. J. Vilhjálmsson, Portability of 245 polygenic scores when derived from the UK Biobank and applied to 9 ancestry groups from the same cohort. Am. J. Hum. Genet. 109, 12–23 (2022). Source
  21. Z. Guo, D. M. Tucker, C. J. Basten, H. Gandhi, E. Ersoz, B. Guo, Z. Xu, D. Wang, G. Gay, The impact of population structure on genomic prediction in stratified populations. Theor. Appl. Genet. 127, 749–762 (2014). Source
  22. K. Kosheleva, M. M. Desai, Recombination alters the dynamics of adaptation on standing variation in laboratory yeast populations. Mol. Biol. Evol. 35, 180–201 (2018). Source
  23. K. E. Lohmueller, The impact of population demography and selection on the genetic architecture of complex traits. PLOS Genet. 10, e1004379 (2014). Source
  24. A. R. Martin, C. R. Gignoux, R. K. Walters, G. L. Wojcik, B. M. Neale, S. Gravel, M. J. Daly, C. D. Bustamante, E. E. Kenny, Human demographic history impacts genetic risk prediction across diverse populations. Am. J. Hum. Genet. 100, 635–649 (2017). Source
  25. J. Novembre, N. H. Barton, Tread lightly interpreting polygenic tests of selection. Genetics 208, 1351–1355 (2018). Source
  26. R. A. Patel, S. A. Musharoff, J. P. Spence, H. Pimentel, C. Tcheandjieu, H. Mostafavi, N. Sinnott-Armstrong, S. L. Clarke, C. J. Smith, V. A. Million Veteran Program, P. P. Durda, K. D. Taylor, R. Tracy, Y. Liu, W. C. Johnson, F. Aguet, K. G. Ardlie, S. Gabriel, J. Smith, D. A. Nickerson, S. S. Rich, J. I. Rotter, P. S. Tsao, T. L. Assimes, J. K. Pritchard, Genetic interactions drive heterogeneity in causal variant effect sizes for gene expression and complex traits. Am. J. Hum. Genet. 109, 1286–1297 (2022). Source
  27. S. Yair, G. Coop, Population differentiation of polygenic score predictions under stabilizing selection. Philos. Trans. R. Soc. London Ser. B 377, 20200416 (2022). Source
  28. A. Durvasula, K. E. Lohmueller, Negative selection on complex traits limits phenotype prediction accuracy between populations. Am. J. Hum. Genet. 108, 620–631 (2021). Source
  29. R. Ottman, Gene–environment interaction: Definitions and study design. Prev. Med. 25, 764–770 (1996). Source
  30. C. Boye, S. Nirmalan, A. Ranjbaran, F. Luca, Genotype × environment interactions in gene regulation and complex traits. Nat. Genet. 56, 1057–1068 (2024). Source
  31. D. L. Des Marais, K. M. Hernandez, T. E. Juenger, Genotype-by-environment interaction and plasticity: Exploring genomic responses of plants to the abiotic environment. Annu. Rev. Ecol. Evol. Syst. 44, 5–29 (2013). Source
  32. M. C. Bitter, S. Greenblum, S. Rajpurohit, A. O. Bergland, J. A. Hemker, E. Lappo, N. J. Betancourt, S. Tilk, S. Berardi, H. Oken, P. Schmidt, D. A. Petrov, Pervasive fitness trade-offs revealed by rapid adaptation to shifting population densities in large experimental populations of Drosophila melanogaster. Ecol. Lett. 29, e70363 (2026). Source
  33. S. Berardi, J. A. Rhodes, M. C. Berner, S. I. Greenblum, M. C. Bitter, E. L. Behrman, N. J. Betancourt, A. O. Bergland, D. A. Petrov, S. Rajpurohit, P. Schmidt, Drosophila melanogaster pigmentation demonstrates adaptive phenotypic parallelism over multiple spatiotemporal scales. Evol. Lett. 9, 408–420 (2025). Source
  34. H. Bastide, J. D. Lange, J. B. Lack, A. Yassin, J. E. Pool, A variable genetic architecture of melanic evolution in Drosophila melanogaster. Genetics 204, 1307–1319 (2016). Source
  35. H. Bastide, A. Betancourt, V. Nolte, R. Tobler, P. Stöbe, A. Futschik, C. Schlötterer, A genome-wide, fine-scale map of natural pigmentation variation in Drosophila melanogaster. PLOS Genet. 9, e1003534 (2013). Source
  36. L. M. Dembeck, W. Huang, M. M. Magwire, F. Lawrence, R. F. Lyman, T. F. C. Mackay, Genetic architecture of abdominal pigmentation in Drosophila melanogaster. PLOS Genet. 11, e1005163 (2015). Source
  37. J. Massey, P. J. Wittkopp, The genetic basis of pigmentation differences within and between Drosophila species. Curr. Top. Dev. Biol. 119, 27–61 (2016). Source
  38. T. R. F. Wright, in Advances in Genetics, vol. 24 (Academic Press, 1987), pp. 127–222. Source
  39. E. L. Behrman, V. M. Howick, M. Kapun, F. Staubach, A. O. Bergland, D. A. Petrov, B. P. Lazzaro, P. S. Schmidt, Rapid seasonal evolution in innate immunity of wild Drosophila melanogaster. Proc. R. Soc. London Ser. B 285, 20172599 (2018). Source
  40. S. Tilk, A. Bergland, A. Goodman, P. Schmidt, D. Petrov, S. Greenblum, Accurate allele frequencies from ultra-low coverage pool-seq samples in evolve-and-resequence experiments. G3 9, 4159–4168 (2019). Source
  41. M. C. Bitter, S. Berardi, H. Oken, A. Huynh, E. Lappo, P. Schmidt, D. A. Petrov, Continuously fluctuating selection reveals fine granularity of adaptation. Nature 634, 389–396 (2024). Source
  42. S. M. Rudman, S. I. Greenblum, S. Rajpurohit, N. J. Betancourt, J. Hanna, S. Tilk, T. Yokoyama, D. A. Petrov, P. Schmidt, Direct observation of adaptive tracking on ecological time scales in Drosophila. Science 375, eabj7484 (2022). Source
  43. S. Rajpurohit, R. Richardson, J. Dean, R. Vazquez, G. Wong, P. S. Schmidt, Pigmentation and fitness trade-offs through the lens of artificial selection. Biol. Lett. 12, 20160625 (2016). Source
  44. A. D. Long, K. M. Hanson, S. J. Macdonald, The illusion of polygenicity in pool-seq genetic mapping studies: Insufficient power can mask simple genetic architectures. Genetics 233, iyag068 (2026). Source
  45. R. D. Bickel, A. Kopp, S. V. Nuzhdin, Composite effects of polymorphisms near multiple regulatory elements create a major-effect QTL. PLOS Genet. 7, e1001275 (2011). Source
  46. S. Jeong, M. Rebeiz, P. Andolfatto, T. Werner, J. True, S. B. Carroll, The evolution of gene regulation underlies a morphological difference between two Drosophila sister species. Cell 132, 783–793 (2008). Source
  47. J. E. Pool, C. F. Aquadro, The genetic basis of adaptive pigmentation variation in Drosophila melanogaster. Mol. Ecol. 16, 2844–2851 (2007). Source
  48. K. Kuchenbaecker, G. Navoly, Ancestral diversity in complex disease genetics: From discovery to translation. Nat. Rev. Genet. 27, 405–419 (2026). Source
  49. A. Akbari, A. R. Barton, S. Gazal, Z. Li, M. Kariminejad, A. Perry, Y. Zeng, A. Mittnik, N. Patterson, M. Mah, X. Zhou, A. L. Price, E. S. Lander, R. Pinhasi, N. Rohland, S. Mallick, D. Reich, Pervasive findings of directional selection realize the promise of ancient DNA to elucidate human adaptation. bioRxiv 2024.09.14.613021 [Preprint] (2024). Source
  50. S. L. Cox, C. B. Ruff, R. M. Maier, I. Mathieson, Genetic contributions to variation in human stature in prehistoric Europe. Proc. Natl. Acad. Sci. U.S.A. 116, 21484–21492 (2019). Source
  51. I. Mathieson, I. Lazaridis, N. Rohland, S. Mallick, N. Patterson, S. A. Roodenberg, E. Harney, K. Stewardson, D. Fernandes, M. Novak, K. Sirak, C. Gamba, E. R. Jones, B. Llamas, S. Dryomov, J. Pickrell, J. L. Arsuaga, J. M. B. de Castro, E. Carbonell, F. Gerritsen, A. Khokhlov, P. Kuznetsov, M. Lozano, H. Meller, O. Mochalov, V. Moiseyev, M. A. R. Guerra, J. Roodenberg, J. M. Vergès, J. Krause, A. Cooper, K. W. Alt, D. Brown, D. Anthony, C. Lalueza-Fox, W. Haak, R. Pinhasi, D. Reich, Genome-wide patterns of selection in 230 ancient Eurasians. Nature 528, 499–503 (2015). Source
  52. D. Godt, J. L. Couderc, S. E. Cramton, F. A. Laski, Pattern formation in the limbs of Drosophila: bric à brac is expressed in both a gradient and a wave-like pattern and is required for specification and proper segmentation of the tarsus. Development 119, 799–812 (1993). Source
  53. D. Godt, F. A. Laski, Mechanisms of cell rearrangement and cell recruitment in Drosophila ovary morphogenesis and the requirement of bric à brac. Development 121, 173–187 (1995). Source
  54. S. D. Castro, F. Peronnet, J. F. Gilles, E. Mouchel-Vielh, J. M. Gibert, bric à brac (bab), a central player in the gene regulatory network that mediates thermal plasticity of pigmentation in Drosophila melanogaster. PLOS Genet. 14, e1007573 (2018). Source
  55. A. Kopp, I. Duncan, S. B. Carroll, Genetic control and evolution of sexually dimorphic characters in Drosophila. Nature 408, 553–559 (2000). Source
  56. S. Hu, L. A. F. Ferreira, S. Shi, G. Hellenthal, J. Marchini, D. J. Lawson, S. R. Myers, Fine-scale population structure and widespread conservation of genetic effect sizes between human groups across traits. Nat. Genet. 57, 379–389 (2025). Source
  57. H. Mostafavi, A. Harpak, I. Agarwal, D. Conley, J. K. Pritchard, M. Przeworski, Variable prediction accuracy of polygenic scores within an ancestry group. eLife 9, e48376 (2020). Source
  58. N. Barghi, R. Tobler, V. Nolte, A. M. Jakšić, F. Mallard, K. A. Otte, M. Dolezal, T. Taus, R. Kofler, C. Schlötterer, Genetic redundancy fuels polygenic adaptation in Drosophila. PLOS Biol. 17, e3000128 (2019). Source
  59. S. Yeaman, Evolution of polygenic traits under global vs local adaptation. Genetics 220, iyab134 (2022). Source
  60. Á. J. Láruson, S. Yeaman, K. E. Lotterhos, The importance of genetic redundancy in evolution. Trends Ecol. Evol. 35, 809–822 (2020). Source
  61. J. K. Beltz, M. C. Bitter, A. Goldfischer, D. A. Petrov, P. Schmidt, Variation in resource environment drives adaptive divergence in Drosophila melanogaster. bioRxiv 2024.12.10.626603 [Preprint] (2024). Source
  62. J. L. Couderc, D. Godt, S. Zollman, J. Chen, M. Li, S. Tiong, S. E. Cramton, I. Sahut-Barnola, F. A. Laski, The bric à brac locus consists of two paralogous genes encoding BTB/POZ domain proteins and acts as a homeotic and morphogenetic regulator of imaginal development in Drosophila. Development 129, 2419–2433 (2002). Source
  63. D. O. Conover, T. A. Duffy, L. A. Hice, The covariance between genetic and environmental influences across ecological gradients. Ann. N. Y. Acad. Sci. 1168, 100–129 (2009). Source
  64. P. I. W. de Bakker, N. P. Burtt, R. R. Graham, C. Guiducci, R. Yelensky, J. A. Drake, T. Bersaglieri, K. L. Penney, J. Butler, S. Young, R. C. Onofrio, H. N. Lyon, D. O. Stram, C. A. Haiman, M. L. Freedman, X. Zhu, R. Cooper, L. Groop, L. N. Kolonel, B. E. Henderson, M. J. Daly, J. N. Hirschhorn, D. Altshuler, Transferability of tag SNPs in genetic association studies in multiple populations. Nat. Genet. 38, 1298–1303 (2006). Source
  65. G. L. Brennan, N. Colegrave, S. Collins, Evolutionary consequences of multidriver environmental change in an aquatic primary producer. Proc. Natl. Acad. Sci. U.S.A. 114, 9930–9935 (2017). Source
  66. H. A. Orr, Adaptation and the cost of complexity. Evolution 54, 13–20 (2000). Source
  67. J. Bergelson, M. Kreitman, D. A. Petrov, A. Sanchez, M. Tikhonov, Functional biology in its natural context: A search for emergent simplicity. eLife 10, e67646 (2021). Source
  68. M. T. Kamiyama, B. Z. Bradford, R. L. Groves, C. Guédot, Degree day models to forecast the seasonal phenology of Drosophila suzukii in tart cherry orchards in the Midwest U.S. PLOS ONE 15, e0227726 (2020). Source
  69. E. L. Behrman, P. Schmidt, Seasonal selection reveals two independent temporal modes of genomic adaptation. bioRxiv 2022.10.27.514123 [Preprint] (2022). Source
  70. J. R. David, P. Capy, J. P. Gauthier, Abdominal pigmentation and growth temperature in Drosophila melanogaster: Similarities and differences in the norms of reaction of successive segments. J. Evol. Biol. 3, 429–445 (1990). Source
  71. D. Kessner, T. L. Turner, J. Novembre, Maximum likelihood estimation of frequencies of known haplotypes from pooled sequence data. Mol. Biol. Evol. 30, 1145–1158 (2013). Source
  72. R Core Team, R: A Language and Environment for Statistical Computing (R Foundation for Statistical Computing). Source
  73. B. C. Haller, P. W. Messer, SLiM 4: Multispecies eco-evolutionary modeling. Am. Nat. 201, E127–E139 (2023). Source
  74. B. L. Browning, X. Tian, Y. Zhou, S. R. Browning, Fast two-stage phasing of large-scale sequence data. Am. J. Hum. Genet. 108, 1880–1890 (2021). Source
  75. P. Danecek, A. Auton, G. Abecasis, C. A. Albers, E. Banks, M. A. DePristo, R. E. Handsaker, G. Lunter, G. T. Marth, S. T. Sherry, G. McVean, R. Durbin, 1000 Genomes Project Analysis Group, The variant call format and VCFtools. Bioinformatics 27, 2156–2158 (2011). Source
  76. J. M. Comeron, R. Ratnappan, S. Bailin, The many landscapes of recombination in Drosophila melanogaster. PLOS Genet. 8, e1002905 (2012). Source
  77. T. F. C. Mackay, S. Richards, E. A. Stone, A. Barbadilla, J. F. Ayroles, D. Zhu, S. Casillas, Y. Han, M. M. Magwire, J. M. Cridland, M. F. Richardson, R. R. H. Anholt, M. Barrón, C. Bess, K. P. Blankenburg, M. A. Carbone, D. Castellano, L. Chaboub, L. Duncan, Z. Harris, M. Javaid, J. C. Jayaseelan, S. N. Jhangiani, K. W. Jordan, F. Lara, F. Lawrence, S. L. Lee, P. Librado, R. S. Linheiro, R. F. Lyman, A. J. Mackey, M. Munidasa, D. M. Muzny, L. Nazareth, I. Newsham, L. Perales, L. L. Pu, C. Qu, M. Ràmia, J. G. Reid, S. M. Rollmann, J. Rozas, N. Saada, L. Turlapati, K. C. Worley, Y. Q. Wu, A. Yamamoto, Y. Zhu, C. M. Bergman, K. R. Thornton, D. Mittelman, R. A. Gibbs, The Drosophila melanogaster genetic reference panel. Nature 482, 173–178 (2012). Source
  78. J. A. Smiley-Rhodes, jrhodes613/PigMap2021: Release for Science publication, v0.1.1. Zenodo (2026). Source
  79. J. Smiley-Rhodes, M. Bitter, S. Berardi, J. Beltz, D. Petrov, P. Schmidt, Data for: Limited genomic predictability of complex trait evolution despite genotype-phenotype stability. Dryad (2026). Source
  80. T. M. Williams, J. E. Selegue, T. Werner, N. Gompel, A. Kopp, S. B. Carroll, The regulation and evolution of a genetic switch controlling sexually dimorphic traits in Drosophila. Cell 134, 610–623 (2008). Source
  81. J. M. Gibert, E. Mouchel-Vielh, S. D. Castro, F. Peronnet, Phenotypic plasticity through transcriptional regulation of the evolutionary hotspot gene tan in Drosophila melanogaster. PLOS Genet. 12, e1006218 (2016). Source
  82. J. M. Gibert, F. Peronnet, C. Schlötterer, Phenotypic plasticity in Drosophila pigmentation caused by temperature sensitivity of a chromatin regulator network. PLOS Genet. 3, e30 (2007). Source
  83. D. A. Kimbrell, E. Berger, D. S. King, W. J. Wolfgang, J. W. Fristrom, Cuticle protein gene expression during the third instar of Drosophila melanogaster. Insect Biochem. 18, 229–235 (1988). Source
  84. A. Kornezos, W. Chia, Apical secretion and association of the Drosophila yellow gene product with developing larval cuticle structures during embryogenesis. Mol. Gen. Genet. 235, 397–405 (1992). Source
  85. J. D. Baker, J. W. Truman, Mutations in the Drosophila glycoprotein hormone receptor, rickets, eliminate neuropeptide-induced tanning and selectively block a stereotyped behavioral program. J. Exp. Biol. 205, 2555–2565 (2002). Source
  86. E. M. Dewey, S. L. McNabb, J. Ewer, G. R. Kuo, C. L. Takanishi, J. W. Truman, H. W. Honegger, Identification of the gene encoding bursicon, an insect neuropeptide responsible for cuticle sclerotization and wing spreading. Curr. Biol. 14, 1208–1213 (2004). Source
  87. Q. Zhu, Y. Arakane, D. Banerjee, R. W. Beeman, K. J. Kramer, S. Muthukrishnan, Domain organization and phylogenetic analysis of the chitinase-like family of proteins in three species of insects. Insect Biochem. Mol. Biol. 38, 452–466 (2008). Source
  88. M. Y. Noh, S. Muthukrishnan, K. J. Kramer, Y. Arakane, A chitinase with two catalytic domains is required for organization of the cuticular extracellular matrix of a beetle. PLOS Genet. 14, e1007307 (2018). Source
  89. Y. Y. Pesch, D. Riedel, M. Behr, Drosophila Chitinase 2 is expressed in chitin producing organs for cuticle formation. Arthropod Struct. Dev. 46, 4–12 (2017). Source
  90. Y. Feng, X. Li, L. Ray, H. Song, J. Qu, S. Lin, X. Lin, The Drosophila tankyrase regulates Wg signaling depending on the concentration of Daxin. Cell. Signal. 26, 1717–1724 (2014). Source
  91. J. Y. Kim, O. Tsogtbaatar, K. O. Cho, Dynein heavy chain 64C differentially regulates cell survival and proliferation of wingless-producing cells in Drosophila melanogaster. J. Dev. Biol. 9, 43 (2021). Source
  92. A. K. Claudius, P. Romani, T. Lamkemeyer, M. Jindra, M. Uhlirova, Unexpected role of the steroid-deficiency protein ecdysoneless in pre-mRNA splicing. PLOS Genet. 10, e1004287 (2014). Source
  93. S. Erkelenz, D. Stanković, J. Mundorf, T. Bresser, A. K. Claudius, V. Boehm, N. H. Gehring, M. Uhlirova, Ecd promotes U5 snRNP maturation and Prp8 stability. Nucleic Acids Res. 49, 1688–1707 (2021). Source