DOI: 10.5061/dryad.t76hdr8dg
title: Data and code from: Multigenerational exposure to high-fat and high-sugar diets exacerbates reproductive distress in an insect model

description: In our study, we used experimental evolution to determine how high-fat and
 high-sugar diets affect the fitness of the common house fly Musca
 domestica, and if multigenerational exposure leads to compensatory
 metabolic changes. Housefly larvae were reared on a high-fat, high-sugar,
 or control diet for 51 consecutive generations, whereupon we measured
 several larval, pupal, and adult life-history traits. To test the direct
 effects of the diets on life-history traits, we switched the 50th
 generation of control diet flies onto the experimental diets and measured
 the same life history traits. We also directly compared the
 single-generational exposed and the multigenerational evolved lines to
 determine if the observed diet-induced adverse metabolic effects expanded
 across generations.
description: # Data and code from: Multigenerational exposure to high-fat and
 high-sugar diets exacerbates reproductive distress in an insect model
 Dataset DOI:
 [10.5061/dryad.t76hdr8dg](https://doi.org/10.5061/dryad.t76hdr8dg) ##
 Description of the data and file structure ### Files and variables The
 .csv files contain the raw data. All variables are defined in the
 file Legend.xlsx. The file Legend.xlsx has multiple sheets, and the names
 of these sheets correspond to associated .csv files.
 Development.Time.Data.csv\ This is the raw data for the pupal development
 time (in hours). Dry.Weight.Data.csv\ This is the raw data for the larval
 dry weight (in mg). Fat.Content.Data.csv\ This is the raw data for the
 larval fat content (in mg). Fecundity.Data.csv\ This is the raw data for
 the female fecundity (as number of eggs). Pupal.Viability.Data.csv\ This
 is the raw data for the pupal viability ( as % survival).
 Starvation.Resistance.Data.csv\ This is the raw data for the starvation
 resistance (in hours). Temperature.Data.csv\ This is the raw data for the
 larval substrate temperature (in degrees Celsius) Weight-Length.Data.csv\
 This is the raw data for the weight-to-length ratio.   ## Code/software
 All statistical analyses were performed in RStudio (v.4.3.2, 2023.03.0,
 Build 386) using the packages ‘car’, ‘cowplot’, ‘coxme’, ‘dplyr’,
 ‘emmeans’, ‘FSA’, ‘ggplot2’, ‘ggsurvfit’, ‘lme4’, ‘lmerTest’, ‘patchwork’,
 ‘pbkrtest’, ‘rms’, and ‘survival’ Development.Time.R.Script.R\ This is the
 R script for analysing the pupal development time data.
 Dry.Weight.R.Script.R\ This is the R script for analysing the larval dry
 weight data. Fat.Content.R.Script.R\ This is the R script for analysing
 the larval fat content data. Fecundity.R.Script.R\ This is the R script
 for analysing the female fecundity data. Pupal.Viability.R.Script.R\ This
 is the R script for analysing the pupal viability data.
 Starvation.Resistance.R.Script.R\ This is the R script for analysing the
 starvation resistance data. Temperature.R.Script.R\ This is the R script
 for analysing the larval substrate temperature data.
 Weight-Length.R.Script.R\ This is the R script for analysing the
 weight-to-length data. Figure.2.R.Script.R\ This is the R script to create
 figure 2. Figure.3.R.Script.R\ This is the R script to create figure 3.
 Figure.4.R.Script.R\ This is the R script to create figure 4.