Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2018 Mar 13;8:4469. doi: 10.1038/s41598-018-22777-w

High-throughput fecundity measurements in Drosophila

Pierre Nouhaud 1,#, François Mallard 1,2,#, Rodolphe Poupardin 1,#, Neda Barghi 1, Christian Schlötterer 1,
PMCID: PMC5849729  PMID: 29535355

Abstract

Fecundity is probably the most frequently studied fitness component in Drosophila. Nevertheless, currently used methods to measure fecundity are not well-suited for large-scale experiments, with many populations being assayed in parallel. Here we present a standardized pipeline to measure fecundity in many Drosophila population samples with substantially reduced hand on times. Using a high-contrast medium for egg laying, we developed a Java plug-in for ImageJ to quantify the number of eggs by image processing. We show that our method is fast and provides reliable egg counts.

Introduction

Over the past years, Drosophila has been a widely used model in evolutionary biology because of its ease-of-use and short generation time. Of central interest has been the characterization of life history traits (e.g., life span, fecundity, mating competitiveness) under laboratory conditions as they are closely linked to fitness and are thus predicted to be under strong directional selection1. Female fecundity, estimated by the number of eggs laid, is a widely used proxy for fitness2.

Because manual egg counting is labor intensive, several methods have been developed for automated egg counting, all relying on image analysis. Quantifly, a java tool based on machine learning, has been designed for counting eggs automatically from images3. This method is attractive as it needs little manipulation, but it is mainly designed for small surfaces (i.e. narrow vials), as the software only processes low resolution pictures (≤756 × 756 pixels). In another approach4 eggs are laid on hard agar, washed and transferred on a black filter paper using a vacuum filtration system through a large Büchner funnel. A picture of the eggs on black paper is taken with a desktop scanner and analyzed using the particle count plug-in of the ImageJ software5. This method is reliable and precise but the substantial hands-on time limits its use for large-scale experiments. Other imaging methods have been developed for amphibian or mosquito models but are not adapted for large-scale experiments in Drosophila6,7.

Automatic egg counting using imaging methods faces many challenges: eggs can be unevenly distributed, making clumps or having variable orientations and shapes. Moreover, when pictures are directly taken from the medium on which flies lay eggs, heterogeneity of the medium and rough surfaces can result in false positives. Another important factor is the softness of the medium as it affects the number of eggs laid and is highly dependent on the assayed species8.

Fecundity is a highly plastic trait, strongly affected by population density915. For a reliable comparison of fecundity data, it is essential to minimize the influence of environmental factors by maintenance in a common environment for a number of generations, i.e. common garden. Density in common garden experiments (CGE) is best controlled by counting the number of eggs. Again, manual counting is highly time-consuming, precluding large-scale experiments.

In this study, we developed a standardized pipeline to measure fecundity in Drosophila at the population level. We first developed a density control procedure to transfer a specific amount of eggs into bottles containing Drosophila medium in order to rear different populations under a CGE. To reduce transgenerational effects, we typically control density for at least two generations. We quantify the number of eggs on a dedicated medium by coupling a camera to a dedicated image processing pipeline. The whole procedure was designed to minimize the manipulation of flies and avoid time-consuming steps.

Methods

Egg density control

Manual egg counting is a tedious and time-consuming task. We developed a simple yet fast and efficient method to transfer quickly and precisely a user-defined number of eggs into bottles/vials using a pipetting procedure based on a protocol developed by Clancy & Kennington16. The protocol detailed below is designed for setting up 5 bottles each containing 400 eggs. If different number of bottles and eggs are desired, the protocol can be easily adjusted. In the evening, adult Drosophila simulans flies are transferred into embryonic collection cages (Cat. #59–101, Genesee Scientific, San Diego, California) with a Petri dish containing a dedicated egg-laying medium (4% agar and 4% sucrose topped with 1 ml yeast paste). The yeast paste stimulates egg laying1719 and the high agar concentration prevents inserting eggs in the agar. Egg laying should be kept as short as possible to prevent hatching of eggs (note the temperature dependence of developmental rates). Eggs laid on the surface are easily collected on the next day using a fine brush. Eggs are placed on a fine net and yeast paste is removed by careful rinsing with tap water (at ambient temperature). Eggs are transferred into a 1.5 ml Eppendorf tube containing 200 µl PBS (1 mM Calcium chloride dihydrate, 0.5 mM Magnesium Chloride Hexahydrate, pH = 7.4). After settling of eggs at the bottom of the tube, the volume of eggs is compared to a range of tubes containing 50 to 70 μl of PBS by increments of 5 μl. The volume of eggs is then adjusted to 60 µl through visual comparisons by pipetting excess eggs with a clipped tip. Excess PBS is removed from the tube and 1200 µl PBS (i.e., 20x the initial egg volume) is added to the eggs. They are suspended by gently blowing them in and out of a clipped tip (to reduce sheering forces that could damage the eggs). 200 µl of this suspension is transferred to a bottle containing standard Drosophila medium and contains around 400 eggs (see Results).

With the size and volume of eggs varying between species/populations, this protocol requires a prior calibration to adjust the volume of the suspension. We validated our method by manually counting the number of eggs after pipetting under a stereomicroscope. The deviation between the observed and expected number of eggs (400) was tested using a Wilcoxon test.

Egg hatchability assay

The procedure described above is dedicated to efficiently transfer a precise number of eggs to into new food medium. Because the larvae density rather than the egg density is critical in experiments, we quantified the incidence on the egg hatchability of our two successive manipulations (rinsing the eggs with tap water and their immersion in PBS). We collected freshly laid eggs (<6 hours) from a D. simulans population split into nine embryonic collection cages with a Petri dish containing a medium that stimulates egg-laying (37.5 gr agar, 1.5 L water, 50 gr sucrose, 500 ml grape juice). The eggs collected from each cage were randomly assigned to one of the three following treatments: (i) eggs were washed with tap water and immersed in PBS for 15 minutes; (ii) eggs were washed with tap water only; (iii) eggs were not washed at all. For each cage, three independent sets of 50 eggs were manually counted and transferred individually with a brush to fresh grape plates. After 40 hours, the number of eggs hatched to larvae was counted within each plate.

To test for the effect of washing the eggs with water and PBS we fitted a generalized linear mixed model (using a binomial distribution) with one fixed categorical effect (treatment) and 3 levels (described above). Replicates of each cage were treated as random effects. Significance of the fixed effect was tested using ANOVA F-tests.

Preparation of a high-contrast medium for fecundity assays

Proper quantification of the number of eggs by image analysis requires a dark medium against which the light eggs provide a strong contrast. Furthermore, the medium needs the right softness - in too soft medium eggs will not remain on the surface and too hard medium results in reduced egg laying. Throughout this study, we used ROTH Agar-Agar, Kobe 1 (density 0.55). Note that different agar types can affect the softness of the final media and thus the flies egg-laying.

To determine the proper softness of the medium, we tested the fecundity on media with different agar concentrations at 0.7, 1, 2 and 3%. Populations of 100 D. simulans flies each laid eggs during 36 hours in population cages. For each concentration, we measured the number of eggs for two replicated populations. Every 12 hours the high-contrast medium plates were replaced with new ones to avoid egg hatching (i.e., a “transfer”), and eggs were manually counted under a stereomicroscope. We tested for the effect of the recipe on egg counts using a generalized linear mixed model (setting agar concentration as a fixed effect and population and transfer as random effects) followed by a post-hoc Tukey’s honest significant difference (HSD) test with correction for multiple testing.

We obtained best results with this recipe: 950 ml water, 6.9 g agar, 5 g active charcoal and 19 g yeast yield one liter medium, resulting in an agar concentration of 0.7%. The medium is autoclaved (20 min at 120 °C), and when cooled down to 65–70 °C, 83 g malt syrup and 1.3 g Nipagin diluted in 4.2 ml 96% EtOH are added. After stirring, the medium is poured into Petri dishes and bubbles are removed using a Bunsen burner flame and sterile pipette tips.

Picture acquisition

Pictures need to be in focus, thus constant framing and lighting are key for high-quality data. We used a Canon EOS 750D with a 18–55 mm lens (Canon, Tokyo, Japan) held in a fixed position, 30 cm above the high-contrast medium plate using a wall mount bracket (see Fig. S1 for the camera setup). The specific DLSR camera model does not matter as long as a sufficiently high resolution (>15 millions pixels), a full manual mode and the possibility of remote control by a computer are provided. We used guides below the camera to facilitate the orientation of the Petri dish relative to the camera - thus allowing for rapid change of Petri dishes. The background behind Petri dishes was white for high contrast to the dark agar in the Petri dishes. The light source was a SCHOTT KL 1600 LED system covered with a paper to diffuse the light and avoid strong reflections.

Pictures were taken using a 2-second exposure, F16 aperture, and 200 iso (high iso values will increase the noise; parameters may change depending on the light and camera setup). The camera was remotely controlled by a computer using EOS Utility 2 software (Canon, Tokyo, Japan). Focus was done manually (the use of a small aperture - F16 - facilitates manual focusing) using the “Live View” function of the software. Using the automatic software timer further facilitates a rapid data acquisition.

To provide reliable results, it is critical that all parameter values (e.g., light source, zoom value, white balance, picture resolution, aperture) remain constant throughout the course of the experiment.

Quantification of the number of eggs with ImageJ

We developed a Java plug-in for ImageJ software5 to perform batch analyses of pictures (File S1). The plug-in automatically detects the area of interest (dark and circular area on a white background) using a wand tracing tool. Based on the particle detection program of ImageJ, it first transforms colored pictures into 8-bit grey pictures and then into simple black and white pictures using different thresholds of detection (Fig. S2). Particles within the area of interest (i.e., the plate) are detected along with their position on the picture (xy coordinates), surface area (in pixels2), perimeter, the lengths of their major and minor dimensions (in pixels) and the angle between these two dimensions.

This plug-in is derived from the “Batch population sensor” described in Mallard et al.20 (see File S1 of the original paper for a complete description). It is designed to analyze recursively multiple images automatically. This plug-in was initially designed to analyze a set of pictures containing moving particles on a fixed background. It was modified here to analyze pictures individually but most of the initial settings and options have been kept. It includes multiple image pre-treatments, the possibility to scale the pictures using a visual mark, and several options that allow an efficient recognition of the area of interest (here the Petri dish boundaries). The default options have been optimized for our settings but are fully described in the original paper. Here, we included an additional option that restricts the analysis to a given file extension, that is not available in the initial version. It is set by default to”.JPG” in the first option pop-up window after the input and output directories selection and can be inactivated.

For each picture, all metrics are saved in a spreadsheet named according to the directory path of the picture used as input file (Fig. S3). Combined with a suitable directory structure, this feature allows storing any suitable information that could be useful for follow up analyses (e.g., population ID, transfer, treatment).

In addition to eggs, the plug-in also detects particles present on the high-contrast medium (e.g., dust). Therefore, we developed an R script to derive empirical filtering steps. The main function combines the tables exported by the ImageJ plug-in for each picture and filters eggs assuming a bimodal distribution of the particles area, with the first mode corresponding to dust and other small particles and the second mode to eggs (Fig. S4).

Validation of the pipeline for fecundity estimates

We tested whether the automated egg counting provides accurate numbers by comparing the obtained numbers with manual egg counts in a fecundity assay with two D. simulans populations. After two generations of density control under common garden conditions, five replicates of 100 individuals were transferred into large embryo collection cages for each population. Five transfers were made and for each the number of eggs was estimated by our pipeline and manually counted under a stereomicroscope. The concordance between manual counts and the automated estimates was determined by Spearman’s rank correlation.

Unless stated otherwise, all data analysis and statistical tests were performed in R version 3.3.221.

Data availability

The R script developed for statistical analyses and data visualization is available in Dataset 1. All data generated during the current study (including raw pictures), the Java plug-in for ImageJ and its associated R script for post-processing are available on FigShare (https://figshare.com/projects/High-throughput_fecundity_measurements_in_Drosophila/27562).

Results and Discussion

Reliable transfer of defined egg quantities by pipetting

We tested the accuracy of the pipetting method by counting manually 72 trials, each with 200 µl suspension containing about 400 eggs (Fig. 1). On average, we counted 394 eggs (sd = 50.9), with half of the measurements comprised between 371 and 434, showing that our pipetting protocol allows for a controlled distribution of 400 eggs (Wilcoxon test, P = 0.94). It is a fast and accurate approach to control for egg density in large-scale experiments, with five bottles being set up in less than five minutes.

Figure 1.

Figure 1

Pipetting reliably transfers the targeted number of eggs. 72 pipetting trials, each aiming for 400 eggs were performed. Eggs were counted manually under a stereomicroscope. The box plot summarizes the entire experiment, while the gray diamonds indicate the egg counts for each trial.

Washing eggs does not affect hatchability

To rule out that our procedure affects the final larvae density in the medium, we tested whether our protocol affects the mean egg hatchability. We found no significant difference between the number of hatched eggs that were 1) not washed at all (40.89 ± 2.15 out of 50), 2) washed with water only (42.38 ± 2.77) and 3) washed with water and transferred to PBS (41.56 ± 2.46, generalized linear model, P = 0.94).

Softness of medium affects fecundity

We evaluated the impact of the agar concentration on the number of eggs laid. We notice a marked influence of the agar concentration on the number of eggs laid – higher agar concentrations resulted in fewer eggs (Fig. 2 and Data S2, generalized linear mixed model followed by Tukey’s HSD test with correction for multiple testing, P0.7–1% < 0.001, P0.7–2% < 0.001, P0.7–3% < 0.001, P1–2% = 0.013, P1–3% < 0.001, P2–3% = 0.69). A difference of 0.3% agar reduces the number of eggs by 50% (Fig. 2, median0.7% = 133, median1% = 59). Based on these results, we used an agar concentration of 0.7% for the rest of the experiments, which also matches the agar concentration in our standard Drosophila medium.

Figure 2.

Figure 2

Effect of agar concentration on the number of eggs laid. At each concentration, six replicated populations (grey diamonds) of 100 D. simulans each laying eggs for 12 hours and eggs were counted manually. Black bars depict medians. No significant difference in egg counts was detected between recipes at 2% and 3%, all other comparisons were significantly different at P < 0.05 (GLMM followed by Tukey’s HSD test, see main text for P-values).

Reliable egg counts with the automated procedure

To ensure that our computer-assisted method provides reliable egg counts, we subjected the same set of high-contrast medium plates to both manual and automated counting procedures. The two methods provided very similar results (Spearman’s rank correlation, ρ = 0.934, Fig. 3). However, at very high egg densities (>500), the automated estimates are downward biased. Visual inspection of the plates revealed that this is due to egg clustering on the medium. Our automated procedure considers egg clusters as a single big particle that is filtered out because of its size, hence underestimating egg counts. Decreasing the number of flies assayed in each population cage avoids this bias of the automated procedure.

Figure 3.

Figure 3

Accuracy of the automated egg counting procedure. The number of eggs was measured for two populations of 100 D. simulans individuals for which fresh high-contrast medium plates were provided every 12 hours (i.e. a “transfer”). After each transfer, eggs were counted manually and automatically. Each population was replicated five times, and five transfers were made. The automated procedure provides reliable results similar to the manual counting (Spearman’s rank correlation, ρ = 0.934). The dashed line has a slope of one.

Conclusion

Here, we present an integrated pipeline to control for egg density and measure fecundity in Drosophila laboratory experiments. Designed to avoid time-consuming steps while maintaining a high level of precision, our method is particularly suited for large-scale experiments where many populations are assayed in parallel.

While this protocol has been extensively tested in D. simulans, it would require minor adjustments depending on the species and experimental parameters of interest (e.g., volume to be pipetted for density control, hardness of the medium, population census size for the fecundity assay).

Electronic supplementary material

Dataset 1 (7.3KB, txt)

Acknowledgements

We acknowledge Élio Sucena for discussions about the egg pipetting protocol. We thank Thomas Brenner, Regina Cavallaro, Katharina Fritz, Andreea Hanu, Diego Oxilia Speratti, David Wieser, and Kathrin Otte for their assistance with fly work, and Marlies Dolezal for statistical advice. François Mallard was supported by a Marie Skłodowska-Curie Actions fellowship. This work was funded by the European Research Council (ERC) grant “ArchAdapt.”

Author Contributions

All authors designed the research, P.N., R.P., F.M. and N.B. performed research, P.N., F.M., R.P. and N.B. analyzed the data, F.M. contributed reagents/materials/analysis tools, P.N., R.P. and C.S. wrote the paper, P.N. and R.P. prepared the figures, and all authors reviewed drafts of the paper.

Competing Interests

The authors declare no competing interests.

Footnotes

Pierre Nouhaud, François Mallard and Rodolphe Poupardin contributed equally to this work.

Electronic supplementary material

Supplementary information accompanies this paper at 10.1038/s41598-018-22777-w.

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Falconer, D. S. et al. Introduction to quantitative genetics (4th edn). Trends Genet. 12, 280 (1996).
  • 2.Barnes AI, Wigby S, Boone JM, Partridge L, Chapman T. Feeding, fecundity and lifespan in female Drosophila melanogaster. Proc. R. Soc. B Biol. Sci. 2008;275:1675–1683. doi: 10.1098/rspb.2008.0139. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Waithe, D., Rennert, P., Brostow, G. & Piper, M. D. W. QuantiFly: Robust trainable software for automated Drosophila egg counting. PLoS ONE10, (2015). [DOI] [PMC free article] [PubMed]
  • 4.Burke MK, et al. Rapid divergence and convergence of life-history in experimentally evolved Drosophila melanogaster. Evolution. 2016;70:2085–2098. doi: 10.1111/evo.13006. [DOI] [PubMed] [Google Scholar]
  • 5.Schneider CA, Rasband WS, Eliceiri KW. NIH Image to ImageJ: 25 years of image analysis. Nat. Methods. 2012;9:671–675. doi: 10.1038/nmeth.2089. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Bohenek, J. R. & Restarits, W. J., Jr An optimized method to quantify large numbers of amphibian eggs. Herpetol. Notes10 (2017).
  • 7.Gaburro J, Duchemin J-B, Paradkar PN, Nahavandi S, Bhatti A. Assessment of ICount software, a precise and fast egg counting tool for the mosquito vector Aedes aegypti. Parasit. Vectors. 2016;9:590. doi: 10.1186/s13071-016-1870-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Karageorgi M, et al. Evolution of Multiple Sensory Systems Drives Novel Egg-Laying Behavior in the Fruit Pest Drosophila suzukii. Curr. Biol. 2017;27:847–853. doi: 10.1016/j.cub.2017.01.055. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Lewontin RC. The Effects of Population Density and Composition on Viability in Drosophila melanogaster. Evolution. 1955;9:27–41. doi: 10.1111/j.1558-5646.1955.tb01511.x. [DOI] [Google Scholar]
  • 10.Ohnishi S. Effects of Population Density and Temperature Condition on Fitness in Drosophila melanogaster. Environ. Control Biol. 1977;15:27–35. doi: 10.2525/ecb1963.15.27. [DOI] [Google Scholar]
  • 11.Joshi A, Mueller LD. Evolution of Higher Feeding Rate in Drosophila Due to Density-Dependent Natural Selection. Evolution. 1988;42:1090–1093. doi: 10.1111/j.1558-5646.1988.tb02527.x. [DOI] [PubMed] [Google Scholar]
  • 12.Ribó G, Ocaña J. & Prevosti, a. Effect of larval crowding on adult mating behaviour in Drosophila melanogaster. Heredity. 1989;63(Pt 2):195–202. doi: 10.1038/hdy.1989.92. [DOI] [PubMed] [Google Scholar]
  • 13.Sokolowski MB, Pereira HS, Hughes K. Evolution of foraging behavior in Drosophila by density-dependent selection. Proc. Natl. Acad. Sci. 1997;94:7373–7377. doi: 10.1073/pnas.94.14.7373. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Stewart BA, McLean JR. Population density regulates Drosophila synaptic morphology in a Fasciclin-II-dependent manner. J. Neurobiol. 2004;61:392–399. doi: 10.1002/neu.20096. [DOI] [PubMed] [Google Scholar]
  • 15.Baldal EA, Van Der Linde K, Van Alphen JJM, Brakefield PM, Zwaan BJ. The effects of larval density on adult life-history traits in three species of Drosophila. Mech. Ageing Dev. 2005;126:407–416. doi: 10.1016/j.mad.2004.09.035. [DOI] [PubMed] [Google Scholar]
  • 16.Clancy DJ, Kennington WJ. A simple method to achieve consistent larval density in bottle cultures. Drosoph. Inf. Serv. 2001;84:168–169. [Google Scholar]
  • 17.Dweck HKM, Knaden M, Hansson BS. Functional loss of yeast detectors parallels transition to herbivory. Proc. Natl. Acad. Sci. 2015;112:2927–2928. doi: 10.1073/pnas.1501319112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Becher PG, et al. Yeast, not fruit volatiles mediate Drosophila melanogaster attraction, oviposition and development. Funct. Ecol. 2012;26:822–828. doi: 10.1111/j.1365-2435.2012.02006.x. [DOI] [Google Scholar]
  • 19.Palanca, L., Gaskett, A. C., Günther, C. S., Newcomb, R. D. & Goddard, M. R. Quantifying Variation in the Ability of Yeasts to Attract Drosophila melanogaster. PLoS ONE8 (2013). [DOI] [PMC free article] [PubMed]
  • 20.Mallard F, Bourlot VL, Tully T. An Automated Image Analysis System to Measure and Count Organisms in Laboratory Microcosms. PLOS ONE. 2013;8:e64387. doi: 10.1371/journal.pone.0064387. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.R Development Core Team, R. F. F. S. C. R: A Language and Environment for Statistical Computing. Vienna Austria R Found. Stat. Comput. 1, ISBN 3-900051-07-0 (2008).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Dataset 1 (7.3KB, txt)

Data Availability Statement

The R script developed for statistical analyses and data visualization is available in Dataset 1. All data generated during the current study (including raw pictures), the Java plug-in for ImageJ and its associated R script for post-processing are available on FigShare (https://figshare.com/projects/High-throughput_fecundity_measurements_in_Drosophila/27562).


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES