DOI: 10.26180/26028733
title: <b>Data and coding files for: Assessing the effect of experimental evolution under combined thermal-nutritional stress on larval thermotolerance and thermal plasticity in </b><b><i>Drosophila melanogaster</i></b>

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.<b>Description of the data and file structure</b>This 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>R markdown in the HTML notebook format</b> (.nb.html) containing code for data analyses and visualizations, and coding outputs<b>Data generated from analyses</b> (".Rdata") for further analyses and visualizations<b>Data Files</b><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 vial<b>Code Scripts (.Rmd)</b>All code files are commented and annotated.<b>ANOVA</b>:"EEL thermoplasticity analysis (control) sum to zero contrast.Rmd" and "EEL thermoplasticity analysis (control) sum to zero contrast.nb.html" for assessing the effect of selection temperature and selection diets on basal larval-adult viability"EEL thermoplasticity analysis (heat) sum to zero contrast.Rmd" and "EEL thermoplasticity analysis (heat) sum to zero contrast.nb.html" 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" and "EEL thermoplasticity analysis (cold) sum to zero contrast.nb.html" 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" and "Pilot - EEL thermoplasticity analysis heat (sum to zero contrast).nb.html" for determining suitable durations for heat hardening and heat shock treatments"Pilot - EEL thermoplasticity analysis cold (sum to zero contrast).Rmd" and "Pilot - EEL thermoplasticity analysis cold (sum to zero contrast).nb.html" for determining suitable durations for cold hardening and cold shock treatments<b>Data visualization</b>:"ggplot - cold and control.RMD" and "ggplot - cold and control.nb.html" for figure 1 and 2"ggplot - heat.Rmd" and "ggplot - heat.nb.html" for figure 3 and figure S1"Pilot ggplot - EEL thermoplasticity analysis cold.Rmd" and "Pilot ggplot - EEL thermoplasticity analysis cold.nb.html" for figure S2"Pilot ggplot - EEL thermoplasticity analysis heat.Rmd" and "Pilot ggplot - EEL thermoplasticity analysis heat.nb.html" for figure S3<b>Data Files Generated from Analyses (.Rdata)</b>Includes: "EEL_ctrlm.Rdata", "EEL_ctrlm_t.Rdata", "EEL_clm2.1.Rdata", and "EEL_hlm1.3.Rdata"Use of these data is included and annotated in the .Rmd files.<b>Code/Software</b>R is required to run the coding scripts (".Rmd" files). The scripts were created using R version 2024.12.1+563 (RStudio 2024.12.1+563 "Kousa Dogwood" Release).Microsoft Excel can be used to view ".csv" files.