Data and code from: Scaling across environments: Distinct genetic architectures underlie thermal and nutritional plasticity of size and morphological scaling in Drosophila melanogaster
Data files
Jul 07, 2026 version files 743.60 KB
-
df.csv
632.41 KB
-
README.md
2.38 KB
-
Scaling_Across_Environments_Analysis.Rmd
108.81 KB
Jul 09, 2026 version files 750.94 KB
-
df.csv
632.41 KB
-
README.md
2.41 KB
-
Scaling_Across_Environments_Analysis.Rmd
116.12 KB
Abstract
Across animals, variation in adult body size is accompanied by coordinated variation in the size of individual morphological traits. However, the same morphological trait can scale differently with body size depending on what drives the size variation. In Drosophila melanogaster, for example, wing size scales differently with body size when size varies because of developmental nutrition versus developmental temperature. Whether the genetic basis of size plasticity and scaling is shared across different environmental regulators of size remains unclear, but is central to predicting how selection acts on the developmental mechanisms that regulate trait size, plasticity, and morphological scaling. Using ~200 isogenic D. melanogaster lineages, we measured wing and leg size across nutritional and thermal treatments. For each lineage, we estimated nutritional and thermal plasticity for both traits, as well as the wing-leg individual-level scaling relationship, or ILSR, generated by each environmental source of size variation. We found extensive genetic variation in both thermal and nutritional plasticity for wings and legs, and in the slope of the ILSR between them. However, a lineage’s thermal plasticity was genetically uncorrelated with its nutritional plasticity for either trait, and we detected no genetic correlation between the slopes of thermal and nutritional wing-leg ILSRs. We also found no genetic correlation in the slope of nutritional wing-leg ILSRs across temperatures. Thus, the slope of a lineage’s nutritional ILSR at 17˚C was not predictive of its slope at 25˚C or 28˚C. Nevertheless, the overall pattern of nutritional ILSRs was conserved across temperatures. These results suggest that the genetic architecture of size plasticity and scaling depends on the environmental source of size variation. Consequently, the evolutionary response of scaling to selection in heterogeneous environments may not be predictable from genetic variation measured in any single environment.
Dataset DOI: 10.5061/dryad.zpc866tqq
Description of the data and file structure
The data were collected to test whether the genetic basis of body-size plasticity and morphological scaling is shared across different environmental regulators of size. We used roughly 200 isogenic, fully sequenced lineages from the Drosophila Genome Reference Panel (DGRP) and reared males of each line across two kinds of size-altering environments: a nutritional treatment, in which larvae were either fed ad libitum or starved for a defined window before pupariation to generate nutritionally-induced size variation, and a thermal treatment, in which larvae were raised at one of three developmental temperatures (17 °C, 25 °C, or 28 °C). For each adult fly we dissected and mounted the right wing and right first leg and measured wing area and femur length (squared, as a leg proxy) using semi-automated imaging, then log-transformed the values. From these measurements we estimated, for every lineage, the nutritional and thermal plasticity of both the wing and the leg, as well as the slope of the wing–leg individual-level scaling relationship (ILSR) generated by each environmental source of size variation. This design let us quantify genetic variation in plasticity and scaling and test for genetic correlations between thermal and nutritional responses, and across temperatures, to determine whether scaling and plasticity are governed by the same or distinct genetic architecture depending on the environmental driver of size.
Files and variables
File: Scaling_Across_Environments_Analysis.Rmd
Description: R Markdown of statistical analysis
File: df.csv
Description: Phenotypic data analyzed. NA = data missing due to incomplete wing or leg.
Variables
- line: Genotype of the fly (does not correspond to DGRP lineage ID)
- nutrition: Level of nutriton (D0 = fed, D1 = starved)
- temp: Temperature (17°C, 25°C or 28°C)
- wing: Log area of the wing (µm2)
- leg: Log 2x length of the leg (µm2)
- dataset: source of the data (nutritional or thermal)
Code/software
The data were analysed on R version 4.5.1 (2025-06-13)
Changes after Jul 7, 2026: Edited README.md.
Changes after Jul 9, 2026: Edited Scaling_Across_Environments_Analysis.Rmd
