Abstract
Evolutionary feedbacks occur when evolution in one generation alters the environment experienced by subsequent generations. Despite longstanding hypotheses that feedbacks should be nearly ubiquitous for social behaviors, we still know little about how feedbacks influence evolution. Using experimental evolution, we manipulated the social environment in which aggression was expressed and selected in fruit fly (Drosophila melanogaster) populations to allow or limit feedbacks. We selected for increased male-male aggression while allowing either positive, negative, or no feedbacks, alongside unselected controls. Populations undergoing negative feedbacks showed the weakest responses to selection, while populations undergoing positive evolutionary feedbacks evolved supernormal aggression. Further, the underlying social dynamics evolved only in the negative feedbacks treatment. Our results demonstrate that evolutionary feedbacks can alter the rate and pattern of behavioral evolution.
Main Text
Evolutionary feedbacks occur when trait evolution in one generation alters selection pressures in subsequent generations (1–3); Figure 1). Traditional behavioral biology focused on how the environment affects behavior, often ignoring reciprocal effects whereby behaviors shape the environment (4). Yet, organisms typically—perhaps universally—alter their environments (5–7), e.g., by excreting waste, eating other organisms, and behaving socially. This interplay has important implications for evolution, because the environment mediates the genetic basis and fitness consequences of variation in traits. Consequently, the potential for evolutionary feedbacks between organisms and their environments has come into focus as a major, but unexplored, force driving phenotypic evolution (1, 8, 9), even on short timescales (1, 10). Hypotheses abound for the role of feedbacks in climate change (11, 12), community dynamics (13), population persistence (10), social interactions (14), the genetic basis of evolution (15–17), and more.
For social behaviors, the “environment” in which behaviors are expressed is formed by the behaviors of interacting conspecifics. Indirect genetic effects (IGEs) explicitly consider how genes expressed in these social partners may influence a focal individual’s behavior (18–21). Note that “indirect” refers here to the effect of one individual’s genes on another individual’s behaviors, and is distinct from other “indirect effects” in ecology (12). IGEs stand in contrast to “direct” genetic effects, DGEs, whereby an individual’s own genotype affects its own behavior. For example, guppies (Poecilia reticulata) are more willing to inspect a predator if they are paired with a partner who is also willing to inspect; and these behaviors are heritable (22). This example illustrates how social interactions may be determined by the genotypes of the participants. Indirect genetic effects are widespread, and have been identified for a wide range of traits and taxa (23–26).
Under indirect genetic effects, the environment itself can evolve: evolutionary changes in population-mean behavior also represent changes in the environment in which the behavior is expressed (18, 27). Indeed, many familiar evolutionary feedbacks are examples of evolutionary outcomes of indirect genetic effects for social behaviors, such as Fisherian runaway selection and arms races (8). The existence of these feedbacks highlights the challenge of predicting behavioral evolution over more than one generation (28–31). Yet, empirical demonstrations of such feedbacks are scarce (29, 32–34), likely because isolating the effects of evolutionary feedbacks – if any – is nearly impossible for wild populations (35).
To directly identify the role(s) of feedbacks in behavioral evolution, we founded 12 replicate Drosophila melanogaster populations from the same wild base population and subjected them to 24 generations of selection for increased aggression, while allowing or limiting the opportunity for different evolutionary feedbacks. Flies are a model system allowing us to use experimental selection to rigorously test hypotheses about evolutionary processes.
We focused on aggressive behavior because IGEs have been well-established for aggressive behavior in flies (36, 37) and other species (38). Aggression is inherently a highly interactive trait, because animals plastically adjust their fighting behavior based on the responses of their opponents. Thus, the aggressive behavior of one individual is an environment that influences the aggressiveness of opponents. This plasticity occurs on two distinct timescales. On short timescales, i.e., during fights, aggression by one individual typically provokes retaliatory aggression by its opponent (in flies: (37, 39) across taxa: (40)). Such retaliation represents a social environment that augments aggression: the more aggressive your opponent is, the more aggressive you are in return. Over longer timescales, i.e., across fights, flies who have previously experienced aggressive attacks show reduced aggressiveness in subsequent encounters (37, 41– 44). These prior experience effects thus represent a social environment that reduces aggression: the more aggressive your first opponent is towards you, the less aggressive you will be in your next encounter.
These social dynamics -- retaliation and prior experience effects -- are predicted to produce potent and opposite evolutionary feedbacks. Selection for increased aggressiveness means that future generations will experience a highly-aggressive social environment—an environment in which retaliation will augment aggression even further. This process represents a positive feedback because the direct effect of selection and the indirect effects of changing the environment in which the behavior is expressed act in the same direction—i.e., to increase aggression, augmenting the expected evolutionary response (Figure 1).
To test this prediction, we had a Positive Feedbacks (P) treatment. To permit positive feedbacks, two naïve males from the same experimental population were paired each generation, for a total of 100 males in 50 pairs. Total aggression of each male was measured, and the 50 most aggressive individuals were selected. This treatment is expected to produce positive feedbacks because, as aggression evolves (i.e., the population responds to selection), males will face increasingly-aggressive opponents that will stimulate increased retaliatory responses, exaggerating the population’s response to selection (Figure 1).
In contrast, with prior experience effects, as the population-mean aggressiveness increases (i.e., the population responds to selection), more individuals will experience aggressive opponents in their first aggressive encounter, resulting in increasingly suppressed aggressiveness in subsequent encounters. This process represents a negative feedback because the direct effect of selection and the indirect effect of changing the environment in which the behavior is expressed are in opposite directions—selection acts to increase aggression, provoking more potent prior experience effects that reduce aggression, dampening the expected evolutionary response (Figure 1).
To test this prediction, we had a Negative Feedbacks (N) treatment. In this treatment, males were subjected to 2 days of behavioral analysis. On Day 1, two naïve males from the same experimental population were paired, for a total of 100 males in 50 pairs; this experience provides the opportunity for prior experience. The next day, Day 2, the same males were then paired with a standard opponent and aggressiveness was again measured. These standard opponents were males from the DGRP-208 inbred genotype, an inbred line whose progenitors were wild-collected and then highly inbred over many generations. Importantly, the inbred nature of these opponents mean that every male standard opponent was genetically identical to every other standard opponent in every generation. Selection was based only on males’ day 2 aggressiveness: males from the experimental population were compared for total aggression on Day 2, and the 50 most aggressive males were selected.
It may seem intuitive that “negative” feedbacks should involve selection for reduced aggression—however, this is not the case. Negative feedbacks occur when behavioral plasticity and evolutionary changes in behavior act in opposite directions, i.e., there is a negative covariance between behavior of opponents (18). Here, this occurs because selection for increased aggression should result in behavioral plasticity (prior experience effects) that reduces aggression.
To quantitatively identify the effects of feedbacks, we compared the P and N treatments to a No feedbacks (0) treatment. To limit opportunities for feedbacks, 100 males from the experimental population were paired with standard opponents – the same genotype of standard opponents as in the N treatment on day 2 (i.e., DGRP-208 inbred genotype). Males from the experimental population were compared for total aggression, and the 50 most aggressive males were selected. This treatment abrogates the opportunity for IGE-mediated evolutionary feedbacks because the standard genotype was genetically identical in every generation, meaning the social environment was not allowed to evolve. Selection response should proceed approximately as R=h2s, as expected under typical artificial selection (Figure 1).
Finally, we had Controls (C) populations that did not undergo selection. As expected, unselected control populations did not evolve increased aggression (table S3.S2).
Each replicate was founded by collecting 4 samples of the base population, with each sample consisting of 100 males and 100 females. These 4 samples became the 4 populations from this replicate, and each one was subjected to a different experimental treatment: one population from each of the 3 selection treatments and one unselected control population. In generation 0, 100 males from each population were paired together and measured for baseline aggression to ensure similar starting points. In generations 1-24, each population was subjected to evolution for increased aggression (except unselected control populations). Each population was measured for aggression every generation as part of the selection protocol (see below), except control populations, which were measured at generation 0 and again at the midway point and at the end of the experiment. Populations within each replicate were carefully matched demographically (see Materials and Methods and Table S1) to rule out any confounding effects of population history on selection response. In the final generation (generation 25 for replicates 1 and 2, generation 26 for replicate 3), samples from all populations were measured for prior experience effects so that we could test whether prior experience effects evolved, and the experiment was concluded.
By measuring 39,018 males over 25 generations in 12 initially-identical populations, our design allowed us to directly identify how feedbacks shape changes in aggressive behavior.
RESULTS
In every generation, 100 males from each population (except for unselected controls) were scan- sampled (45) for aggression 24 times in one day during peak activity periods. For each observation, trained observers recorded the presence or absence of 3 components of aggressive behavior: fencing - both flies extending and engaging with each other’s legs by tapping and/or pushing; lunging - one fly rearing on his back legs and slamming his foretarsi onto his opponent; and boxing - both flies rearing on their hindlegs, “kangaroo style,” and engaging each other with their front legs by pushing and/or hitting (39). When fencing and lunging occurred, observers noted which individual was the aggressor. Boxing can only occur when both individuals are engaged. Finally, observers noted whether either of the flies appeared to be temporarily stuck on the food patch, as occasionally occurred. We quantified total aggression as the unweighted sum of these behaviors; in the selection treatments (P, N, and 0), the 50 males with the highest total aggression (in their treatment-specific social environment) were chosen to become fathers to the next generation alongside randomly-chosen, unmated females from their population.
During the experiment, it was apparent even through casual observation that the P populations showed extreme levels of boxing compared to the other treatments (Figure 2). Thus, we used a trait covariance approach to analyze how total aggression and each component of aggression evolved, i.e., lunging, fencing, and boxing we treated as repeated measures of each individual male. The resulting Generalized Linear Mixed Model (GLMM) describing evolution in the selected populations (Model 1) revealed a 3-way interaction between generation, treatment, and component (Table 1 - model 1; Table 2; Figure 1), meaning that treatment differences in evolutionary change differed between fencing, lunging, and boxing. For fencing, we found that all three selection treatments evolved increased fencing; P and 0 had indistinguishable slopes, and both P and 0 were faster than N (Table 2). For lunging, only the 0 treatment showed significant evolutionary changes in lunging (Table 2). For boxing, we found that P and N showed significant evolution of boxing, but not 0 (Table 2). The P treatment in particular showed dramatically faster evolution of boxing compared to the other treatments; indeed, on the scale of the original data (i.e., not the latent scale), the estimated slope for the P treatment was more than 35 times greater than the corresponding estimate for the N treatment (Table 2). As unselected control populations did not evolve increased aggression, we can be confident that these evolutionary changes are due to experimental selection. Overall, these results demonstrate that evolutionary feedbacks alter populations’ phenotypic response to selection.
Feedbacks for social behavior depend on the underlying social dynamics – here, retaliation and prior experience effects – which may themselves evolve. While retaliation was present in all populations tested, none of the treatments showed evidence that the magnitude or form of retaliation changed over generations. Thus, we did not find evidence that retaliation evolved in our experiment (Table S3.S3). In contrast, we observed that prior experience effects evolved over generations in the Negative feedbacks (N) treatment (table 1 – model 2). To test whether this evolutionary change in prior experience effects was unique to the N treatment, we compared prior experience effects between the P, N, 0, and C treatments at the end of each replicate. Our generalized additive mixed model (GAMM) analysis (table 1 – model 3) revealed that prior experience effects differed significantly from the unselected control (C) populations only in the N treatment, not in P or 0.
DISCUSSION
Evolutionary feedbacks are like the “dark matter” of evolution—we know they must be there, and we know they must be important, but they are nearly impossible to see directly. Here, we manipulated the social environment in which aggression was expressed and selected to provide the opportunity for IGE-mediated feedbacks via retaliation, prior experience effects, or neither of these to contribute to evolution (Figure 1). We tracked the resulting evolutionary dynamics over 24 generations in 12 populations, requiring behavioral measurement of tens of thousands of males. Our results broadly support predictions from IGE theory (Figure 2, Table 2), i.e., that positive feedbacks should accelerate phenotypic evolution while negative feedbacks should slow evolution (18, 19, 27, 31). As unselected control populations did not evolve increased aggression, we can be confident that these evolutionary changes are due to experimental selection. Thus, these results demonstrate that evolutionary feedbacks alter populations’ phenotypic response to selection.
Unexpectedly, we saw that not every component of aggression responded to feedback-mediated selection the same way; in particular, the evolutionary response in the Positive feedbacks (P) treatment was dominated by the very striking evolution of supernormal boxing behavior (Figure 2, Tables 1, 2). Boxing is the only component of aggression measured here in which active participation for both males is required. Thus, small increases in aggressiveness over generations may have been magnified in the Positive feedbacks (P) treatment through feedbacks, making mutually-expressed, high-intensity fights substantially more common.
Predictions about the evolutionary consequences of feedbacks hinge on the assumptions that the dynamics underlying feedbacks – here, retaliation and prior experience effects -- are constant over generations. While this was true for retaliation, prior experience effects evolved to be more negative at high levels of Day 1 opponent aggression (Figure 3). These findings suggest that negative feedbacks and their evolutionary consequences would be exacerbated under continued selection. Predicting and testing the evolution of social dynamics as indirect targets of selection is a critical future direction for understanding evolutionary feedbacks (48, 49).
CONCLUSIONS
Predicting how interactive behaviors will evolve is an exciting challenge for modern biology (50). Our results provide a powerful proof-of-concept that largely validates longstanding hypotheses, supporting the deployment of IGE and related theory in diverse applications (51), such as conservation (52) and animal welfare (38). The existence and potency of IGE-mediated evolutionary feedbacks highlight how simple behavioral choices – such as responding to an aggressive attack – can scale up to impact the entire evolutionary process.
MATERIALS AND METHODS
Experimental Overview
Replicate populations were selected for increased aggression under different social conditions, alongside unselected controls
We had 3 selection treatments representing selection for increased aggression under positive, negative, or no evolutionary feedbacks, as described below. In addition, we had control populations that did not undergo selection.
In generation 0, 100 males from each population were paired together and measured for baseline aggression to ensure similar starting points. In generations 1-24, each population was subjected to evolution for increased aggression, or not, corresponding to their assigned treatments. Each population was measured for aggression every generation as part of the selection protocol (see below), except control populations, which were measured at generation 0 and again at the midway point (generation 12 or 13). In the final generation (generation 25 for replicates 1 and 2, generation 26 for replicate 3), samples from all populations were measured for prior experience effects so that we could test whether prior experience effects evolved, and the experiment was concluded.
In total, this experiment measured phenotypic changes over 25 generations for 12 populations, requiring measurements of 39,018 males. By manipulating feedbacks and tracking the resulting changes in aggression, retaliation and prior experience effects, across replicates, we were able to directly identify the evolutionary consequences of feedbacks for aggressive behavior.
Replication structure
Each replicate was founded by collecting 4 samples of the base population, with each sample consisting of 100 males and 100 females. These 4 samples became the 4 populations from this replicate, and each one was subjected to a different experimental treatment: one population from each of the 3 selection treatments (see below) and one unselected control population. Replicate 1 was founded in July 2021, Replicate 2 was founded in September 2021, and Replicate 3 was founded in February 2022.
Experimental details: flies and rearing conditions
Base population
As our base population, we used an outbred population of flies originally collected from Coral Gables, FL, by the de Bivort lab. Mated females were collected from the same wild population over a period of June-November 2018 and their descendants were kept at large population sizes in the de Bivort lab (53).
Standard opponents
We used standard opponents in several of the treatments as explained below. These were males from the DGRP-208 inbred genotype, an inbred line whose progenitors were wild-collected and then highly inbred over many generations. DGRP-208 was chosen because it showed intermediate aggression in prior studies (Hutchins et al 2024).
Importantly, the inbred nature of these opponents mean that every male standard opponent was genetically identical to every other standard opponent in every generation.
Standard opponents were reared for trials by adding 10 unmated DGRP-208 females and 10 DGRP-208 males to a vial containing standard fly food. This approach minimizes variation in rearing conditions across vials. Male progeny were collected within 12 hours of eclosion and housed with other standard opponent males for 5-7 days prior to testing.
Rearing and preparation for aggression experiments
Experimental populations were reared on high-protein food (consisting of standard fly food supplemented with additional dead yeast to produce a 4:1 protein:carbohydrate ratio; (54)) in 6oz plastic bottles. Each bottle was founded by 25 males and 25 unmated females. The high protein food ensured that sufficiently large numbers of males eclosed around the same time, allowing us to conduct the experiment. Newly-eclosed unmated females were housed in same-sex groups.
Newly-eclosed experimental males were marked with a small dot of yellow or blue acrylic paint under anesthesia so that we could distinguish individuals during behavioral trials. After painting, males were isolated for 5-7 days. This approach ensured that males were recovered from anesthesia, but had no adult social experience prior to behavioral trials.
Selection on aggressive behavior
Aggression arenas
Arenas were composed of two small Petri dishes (3 cm x 1 cm) taped together. The floor of the arena was filled with standard fly food medium and a dot of active yeast. This is a typical arena design for measuring aggression in flies (e.g., (37)).
Measuring aggression
Because of the large number of males that needed to be measured simultaneously, we used an instantaneous scan sampling approach to measure aggression (45). Flies were added to arenas in the morning, at approximately 9:00am. Every 5 minutes during the following 60 minutes, we noted whether flies in each arena were engaged in any of 3 aggressive behaviors. A second 60- minute observation period occurred from 3:00-4:00 pm. Thus, we collected 24 total observations of each fly.
For each observation, trained observers recorded the presence or absence of 3 components of aggressive behavior: fencing - both flies extending and engaging with each other’s legs by tapping and/or pushing; lunging - one fly rearing on his back legs and slamming his foretarsi onto his opponent; and boxing - both flies rearing on their hindlegs, “kangaroo style,” and engaging each other with their front legs by pushing and/or hitting (39, 46). When lunging occurred, observers noted which individual was the aggressor. Fencing and boxing are mutually performed behaviors so both individuals were counted as engaging in each instance of these.
Finally, observers noted whether either of the flies appeared to be temporarily stuck on the food patch, as occasionally occurred. Observers did not know which flies were from which treatments while measuring aggression. To choose flies to become fathers of the next generation (in the selection treatments), we computed total aggression, which was the unweighted sum of fencing, lunging, and boxing instances observed for each individual male. For each selected population, the 50 males with the highest total aggression were selected each generation. If fewer than 50 males showed non-zero aggression, then all the males that showed any aggression were selected alongside randomly-chosen additional males until we reached 50 total males. For example, if only 45 males showed aggression, 5 males that did not show aggression (during our sampling periods) would be randomly chosen, resulting in 50 fathers for the next generation.
Founding the next generation
After selection, the 50 chosen males were placed into food bottles with 50 randomly chosen unmated females from their own population. The progeny of these flies became the next generation.
Deviations from the protocol
Due to unavoidable variability in fly eclosion rates, there were some generations in which fewer than 100 males were available from one or more of the populations. In these cases, the other populations in that replicate were subsampled to produce equal numbers of males considered for selection. For example, if one population only had 70 males available for testing, we measured those 70 males alongside 100 males from the other populations in that replicate. Before selection, we randomly discarded data from 30 males from the other populations, and chose the 50 most aggressive males from the remaining 70 data points.
For replicate 3 only, we had 3 generations where no selection was possible. In Generation 15, flies eclosed almost a week later than usual, possibly due to unusual weather in Houston TX. Since we were unsure of whether these flies were healthy and representative of the evolving population, we chose to allow random parents to found the next generation rather than conducting selection. Later, the standard opponent colonies became contaminated with bacteria resulting in insufficient standard opponents in generations 22, 23, and 25 (for Replicate 3 only). To ensure identical demographic histories among Replicate 3 populations, we therefore chose random flies to propagate all the populations during these “lost” generations. We concluded the experiment in Generation 26, in which we measured prior experience effects. Note that all results are adjusted for these and any other differences between Replicates.
In sum, this approach ensured identical demographic histories among populations from the same replicate. A complete record of the number of males measured for each population in each replicate is available in Table S1 in supplementary materials.
Final generation: test for prior experience effects
In the final generation, males from selected and control populations were reared as normal. But instead of their normal testing protocol, males from all populations were tested for prior experience effects: males from each population were paired together on Day 1 and aggression was measured, then those same males were paired with a standard opponent the next day and their aggression was measured again (i.e., as in (37, 44)).
Analysis Methods
Overview
We fit a series of models using data from generations 1-24 to test for evolutionary changes in aggression, retaliation, and prior experience effects, and differences in these slopes among treatments. Finally, we analyzed prior experience effect differences in the final generation of each replicate. In a supplementary analysis, we confirmed that unselected control populations did not evolve increased aggression (Table S3.S2). All models included a random effect of Replicate to account for differences among replicates. A full summary of each model, the question that it answers, and its structure, is available in table S2.
In initial models, we found that the relationship between focal male aggression and opponent aggression was highly non-linear. Thus, analyses that included opponent aggression as a predictor were fit as generalized additive mixed models (GAMMs) in the package mcgv, enabling us to capture these nonlinear effects (55). Opponent aggression and its interactions were fit using thin-plate splines, which include penalties for overfitting (55). We allowed the model to fit up to 10 “knots” for each spline. Models not including the effects of opponent behavior were fit as generalized linear mixed models (GLMMs) using the package glmmTMB, enabling us to include zero-inflation terms as needed (56).
Our measure of prior experience effects focused on changes in aggression across days and was calculated as: focal male Day 2 aggression – focal male Day 1 aggression, for each male (57, 58). For these models, we used the scaled t error distribution, which is appropriate for errors that have a heavy-tailed gaussian-type distribution. For models where aggression itself was the response variable, we used a negative binomial error distribution, which is appropriate for overdispersed count data.
Preliminary models showed that fly age (i.e., whether the flies were 5, 6, or 7 days post-eclosion) was never significant, so we did not include this term in final models.
Model fitting and inference
Residual plots from each model were examined to ensure adequate model fit. For GLMMs, residual plots were produced by simulation using the package DHARMa (59); for GAMMs, we used the gam.check function in mcgv. For GLMMs, we also used AIC analysis to decide what zero-inflation terms to include, if any.
In the final models, we used Wald type III tests (implemented in the ‘car’ package for GLMMs (60), and F tests in the “summary.gam” function in mcgv for GAMMs) to test the significance of fixed effects. We did not conduct inference on random effects.
Data from generations 1-24 of the selected populations were used in models 1, 3, and S3, so we implemented the Bonferroni correction to reduce the false positive rate. We report corrected p- values.
To further interpret significant effects in model 1, we estimated slopes, i.e., estimated marginal means of linear trends, representing change in behavior over generations. Slopes were de- transformed to the scale of the original data, which is appropriate for interpreting evolutionary patterns (61). We tested whether each slope differed from 0, indicating no detectable evolution, using t-tests, and we performed planned contrasts to test for slope differences between treatments. Comparisons between slopes were adjusted for multiple testing using the tukey method. These computations were implemented in the emmeans package (62).
Model details
Model 1: how did each component of aggression evolve?
We used a trait covariance approach to analyze how total aggression and each component of aggression evolved in our experiments. We modeled “focal male aggression” as our response variable, and each individual was represented by three measurements –lunging, fencing, and boxing-- with a variable, “component,” indicating which observation corresponded to which component of aggression. Therefore, any predictor variable influencing “focal male aggression” independent of component indicates evolutionary (or other) changes to total aggression, independent of which component is considered. Any predictor variable whose effect on focal aggression depends on the variable “component” indicates component-specific evolutionary changes. This dependence manifests as a statistical interaction between the relevant predictor variable and the variable “component.”
Thus, the model included fixed effects of generation, treatment, component, and all possible interactions among these variables (for full model structures Table S2). We also included a fixed covariate indicating the number of times the fly appeared stuck on the food patch. We included terms for replicate, the date the fly was measured, the identities of the trained observers, and individual ID as random effects. The random effect of individual ID accounted for the non-independence of the 3 measurements from each individual.
Model 2: did prior experience effects evolve in the N treatment?
In this model, we used only data from the N treatment, which is the only treatment for which prior experience effects were measured during generations 1-24. We tested whether changes in aggressive behavior over the 2 days of trials (measured as Day 2 aggression –Day 1 aggression for each male, see above) varied over generations and due to opponent aggression on days 1 and 2. Generation, opponent aggression on each day, and 2-way interactions between generation and opponent aggression on each day were included as fixed effects, with other terms in the model as above (table X). In this model, an effect of a generation x opponent aggression interaction (on either day) would indicate an evolutionary change in how males responded to opponent behavior. We included terms for replicate, the date the fly was measured, and the identities of the trained observers as random effects.
Model 3: did prior experience effects evolve in any of the treatments?
While total aggression and retaliation were measured for every pair of males, prior experience effects were only measured in the N treatment populations. To test whether prior experience effects may have evolved in the other treatments, we measured prior experience effects for every population (including unselected controls) at the end of the experiment (generation 25). To compare the magnitude of prior experience effects across treatments, we tested whether changes in aggressive behavior across days (measured as Day 2 aggression – Day 1 aggression for each male, see main text) differed across treatments and due to opponent aggression on days 1 and 2. Using GAMMs, we fitted the effects of opponent aggression on each day in the Control treatment as the “reference smooth,” and fitted effects that estimated differences between Control and each of the other treatments for these relationships as “difference smooths” (63). Significant effects of each difference smooth would indicate significant differences between this treatment’s prior experience effects and those of the control populations. We included terms for replicate, the date the fly was measured, and the identities of the trained observers as random effects.
Model S1 & S2: checking assumptions
In these models we confirmed that (a) populations had indistinguishable levels of aggression at the beginning of the experiment (generation 0) and (b) unselected control populations did not show directional changes in aggression. See Table S3.S2.
Models S3.0, S3.N, and S3.P: did retaliation evolve?
In this series of models, we tested whether retaliation changed over generations in each selection treatment. See Table S3.S3
Funding
This work was supported by NSF-IOS Award ID #1856577.
Author contributions
Conceptualization: JBS
Methodology: ARG, GEE, JBS
Investigation: ARG, GEE, JBS
Visualization: JBS
Funding acquisition: JBS
Project administration: ARG, GEE, JBS
Supervision: ARG, GEE, JBS
Writing – original draft: JBS
Writing – review & editing: ARG, GEE, JBS
Competing interests
Authors declare that they have no competing interests
Data and materials availability
Data and code needed to reproduce the analyses presented are included as supplemental files.
Supplementary Materials
Materials and Methods
Supplemental Tables S1 to S3.3
Data files
Readme for data files R Code
SUPPLEMENTAL TABLES
SECTION 3. Full model Results.
Acknowledgments
We thank Charlotte Hovland, Autumn Hildebrand, Philip DuBose, Samitha Nemirajaiah, Vivian Ha, Jose Ramirez, Maggie Bao, Priya Trakru, Daniela Vodo, and Brooke Ermias, for logistical assistance.