This protocol describes a Drosophila learning and memory assay called courtship conditioning. This classic assay is based on a reduction of male courtship behavior after sexual rejection by a non-receptive premated female. This natural form of behavioral plasticity can be used to test learning, short-term memory, and long-term memory.
Many insights into the molecular mechanisms underlying learning and memory have been elucidated through the use of simple behavioral assays in model organisms such as the fruit fly, Drosophila melanogaster. Drosophila is useful for understanding the basic neurobiology underlying cognitive deficits resulting from mutations in genes associated with human cognitive disorders, such as intellectual disability (ID) and autism. This work describes a methodology for testing learning and memory using a classic paradigm in Drosophila known as courtship conditioning. Male flies court females using a distinct pattern of easily recognizable behaviors. Premated females are not receptive to mating and will reject the male's copulation attempts. In response to this rejection, male flies reduce their courtship behavior. This learned reduction in courtship behavior is measured over time, serving as an indicator of learning and memory. The basic numerical output of this assay is the courtship index (CI), which is defined as the percentage of time that a male spends courting during a 10 min interval. The learning index (LI) is the relative reduction of CI in flies that have been exposed to a premated female compared to naïve flies with no previous social encounters. For the statistical comparison of LIs between genotypes, a randomization test with bootstrapping is used. To illustrate how the assay can be used to address the role of a gene relating to learning and memory, the pan-neuronal knockdown of Dihydroxyacetone phosphate acyltransferase (Dhap-at) was characterized here. The human ortholog of Dhap-at, glyceronephosphate O-acyltransferase (GNPT), is involved in rhizomelic chondrodysplasia punctata type 2, an autosomal-recessive syndrome characterized by severe ID. Using the courtship conditioning assay, it was determined that Dhap-at is required for long-term memory, but not for short-term memory. This result serves as a basis for further investigation of the underlying molecular mechanisms.
The molecular mechanisms underlying learning and memory are conserved throughout many species. The pioneering work screening Drosophila melanogaster mutant lines for defects in olfactory learning and memory has provided key molecular insights into the processes underlying learning and memory1. These studies identified some of the first genes involved in learning and memory, such as rutabaga2, amnesiac3, and dunce4, revealing a critical role for cyclic adenosine monophosphate (cAMP) signaling5.
Early genetic screens for memory mutants were primarily conducted using olfactory conditioning. However, several methods to measure other forms of learning and memory have emerged over time. One of the most widely used learning and memory paradigms, and the assay described here, is known as courtship conditioning, which was first described by Siegel and Hall6 and was later refined by several other research groups7,8,9. Courtship conditioning is dependent upon the presence of a specific pheromone, cis-vaccenyl acetate (cVA), on the female abdomen, which is deposited by the male during copulation. Sensing cVA on the female abdomen naturally reduces courtship behavior, and when coupled with the act of rejection by the female, the effect of cVA on male courtship reduction is dramatically enhanced. The response of male flies in this assay can be easily quantified by observing their distinct courtship behavior, which is characterized by orienting towards and following the female, tapping, extending and vibrating the wing, licking, and attempting copulation10 (Figure 1A). Male flies learn to distinguish between receptive virgin and non-receptive mated females11, and after sexual rejection, they display reduced courtship behavior towards non-receptive females for up to 9 days8. This natural behavior can be used to elucidate the mechanisms underlying learning, short term memory (STM), and long term memory (LTM)8,9,12. Learning is defined as the immediate reduction in courtship behavior that occurs during the training period and is often referred to as immediate recall memory, measured 0 – 30 min after exposure to a mated female6,8. STM is measured between 30 min and 1 h after training, while LTM is most often measured 24 h after training8 (Figure 1B). STM can be induced using a 1-h training period, but it only lasts for 2-3 h6,8. In most learning paradigms, LTM can only be induced by spaced bouts of repeated training. Mcbride et al. (1999)8 showed that three spaced, 1-h training sessions were sufficient to induce courtship memory lasting for up to 9 days, in contrast to the 2-3 h induced by a single 1-h training session. McBride et al.8 also demonstrated that a single 5-h training session produced a similar LTM response for up to 9 days. Flies do not court constantly during this 5-h period, in effect producing their own spaced training to induce LTM in a single training session. This is very important from a practical perspective, vastly increasing the ease with which this assay can be used to investigate LTM. Current protocols predominantly use a single training session of 7-h for LTM11,12. Several studies have investigated different mutant conditions that have specific defects in different aspects of courtship learning. For example, mushroom body ablation affects STM and LTM, but not learning8. Mutations in the amnesiac gene, which was first defined as a specific regulator of memory using olfactory conditioning3, affect STM but not learning6. Disruption of the translation regulator orb2 (oo18 RNA-binding (orb) CPEB2 subfamily) and ecdysone signaling exclusively effect LTM9,13. Thus, courtship conditioning is a useful paradigm to dissect the mechanisms underlying the different stages of learning and memory.
This work demonstrates an optimized experimental setup that allows for the relatively high-throughput testing of courtship conditioning. Furthermore, it describes a statistical analysis script and discusses critical factors of the assay. It is shown here that the Drosophila gene Dihydroxyacetone phosphate acyltransferase (Dhap-at) is required in neurons for LTM, but not for STM. The human ortholog of this gene, glyceronephosphate O-acyltransferase (GNPAT), is mutated in rhizomelic chondrodysplasia punctata type 214, an autosomal-recessive disorder characterized by severe intellectual disability, seizures, and several other clinical characteristics15. In this context, courtship conditioning can be used to functionally validate the role of human disease genes in learning and memory, providing a basis for mechanistic studies.
NOTE: In the protocol outlined below, one replicate of collection, training, and testing is described. In order to test the reproducibility of the results, these steps should be repeated in parallel, on multiple days, and with separate groups of flies (Table 1). The protocol is based on a 10 day life cycle from egg to adult, which is normal when rearing flies under constant conditions of 25 °C, 70% humidity, and a 12 h light/dark cycle. All aspects of this protocol assume that the conditions are kept constant throughout the entire assay. Times are indicated as hours before lights turn on (BLO) or after lights turn on (ALO) in the incubator, as this can be conveniently set depending on the researcher's preferred time of day. Use CO2 gas only for the initial collection of naïve male flies and for the collection of premated females. This protocol for courtship conditioning is composed of the following steps:
1. Establishment of Premated Female Collection Cultures
2. Establishment of Cultures for the Collection of Male Test Subjects
3. Preparation of Housing Blocks (Figure 2A)
4. Establishment of Mating Vials for the Production of Standardized Premated Females
5. Collection of Male Test Subjects
6. Training
7. Testing
8. Video Data Analysis and Statistics
The courtship conditioning assay can be used to measure learning and memory in Drosophila. In order to demonstrate this, the results presented here analyze STM and LTM in control flies compared to flies with the neuron-specific knockdown of Dhap-at. Control males express an RNA interference hairpin sequence targeting a Caenorhabditis elegans-specific gene, putative zinc finger protein C02F5.1219. This control strain ensures an equal number of upstream activating sequence (UAS) elements between the knockdown and control in the same genetic background, and the control RNAi hairpin accounts for any non-specific effects of the RNAi system. Control males (genotype: UAS-dcr2/+; P{KK108109}VIE-260B/+; elav-Gal4/+) show a significant reduction in CI in trained versus naïve for both STM (Figure 3A, p = 1.2 x 10-4, Mann-Whitney U-test) and LTM (Figure 3B, p = 1.2 x 10-4, Mann-Whitney U-test). This result reflects the normal capacity for learning and memory in these flies. Dhap-at knockdown flies (genotype: UAS-dcr2/+; P{KK101437}VIE-260B/+; elav-Gal4/+) also show a significant reduction of CI in trained versus naïve flies for STM (Figure 3A, p = 1.2 x 10-4, Mann-Whitney U-test). However, they do not show a significant reduction in CI after LTM training (Figure 3B, p = 0.33, Mann-Whitney U-test). The Mann-Whitney U-test was used to compare the mean CI of naïve and trained flies due to the non-parametric distribution of the CI data for some conditions (Figure 3A and 3B). The differences observed through the analysis of CIs are reflected by the LI for each genotype, which measures the percent reduction in CI in naïve versus trained flies (Figure 3C). There is no significant difference in LI between controls and Dhap-at knockdown flies for STM (p = 0.115, 10,000 bootstrap replicates, Figure 3C, Table 3), whereas the LI for LTM is significantly lower in Dhap-at knockdown flies (p = 0.0034, 10,000 bootstrap replicates, Figure 3C, Table 3). For the comparison of LI between genotypes, a randomization test20 adapted from a method first recommended by Kamyshev et al.7 was used. Since the LI is a single value derived from population data (i.e., mean CI-naïve and mean CI-trained), standard statistical methods that rely on experimentally derived distributions do not apply. The randomization test is distribution-free and uses bootstrapping (i.e., random sampling with replacement) to generate hypothetical data sets that are derived from the actual data. The analearn script (File S3) generates a set of hypothetical LIs for each genotype and calculates the difference between the control and the test genotype (LIdiff). This process is repeated 10,000 times, and the resulting values are used to determine the 95% confidence interval of LIdiff (Table 3). This data is used to generate a p-value indicating the probability that the LI of the two genotypes is different. The results shown here demonstrate that Dhap-at is required in neurons for LTM but not for STM.
In order to control for day-to-day variability, CIs and LIs are compared between replicate days (Table 4). Although some fluctuation in LI is observed from day to day, the results are generally reproducible. It is important to note that CI data can vary greatly depending on the control strain used and the environmental conditions of testing. The CI data shown here is typical for this control genotype, but other genotypes may exhibit a higher or lower mean CI and distribution.
Figure 1: Determination of the Courtship Index and Experimental Overview. (A) Images showing stereotypical male courtship behavior towards a female fly. Different stages of courtship behavior are shown: orientation (I), following (II), wing vibration (extension) and tapping (III), licking (IV), and attempted copulation (V). (B) Schematic overview of training and testing times relative to the incubator light cycle, marked in hours. Training times are indicated with bars, resting periods for STM and LTM are indicated with a dashed line, and the testing start point is indicated as an arrow. Note that the testing time for LTM is the day after after training. Please click here to view a larger version of this figure.
Figure 2: Equipment used for the Drosophila Courtship Conditioning Assay. (A) The housing block is a flat, bottom block with 500 µL of powerfood per well. It is sealed with a qPCR adhesive film with at least 4 holes per well that were created using a syringe needle with a 0.8 mm diameter. Individual rows are cut lengthwise into strips using a razor blade to allow opening and closing. (B) The aspirator is required for the gentle transfer of male and female flies without the use of anesthesia. The inset shows the tip of the aspirator, closed with a piece of cotton to keep the flies within the tip. (C) Setup of a two-camera system for the simultaneous recording of two courtship chambers. (D) A courtship chamber with 18 arenas. Sliding entry holes are used to place the flies in the arenas. The white dividers can be simultaneously opened to initiate interaction between the males and females. Please click here to view a larger version of this figure.
Figure 3: Analysis of STM and LTM in Control and Dhap-at Knockdown Flies. (A-B) Boxplots showing the distribution of CI values for naïve (N) and trained (T) flies of the control (gray) and Dhap-at knockdown (white) genotypes tested for STM (A) and LTM (B). (C) Corresponding LI values for control and Dhap-at knockdown flies tested for STM and LTM. Differences in LI between control and knockdown genotypes were compared using a randomization test (10,000 bootstrap replicates). Error bars indicate the standard error of the mean derived from the LI values calculated on different test days. The genotypes are: w+, UAS-dcr2/+; P{KK108109}VIE-260B/+; and elav-Gal4/+ (Control) and w+, UAS-dcr2/+;P{KK101437}VIE-260B/+; and elav-Gal4/+ (Dhap-at-RNAi). Please click here to view a larger version of this figure.
General | Collect | Train | Test | |
day -11 | Start premated female collection cultures (step 1.3) | |||
day -10 | Start cultures for the collection of male test subjects (step 2.2) | |||
day 1 | rep. 1 | |||
day 2 | rep. 2 | |||
day 3 | rep. 3 | |||
day 4 | rep. 4 | rep. 1 | ||
day 5 | rep. 2 | rep. 1 | ||
day 6 | rep. 3 | rep. 2 | ||
day 7 | rep. 4 | rep. 3 | ||
day 8 | rep. 4 | |||
day 9 | Video data analysis and statistics (step 8) | |||
rep = repeat |
Table 1: Example Timeline for Testing LTM over Three Replicates on Individual Days.
Learning | STM | LTM | |
Training time | 1 h. | 1 h. | 8 h. |
Resting time | 0 h. | 1 h. | ~ 24 h. |
start training | 0 h. ALO | 0 h. ALO | 4 h. BLO |
stop training | 1 h. ALO | 1 h. ALO | 4 h. ALO |
start test | 1 h. ALO | 2 h. ALO | 0 h. ALO (next day) |
ALO = after lights turn on, BLO = before lights turn on, STM = short term memory, LTM = long term memory |
Table 2: Training Duration, Training Times, and Testing Times for Learning, STM, and LTM.
Genotype | Learning condition |
CI naive |
CI trained |
LI | LI difference |
Lower limit (95% conficence interval) |
Upper limit (95% conficence interval) |
p-value |
Control | STM | 0.467 | 0.116 | 0.752 | NA | NA | NA | NA |
Dhap-at-RNAi | STM | 0.699 | 0.257 | 0.633 | 0.119 | -0.030 | 0.265 | 0.116 |
Control | LTM | 0.590 | 0.384 | 0.348 | NA | NA | NA | NA |
Dhap-at-RNAi | LTM | 0.697 | 0.650 | 0.068 | 0.280 | 0.103 | 0.446 | 0.003 |
Table 3: Statistical Data Produced from the Analearn Script.
Statistical data produced from the analearn script. The output file of the bootstrapping R-script containing the genotype, learning condition (i.e., learning, STM, or LTM), mean CI naïve, mean CI trained, LI, difference between LI of the control compared to experimental condition (LI dif), the lower limit (LL) and upper limit (UL) of the 95% confidence interval of LI dif, and the p-value indicating the probability that there is no significant difference.
Control | Dhap-at-RNAi | ||||||
Average CI naïve | Average CI trained | LI | Average CI naïve | Average CI trained | LI | ||
STM | Day 1 | 0.300 | 0.125 | 0.584 | 0.679 | 0.239 | 0.648 |
Day 2 | 0.634 | 0.107 | 0.831 | 0.720 | 0.276 | 0.617 | |
All Days | 0.467 | 0.116 | 0.752 | 0.699 | 0.257 | 0.633 | |
LTM | Day 1 | 0.590 | 0.441 | 0.252 | 0.630 | 0.646 | -0.027 |
Day 2 | 0.640 | 0.363 | 0.432 | 0.709 | 0.710 | -0.002 | |
Day 3 | 0.547 | 0.349 | 0.363 | 0.738 | 0.598 | 0.190 | |
All Days | 0.590 | 0.384 | 0.348 | 0.697 | 0.650 | 0.068 |
Table 4: CI and LI Values Obtained on Separate Testing Days.
“naivelevel” determines the text that will identify naïve values for each genotype. The default is “N,” but this can be changed into any other alphanumerical text. |
“refmutation” is set to “NA” (not applicable) by default, but can be changed to the name of the control or the genotype in order to perform statistical comparisons. This will cause the script to automatically select the control genotype. |
"datname” refers to the name of the data file and can be specified in this argument instead of the default file selection. |
"header” can be used to indicate whether or not the data file contains column headers. The default is “TRUE,” but a file with no headers can be used when this argument is changed to “FALSE.” |
"seed” initializes the random number generator. This is set by default to “NA” and ensures a random number each time the script is used. By design, a bootstrap analysis will give slightly different results each time it is run, even when using the same data file. When the seed is specified by any integer number larger than zero, the same set of random bootstrap samples is obtained. |
"writeoutput” can be set to “TRUE” or “FALSE” in order to determine whether an output file will be generated. The default is “TRUE.” |
Table 5: Arguments used in the Analearn Function that Can Alter the Default Settings of the Function to Adjust the Parameters of the Bootstrapping
Supplemental File S1: Building plan of a courtship chamber. The file can be opened with any application that allows .stp extensions (CAD-files). Please click here to download this file.
Supplemental File S2: Example of an Input File for the Analearn Script. Please click here to download this file.
Supplemental File S3: The Analearn.R Acript. The file can be opened with R-studio18. Please click here to download this file.
The courtship conditioning assay is a classic paradigm for the analysis of learning and memory in Drosophila. The protocol presented here follows the general methodology described previously6,7,8,9 but includes unique aspects such as practical guidelines, specialized equipment, and a data analysis script9,12 for randomization tests. Using this protocol, it is possible to analyze large numbers of flies in parallel using 96-well flat-bottom blocks (Figure 2A) to collect and train males. The blocks are sealed with PCR adhesive film, which makes the flies easily accessible when required. Additionally, the unique courtship chambers described here allow for the simultaneous pairing of 18 male-female pairs in a nearly two-dimensional space that is optimal for video analysis. The custom-designed courtship chambers are easy to use, and a building plan is provided (File S1, Figure 2D). This protocol, from the establishment of the cultures used to collect test subjects to the acquisition of video data, takes approximately 20 days (Table 1). Additional time is required for the analysis of video data. In our experience, the STM assay is extremely robust. The LTM assay is also quite robust, but it is more sensitive to confounding environmental variables and therefore can be more difficult to master.
Animal behavior can be quite variable. Therefore, critical steps in the protocol must be performed with care to reduce this variance. First, gentle use of the aspirator (Figure 2B) will reduce the stress that can be imposed by rough handling or by blowing out too strongly. A suggested method of transferring individual flies out of the aspirator is by using negative geotaxis. As flies tend to walk up, one can simply point the tip of the aspirator up; just before the fly reaches the tip, a gentle blow is sufficient to let the fly out. Additionally, to let the males into the courtship chambers before testing, a blow is often not necessary.
Another important step is the collection and generation of male test subjects. All males must be collected when they are very young and socially naïve. This can be achieved by frequent collection during the peak periods of eclosion (step 5.2). If males are not collected in this tight timeframe, they can have early social interactions, which may result in poor learning or high variability in CI. Another factor of male test subjects that should be assessed is the genetic background. Different genetic backgrounds will exhibit different levels of naïve courtship and may also differ in general activity or locomotor ability. When comparing multiple genotypes, care should be taken with regard to genetic background in order to avoid these confounding factors that may influence LI scores. Additionally, the distribution of CI data should be carefully assessed. CI data can be both parametric and non-parametric, depending on the genotype or other environmental factors. In some cases, if the distribution of CI is dramatically skewed away from a normal distribution, it may be better to use the median CI rather than the mean for the calculation of LIs. However, in our experience, the use of median or mean CI does not make a difference in the statistical interpretation of the data, and the use of the mean CI is the common practice in the literature.
For successful courtship conditioning, the active rejection of male courtship attempts by premated females is crucial during the training period. It is important to ensure that the premated females used in this assay have been efficiently mated and are thus not allowing copulation. This premating is established in the mating vials prepared in step 4, where male and females flies are housed together for 4 days (Table 1). Subsequently, mating can be monitored by regular examination of testing videos and by observing male-female pairs during training. If mating does occur, there are several measures that can be taken during the preparation of premated females. First, premated females should be reared under optimal breeding conditions. Vials can be supplemented with yeast paste and a folded filter paper to increase potential mating surfaces. The incubation of flies under the conditions described here has produced robust premated females in the past, but this may vary in different labs and with the use of different genetic strains. Therefore, it may be necessary to optimize the generation of premated females by varying the incubation time and conditions.
Quantification of courtship behavior is another critical step in this protocol. This can be done manually or automatically using specialized software programs9. Automated quantification is fast and, in principle, unbiased. Several programs have been published21,22,23; however, they are not straightforward to use, often requiring specialized video formats and advanced computational skills. Manual quantification is easy and accurate, but it is highly labor intensive and subject to individual variability and bias. It is important to emphasize that this protocol does not address the requirements for video formatting that are potentially required for the automated quantification of CIs. For manual quantification, use any simple video recording device that has the potential to produce a video of sufficient quality to accurately observe courtship behavior. For automated quantification, there will likely be different requirements depending on the software used, and users should investigate this thoroughly if automated quantification is desired.
In combination with the extensive tools that are available for the genetic manipulation of flies, the courtship conditioning assay provides a robust readout that can be used to dissect molecular mechanisms and neuronal networks involved in learning and memory.
The authors have nothing to disclose.
We acknowledge the Vienna Drosophila Resource Center for providing the Drosophila strains. Additionally, stocks obtained from the Bloomington Drosophila Stock Center (NIH P40OD018537) were used in this study. This research was supported in part by the European Union’s FP7 large-scale integrated network Gencodys to K.K., H.v.B., and A.S. and by NSERC Discovery and CIHR Project Grants to J.M.K.
P{KK101437}VIE-260B | VDRC | 101437 | Dhat-at-RNAi in 60100 background |
P{KK108109}VIE-260B | – | – | Control-RNAi in 60100 background (gift from K. Keleman) |
w+, UAS-dcr2/yhh;;elav-Gal4 (III) | – | – | panneuronal driver line |
Containers for plant tissue culture | VWR | 960177 | 175 mL plastic vials |
Folded filters | Whatman | 10311643 | Filter paper to enlarge area flies can pupate on |
Flat-bottom blocks (96-wells) | Qiagen | 19579 | Used for housing blocks |
MicroAmp Clear Adhesive Film | Applied Biosystems | 4306311 | PCR adhesive film as lid on flat-bottom blocks |
Razor blade | – | – | Any sharp will do |
Needle | – | – | 0.8 mm diameter |
Aspirator | – | – | Cut a 1mL pipet tip with scissors in order to have two pieces. The narrow tip of the pipettip is placed as fly entrance in a ~80 cm flexible hose. To prevent a fly from getting in the hose, a normal piece of cotton or small mesh gaze is placed in between the tip and the hose. The other half of the pipettip can be used as mouth piece at the end of the hose. |
Courtship chambers | – | – | file S1 can be opened with indicated CAD software |
Camcorder | Sony | – | camera specification: >4M pixels, full HD. For manual quantification, any simple video recording device has the potential to produce a video of sufficient quality to observe courtship behavior accurately. For automated quantification, there will likely be different requirements depending on the software to be used, and users should investigate this thoroughly if automated quantification is desired. |
Name | Company | Catalog Number | Yorumlar |
power food | |||
Agar | Sigma | A7002 | |
Yeast | Bruggeman | – | |
Yeast extract | MP biomedicals | 0210330391 | |
Peptone | Sigma | P6838 | |
Sucrose | Sigma | S9378 | |
Glucose | Sigma | G7021 | |
MgSO4 | Sigma | M2643 | |
CaCl2 | Merck | 1023780500 | |
Methylparabene (CAUTION) | Sigma | H5501 | |
Propionic acid (CAUTION) | Sigma | P1386 | |
Demineralized water | – | ||
Yeast paste | – | yeast grains and water mixture in a 1:1 ratio | |
Name | Company | Catalog Number | Yorumlar |
normal food | |||
Agar | MP biomedicals | 215017890 | |
Yeast | bruggeman | – | |
Corn flour | de Molen | – | |
Sugar | de Molen | – | |
Methylparabene (CAUTION) | Sigma | H5501 | |
Propionic acid (CAUTION) | Sigma | P1386 | |
Demineralized water | – |