DOI: 10.26180/26028733.v1
title: Data and coding files for: Experimental evolution under combined thermal-nutritional stress in Drosophila melanogaster results in evolved shifts in larval thermotolerance and thermal plasticity

description: READMEWe investigated how long-term adaptation to combined thermal-nutritional stress affects larval thermotoelrance and thermal plasticity. We assessed basal and induced cold and heat tolerance of larvae from nine *D. melanogaster *experimental evolution lines that were forced adapted to combinations of three temperatures (18°C, 25°C and 28°C) and three diets (standard, diluted and low protein:high carbohydrate (low P:C) diets) using laboratory natural selection.Description of the data and file structureThis repository contains the following data and scripts:<b>Viability data</b> (".csv")<b>R markdown scripts</b> (".Rmd") containing code for data analyses and visualizations<b>Data generated from analyses</b> (".Rdata") for further analyses and visualizationsData Files<b>“EEL thermoplasticity.csv”</b>: Contains all viability data from all thermal shock treatments in all nine selection lines.<b>vial_number</b>: the number of vial<b>selection_line</b>: selection line, a combination of selection treatment and replicate line<b>selection_treatment</b>: selection treatment, a combination of selection temperature and selection diet<b>selection_temperature</b>: selection temperatures (18= 18, 25 = 25°C, 28 = 28°C)<b>selection_diet</b>: selection diets (A = standard diet, B = diluted diet, C = low P:C diet)<b>replicate_line</b>: replicate line number<b>treatment</b>: treatment, a combination of the type of thermal shocks (cold or heat) and hardening treatment (Yes or no)<b>treatment_type</b>: type of thermal shocks (c = cold shock, h = heat shock, control = control)<b>hardening</b>: presence of a hardening treatment (Y = Yes, N = No)<b>acute_shock</b>: presence of an acute thermal shock (Y = Yes, N = No)<b>hardening_temperature</b>: temperature of the hardening treatment (NA = not applicable, 0 = 0°C, 35 = 35°C)<b>hardening_hours</b>: duration of the hardening treatment (NA = not applicatble, 2 = 2 hours, 1 = 1 hour)<b>treatment_temperature</b>: temperature of the acute shock treatment (NA = not applicable, 0 = 0°C, 39 = 39°C)<b>treatment_hours</b>: duration of the acute shock treatment (4 = 4 hours, 0.5 = 0.5 hour)<b>replicate vial</b>: replicate vial number<b>block</b>: block number<b>adult_eclosed</b>: number of eclosed adults in the vial<b>female</b>: number of eclosed female in the vial<b>male</b>: number of eclosed male in the vial<b>unknown</b>: number of gender-unidentified individual in the vial (empty cells means not applicable)<b>viability</b>: number of eclosed adults / number of eggs deposited in the vial (20)<b>egg_deposited</b>: number of eggs deposited in the vial<b>comment</b>: comments<b>“Pilot - EEL thermoplasticity_new.csv”</b>: Contains all viability data from pilot thermal shock treatments in lines selected on standard diets at different temperatures.<b>vial_number</b>: the number of vial<b>selection_treatment</b>: selection treatment, a combination of selection temperature and selection diet<b>selection_temperature</b>: selection temperatures (18= 18, 25 = 25°C, 28 = 28°C)<b>selection_diet</b>: selection diets (A = standard diet, B = diluted diet, C = low P:C diet)<b>replicate_line</b>: replicate line number<b>treatment</b>: treatment, a combination of the type of thermal shock (cold or heat), hardening hours (duration of the hardening treatment) and treatment hours (duration of the acute shock)<b>treatment_type</b>: type of thermal shock (c = cold shock, h = heat shock)<b>hardening</b>: presence of hardening treatment (Y = Yes, N = No)<b>hardening_temperature</b>: temperature of the hardening treatment (NA = not applicable, 0 = 0°C, 35 = 35°C)<b>hardening_hours</b>: duration of the hardening treatment (NA = not applicatble, 2 = 2 hours, 1 = 1 hour)<b>treatment_temperature</b>: temperature of the acute shock treatment (0 = 0°C, 39 = 39°C)<b>treatment_hours</b>: duration of the acute shock treatment (0.25 = 0.25 hour, 0.5 = 0.5 hour, 1 = 1 hour, 2 = 2 hours, 4 = 4 hours, 5 = 5 hours, 6 = 6 hours)<b>replicate vial</b>: replicate vial number<b>block</b>: block number<b>adult_eclosed</b>: number of eclosed adults in the vial<b>viability</b>: number of eclosed adults / number of eggs deposited in the vial (20)<b>egg_deposited</b>: number of eggs deposited in the vialCode Scripts (.Rmd)All code files are commented and annotated.<b>ANOVA</b>:"EEL thermoplasticity analysis (control) sum to zero contrast.Rmd" for assessing the effect of selection temperature and selection diets on basal larval-adult viability"EEL thermoplasticity analysis (heat) sum to zero contrast.Rmd" for assessing the effect of selection temperature and selection diets on basal and induced heat tolerance"EEL thermoplasticity analysis (cold) sum to zero contrast.Rmd" for assessing the effect of selection temperature and selection diets on basal and induced cold tolerance"Pilot - EEL thermoplasticity analysis heat (sum to zero contrast).Rmd" for determining suitable durations for heat hardening and heat shock treatments"Pilot - EEL thermoplasticity analysis cold (sum to zero contrast).Rmd" for determining suitable durations for cold hardening and cold shock treatments<b>Data visualization</b>:"ggplot (cold).Rmd" for figure 1 and 2"ggplot (heat).Rmd" for figure 3"Pilot ggplot - EEL thermoplasticity analysis cold.Rmd" for figure S1"Pilot ggplot - EEL thermoplasticity analysis heat.Rmd" for figure S2Data Files Generated from Analyses (.Rdata)Includes: "EEL_ctrlm.Rdata", "EEL_clm2.1.Rdata", and "EEL_hlm1.3.Rdata"Use of these data is included and annotated in the .Rmd files.Code/SoftwareR is required to run the coding scripts (".Rmd" files). The scripts were created using R version 2023.09.0.+463 (RStudio 2023.09.0+463 "Desert Sunflower" Release).Microsoft Excel can be used to view ".csv" files.