Acetic acid activates distinct taste pathways in Drosophila to elicit opposing, state-dependent feeding responses

Taste circuits are genetically determined to elicit an innate appetitive or aversive response, ensuring that animals consume nutritious foods and avoid the ingestion of toxins. We have examined the response of Drosophila melanogaster to acetic acid, a tastant that can be a metabolic resource but can also be toxic to the fly. Our data reveal that flies accommodate these conflicting attributes of acetic acid by virtue of a hunger-dependent switch in their behavioral response to this stimulus. Fed flies show taste aversion to acetic acid, whereas starved flies show a robust appetitive response. These opposing responses are mediated by two different classes of taste neurons, the sugar- and bitter-sensing neurons. Hunger shifts the behavioral response from aversion to attraction by enhancing the appetitive sugar pathway as well as suppressing the aversive bitter pathway. Thus a single tastant can drive opposing behaviors by activating distinct taste pathways modulated by internal state.


Sample-size estimation
• You should state whether an appropriate sample size was computed when the study was being designed • You should state the statistical method of sample size computation and any required assumptions • If no explicit power analysis was used, you should describe how you decided what sample (replicate) size (number) to use Please outline where this information can be found within the submission (e.g., sections or figure legends), or explain why this information doesn't apply to your submission:

Replicates
• You should report how often each experiment was performed • You should include a definition of biological versus technical replication • The data obtained should be provided and sufficient information should be provided to indicate the number of independent biological and/or technical replicates • If you encountered any outliers, you should describe how these were handled • Criteria for exclusion/inclusion of data should be clearly stated • High-throughput sequence data should be uploaded before submission, with a private link for reviewers provided (these are available from both GEO and ArrayExpress) Please outline where this information can be found within the submission (e.g., sections or figure legends), or explain why this information doesn't apply to your submission: No explicit power analyses were used. Minimum sample sizes were decided prior to experimentation based on previous experience knowing how many samples are usually sufficient to detect reasonable effect sizes. Additional samples were added if the initial results were inconclusive or more variable than expected, but never with the intent to make a nonsignificant p-value significant or vice versa. This information can be found in the "Statistical analyses" section of the Materials and Methods. Sample sizes are listed in the figure legends.
Sample sizes ("n") are reported in the figure legends. For PER experiments the definition of "n" is explained in the "PER assay" section of the Materials and Methods, along with the criteria for data exclusion. For calcium imaging experiments the figure legends state the total number of trials as well as the number of flies that were tested, and the "Calcium imaging" section of the Materials and Methods states the criteria for data exclusion. Technical replicates do not apply in this study, hence all replicates are biological.

Statistical reporting
• Statistical analysis methods should be described and justified • Raw data should be presented in figures whenever informative to do so (typically when N per group is less than 10) • For each experiment, you should identify the statistical tests used, exact values of N, definitions of center, methods of multiple test correction, and dispersion and precision measures (e.g., mean, median, SD, SEM, confidence intervals; and, for the major substantive results, a measure of effect size (e.g., Pearson's r, Cohen's d) • Report exact p-values wherever possible alongside the summary statistics and 95% confidence intervals. These should be reported for all key questions and not only when the p-value is less than 0.05.
Please outline where this information can be found within the submission (e.g., sections or figure legends), or explain why this information doesn't apply to your submission: (For large datasets, or papers with a very large number of statistical tests, you may upload a single table file with tests, Ns, etc., with reference to sections in the manuscript.)

Group allocation
• Indicate how samples were allocated into experimental groups (in the case of clinical studies, please specify allocation to treatment method); if randomization was used, please also state if restricted randomization was applied • Indicate if masking was used during group allocation, data collection and/or data analysis Please outline where this information can be found within the submission (e.g., sections or figure legends), or explain why this information doesn't apply to your submission: Additional data files ("source data") • We encourage you to upload relevant additional data files, such as numerical data that are represented as a graph in a figure, or as a summary table • Where provided, these should be in the most useful format, and they can be uploaded as "Source data" files linked to a main figure or table • Include model definition files including the full list of parameters used • Include code used for data analysis (e.g., R, MatLab) • Avoid stating that data files are "available upon request" Please indicate the figures or tables for which source data files have been provided: All statistical tests and results are reported in Supplemental Table 1. The most relevant statistical results for each experiment are reported in the figures and legends. Additional information about statistical analyses and data presentation is described in the "Statistical Analyses" section of the Materials and Methods.
Experimental groups often consisted of different genotypes, in which case allocation into groups does not apply. For experiments in which the same genotype was tested under different conditions (e.g. fed vs. starved), flies from the same vials were randomly allocated into each experimental group. In general, masking was not used during data collection or analysis. This information can be found in the "Statistical analyses" section of the Materials and Methods.
Source data files for Figure 1-5 have been provided.