Data for: Natural genetic variation in social environment choice: context-dependent gene-environment correlation in Drosophila melanogaster Contact: Julia Saltz (jbsaltz@ucdavis.edu) This data describes genetic variation in social preference in male D. melanogaster. I (JBS) collected it. Each row of the attached spreadsheet contains data from a single experiment. The column “expt” contains a unique (but otherwise meaningless) ID number for each experiment. The “experiment” column refers to experiments 1-3 as described in the paper. Experiment 3 includes low- and high-density treatments. “Side” describes whether the larger or smaller group was closer to the fly’s release point; these numbers are meaningless for experiment 1, in which no groups were present. Genotypes are Raleigh inbred lines recurrently crossed as described in the paper. They are written in the form “maternal genotype / paternal genotype.” Obs_on_larger_group contains counts of the number of observations in which I observed the focal male on the larger group, and likewise for obs_on_smaller_group. Obs_awa contains counts of the number of observations in which the fly was not on any patch. Thus, patch use (see paper) can be calculated as: obs_on_larger_group + obs_on_smaller_group. Preference can be calculated as: obs_on_larger_group / patch use.