Skip to main content
microPublication Biology logoLink to microPublication Biology
. 2022 May 26;2022:10.17912/micropub.biology.000567. doi: 10.17912/micropub.biology.000567

An automated approach to quantify chemotaxis index in C. elegans

Timothy A Crombie 1, Chido Chikuturudzi 1, Daniel E Cook 1, Erik C Andersen 1,§
Reviewed by: Anonymous
PMCID: PMC9136590  PMID: 35647500

Abstract

Chemotaxis assays are used extensively to study behavioral responses of Caenorhabditis nematodes to environmental cues. These assays result in a chemotaxis index (CI) that denotes the behavioral response of a population of nematodes to a particular compound and can range from 1 (maximum attraction) to -1 (maximum avoidance). Traditional chemotaxis assays have low throughput because researchers must manually setup experimental populations and score CIs. Here, we describe an automated methodology that increases throughput by using liquid-handling robots to setup experimental populations and a custom image analysis package, ct, to automate the scoring of CIs from plate images.


Figure 1. An automated assay workflow yields robust chemotaxis measurements.


Figure 1.
An automated assay workflow yields robust chemotaxis measurements.

(A) The experimental workflow is shown. (A1-3) Nematodes are grown for three generations prior to being transferred to chemotaxis assay plates as synchronized fourth larval stage animals (L4s). (A4) Compounds are added to the chemotaxis assay plates using the guides (gray) that are laser etched into the custom acrylic plate holder and are visible through the NGMA plates. (A5) The animals are left to respond to cues for one hour at 20°C then the plates are transferred to 4°C before imaging. (A6) The image processing steps performed by ct are shown. The steps result in an output file with the chemotaxis index (CI) calculated for each image passed to the ct command. (B) A map of isolation locations for the 11 strains used in this experiment (red points), the other wild C. elegans strains available from the Caenorhabditis elegans Natural Diversity Resource (CeNDR) are also shown (gray points) (release 20210121) (Cook et al. 2017). (C) The genetic relatedness of CeNDR strains are shown as an unrooted tree, and the 11 strains used here are colored red and the other 529 CeNDR strains are colored black. (D) The relationship between manual CI calculations and automated CI calculations for identical images is shown. The coefficient of determination (R 2 ) and the linear regression equation are shown for each compound. The linear models were calculated using CIs of all 11 strains for either 1-octanol or isoamyl alcohol. (E) To test for a strain-dependent systematic error in our method, we fit a regression model of the form ( automated CI ~ manual CI + strain) . The strain coefficient estimates from the regression model are shown normalized to the reference strain, N2. The points represent the normalized estimate values and the horizontal lines represent 95% confidence intervals around the estimates. We did not detect a systematic effect of strain on method agreement by ANOVA (F(10,181) = 1.51, p = 0.138).

Description

The Caenorhabditis elegans chemosensory system can detect a variety of volatile (olfactory) and water-soluble (gustatory) compounds associated with nutrients, danger, or competitors in their natural environment (Bargmann, 2006). In response to some chemicals, nematodes will move towards the cue (positive chemotaxis) or actively avoid it by moving away (negative chemotaxis) (Bargmann, 2006). Behavioral responses to environmental cues are often studied using a chemotaxis assay, where the movement of animals on an assay plate is recorded after an exposure to a compound. These assays yield a chemotaxis index (CI) that denotes the behavioral response to the particular compound on a scale ranging from 1 to -1, i.e. , maximum attraction to maximum avoidance, respectively. Over the last 50 years, various chemotaxis assay protocols have been used to discover the genes, molecular mechanisms, and neuronal circuits underlying olfaction, olfactory preferences, and the control of chemotactic behaviors in C. elegans (Bargmann et al., 1993; Itskovits et al., 2018; Troemel et al., 1997; Ward, 1973). These assays have also been central to the observation that C. elegans might learn to adapt to olfactory cues through the formation of short and long-term memories (Colbert and Bargmann, 1995; Kauffman et al., 2011), and that C. elegans demonstrate innate preferences for bacterial food sources (Zhang et al., 2005). However, most of this research was performed using a single laboratory-adapted genetic background, N2, which means that relatively little is known about how natural genetic variation influences these traits. The few studies exploring natural genetic variation have revealed that different C. elegans strains have distinct preferences among bacterial species and vary in their ability to distinguish among bacterial food sources (Glater et al., 2014; Volkers et al., 2013). One of the largest challenges to exploring the role of natural genetic variation in behaviors driven by the chemosensory system is the limited throughput of traditional chemotaxis assays because they require manual setup and scoring.

One well established chemotaxis assay protocol measures CIs using standard 6 cm NGM plates divided into quadrants as a test arena (Margie et al., 2013). In this design, developmentally synchronized nematodes are transferred to the center of a plate, a test compound is spotted in two of the four quadrants, and a control compound is spotted in the other quadrants, all spots are equidistant from the center and are mixed with sodium azide to paralyze animals once they reach the spot. After the nematodes explore the plate for one hour, the number of animals in each quadrant are counted and the CI is calculated as the number of animals in the test quadrants minus the number of animals in the control quadrants divided by the total number of animals that have left the center region. Although this methodology is simple to use and provides robust results, it is difficult to scale to large experiments because it requires researchers to manually observe and record the position of every nematode on each plate.

Here, we describe a chemotaxis assay methodology that increases throughput by using liquid-handling robots to setup chemotaxis plates and custom image analysis scripts to automate the calculation of CIs from plate images. Our protocol begins by propagating strains for three generations to control for the transgenerational effects of starvation on the source plates (Figure 1-A1). Gravid adults are bleach synchronized to collect embryos then the embryos are titered in K medium to 1 embryo/µL and left overnight without food to arrest as L1s. The following day, approximately 1000 arrested L1s are transferred to each of three 6 cm NGMA plates per strain and grown at 20°C for 48 hours until they reach the L4 larval stage (Figure 1-A2). We wash the L4s off the plates with M9 and use the COPAS BIOSORT (Union Biometrica; Holliston, MA) to dispense 50 developmentally synchronized fourth larval stage (L4) animals to the center of 6 cm chemotaxis plates. To accurately dispense nematodes, we fabricated a custom plate holder from acrylic that fits securely on the BIOSORT stage and accommodates six chemotaxis plates (Figure 1-A3). If a COPAS BIOSORT is not available, 50 µl of a 1 L4/µL nematode suspension can be manually pipetted to the center using the plate holder target guides. After nematodes are transferred to the six plates, the plate holder is removed from the BIOSORT stage if necessary and test compounds are added to the quadrants using a multi-channel pipette. The plate holder is designed so that multiple test compounds can be added in a single pipette step. The exact positioning of the test spots is guided by targets laser etched into the plate holder (Figure 1-A4). Once the compounds are added, the plates are removed from the holder and transferred to a 20°C incubator for one hour to allow the animals to respond to the test compounds (Figure 1-A5). Afterwards, the plates are transferred to 4°C to arrest animal movement and await imaging. Working in tandem, a pair of researchers can quickly process chemotaxis plates by using two plate holders and cycling through the assay steps six plates at a time. The plates can be left at 4°C for up to five days prior to imaging. Any microscope with a camera attachment and an appropriate field of view can be used to acquire images, but we used a previously described imaging system (Churgin and Fang-Yen, 2015).

In our assay, the quantification of CIs from plate images is automated using our custom command line utility ct, which is written in Python and easily installed under Linux/OSX systems using the instructions at the following GitHub repository: https://github.com/AndersenLab/chemotaxis-cli . Although we have not tested ct on a Windows operating system, it should install and run without issue. ct identifies the plate boundaries in a raw image, segments objects on the plate from the background, filters out non-nematode objects, assigns quadrant positions to the nematode objects on the plate, measures the total area of nematode objects within each quadrant, then calculates a CI for a particular plate without the need for manual counting (Figure 1-A6). Importantly, ct does not attempt to count individual nematodes because this leads to errors when nematodes are clumped together tightly on plates (Wählby et al., 2012), instead the pixel area of nematode-objects is used as a proxy for nematode counts. ct outputs intermediate image files for debugging purposes, and a results file in text format with rows for each image processed and several data fields for each row, including the number of pixels for nematode objects in each quadrant, the total number of non-nematode pixels filtered from the image, and the CI for the image. Detailed installation and usage notes for ct are available at the GitHub repository linked above.

We validated our automated approach by comparing the CIs calculated with ct to CIs calculated using manual counts of nematodes in the same images. For this test, we measured CIs to a known repellant, 1-octanol, and a known attractant, isoamyl alcohol (Bargmann et al., 1993; Chao et al., 2004). To test whether ct would work when applied to different genetic backgrounds, we also performed the comparisons across 11 different wild strains isolated from around the globe (Figure 1-B,C). We found that the two methods were highly correlated ( R 2 = 0.91) when comparing CIs for isoamyl alcohol across 11 different C. elegans strains (Figure 1-D). The methods were less correlated when comparing CIs for 1-octanol ( R 2 = 0.71) but still highly correlated. We believe one the reason that ct performed worse for 1-octanol relative to isoamyl alcohol is because 1-octanol is weakly soluble in water and the edge of the unabsorbed test spot was occasionally detected as a nematode object by ct. This limitation could be overcome by careful adjustment of the plate illumination so that unabsorbed test spots do not reflect illumination light in the images. We also examined whether our method could introduce systematic error in a strain-dependent manner by testing for an effect of strain with the regression model ( automated CI ~ manual CI + strain ). We did not detect a systematic effect of strain by ANOVA (F(10,181) = 1.51, p = 0.138), as is evident by the overlap of the strain coefficient estimates from the regression model (Figure 1-E). These results suggest that our method does not suffer from systematic error induced by a strain effect. Next, we calculated the broad-sense heritability ( H 2 ) of CIs among our strains using either the automated or manual CI estimates. The H 2 estimates indicate the proportion of total phenotypic variance explained by strain differences and are useful metrics to assess whether genetic variation influences a trait of interest. We found that H 2 estimates were within a similar range when calculated from either the automated or manual CIs (automated CI: 1-octanol H 2 = 0.28, isoamyl alcohol H 2 = 0.26 | manual CI: 1-octanol H 2 = 0.16, isoamyl alcohol H 2 = 0.25), suggesting that ct could be useful for dissecting the natural genetic variants underlying differences in chemotaxis behavior among wild C. elegans strains.

This study describes a new methodology to increase the throughput of chemotaxis assays while maintaining assay accuracy. We propose that this method could be used to facilitate large-scale genetic mappings of behavioral responses to various test compounds.

Methods

Strains

Animals were grown at 20°C and fed E. coli OP50 grown on modified nematode growth media (NGMA) containing 1% agar and 0.7% agarose to prevent burrowing (Andersen et al., 2014). We used the wild-isolated strains CB4856, CX11314, DL238, EG4725, JT11398, JU258, JU775, LKC34, MY16, MY23, and the laboratory-adapted canonical reference strain N2. All strains are available from the C. elegans Natural Diversity Resource (CeNDR) (Cook et al., 2017).

Chemotaxis Assay

Prior to the start of the assay, the strains were each transferred for three generations then bleached to collect embryos. The embryos were then titered in K medium to 1 embryo/µL and left overnight without food to arrest as L1s. The following day, approximately 1000 L1s were transferred to each of three 6 cm NGMA plates per strain. Then, the animals were grown at 20°C for 48 hours, washed from the plates with M9, and sorted as L4s onto 6 cm chemotaxis assay plates using the COPAS BIOSORT (Union Biometrica; Holliston, MA) and a custom fabricated plate holder: https://github.com/AndersenLab/chemotaxis-cli/tree/master/customPlateHolder . The test compounds or experimental controls were then spotted on the plates using the holder guides for placement. All spotting solutions were prepared with 1 M sodium azide to paralyze animals as they encountered the spots (Margie et al., 2013). After one hour at 20°C, the plates were transferred to 4°C and imaged within 72 hours. The chemotaxis assays were performed in three experimental blocks. Each block contained all 11 strains with three replicate chemotaxis plates per strain per test compound.

Statistical analysis

All statistics and plotting were performed using R statistical software (v4.1.1) (R Core Team, 2020). Linear models were fit to CI data to compare assay methods using the lm function in the stats package. The ANOVA to test for the strain effect was performed using the anova function in the stats package. To calculate broad-sense heritability ( H 2 ), we first used the lmer function in the lme4 package to model the CI phenotypes with strain as a random effect ( phenotype ~ 1 + (1|strain) ) (Bates et al., 2015). We then calculated H 2 as the fraction of the total phenotypic variance that could be explained by the random component (strain) of the mixed model, as described previously (Zdraljevic et al., 2019).

Acknowledgments

Acknowledgments

this.convertHTML(ack)

Funding

This research was supported by start-up funds from Weinberg College of Arts and Sciences and the Molecular Biosciences department at Northwestern University.

References

  1. Andersen EC, Bloom JS, Gerke JP, Kruglyak L. A variant in the neuropeptide receptor npr-1 is a major determinant of Caenorhabditis elegans growth and physiology. PLoS Genet. 2014 Feb 27;10(2):e1004156–e1004156. doi: 10.1371/journal.pgen.1004156. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Bargmann CI, Hartwieg E, Horvitz HR. Odorant-selective genes and neurons mediate olfaction in C. elegans. Cell. 1993 Aug 13;74(3):515–527}. doi: 10.1016/0092-8674(93)80053-h. [DOI] [PubMed] [Google Scholar]
  3. Bargmann CI. 2006. Chemosensation in C. elegans . WormBook. https://www.ncbi.nlm.nih.gov/books/NBK19746/ [DOI] [PMC free article] [PubMed]
  4. Bates D, Mächler M, Bolker B, Walker S. 2015. Fitting Linear Mixed-Effects Models Using lme4. Journal of Statistical Software 67 (October): 1–48.
  5. Chao MY, Komatsu H, Fukuto HS, Dionne HM, Hart AC. Feeding status and serotonin rapidly and reversibly modulate a Caenorhabditis elegans chemosensory circuit. Proc Natl Acad Sci U S A. 2004 Oct 18;101(43):15512–15517}. doi: 10.1073/pnas.0403369101. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Churgin MA, Fang-Yen C. An Imaging System for C. elegans Behavior. Methods Mol Biol. 2015;1327:199–207}. doi: 10.1007/978-1-4939-2842-2_14. [DOI] [PubMed] [Google Scholar]
  7. Colbert HA, Bargmann CI. Odorant-specific adaptation pathways generate olfactory plasticity in C. elegans. Neuron. 1995 Apr 1;14(4):803–812}. doi: 10.1016/0896-6273(95)90224-4. [DOI] [PubMed] [Google Scholar]
  8. Cook DE, Zdraljevic S, Roberts JP, Andersen EC. CeNDR, the Caenorhabditis elegans natural diversity resource. Nucleic Acids Res. 2016 Oct 3;45(D1):D650–D657}. doi: 10.1093/nar/gkw893. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Glater EE, Rockman MV, Bargmann CI. Multigenic natural variation underlies Caenorhabditis elegans olfactory preference for the bacterial pathogen Serratia marcescens. G3 (Bethesda) 2014 Feb 19;4(2):265–276}. doi: 10.1534/g3.113.008649. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Itskovits E, Ruach R, Kazakov A, Zaslaver A. Concerted pulsatile and graded neural dynamics enables efficient chemotaxis in C. elegans. Nat Commun. 2018 Jul 20;9(1):2866–2866. doi: 10.1038/s41467-018-05151-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Kauffman A, Parsons L, Stein G, Wills A, Kaletsky R, Murphy C. C. elegans positive butanone learning, short-term, and long-term associative memory assays. J Vis Exp. 2011 Mar 11;(49) doi: 10.3791/2490. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Margie O, Palmer C, Chin-Sang I. C. elegans chemotaxis assay. J Vis Exp. 2013 Apr 27;(74):e50069–e50069. doi: 10.3791/50069. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. R Core Team. 2020. “R: A Language and Environment for Statistical Computing.” Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.
  14. Troemel ER, Kimmel BE, Bargmann CI. Reprogramming chemotaxis responses: sensory neurons define olfactory preferences in C. elegans. Cell. 1997 Oct 17;91(2):161–169}. doi: 10.1016/s0092-8674(00)80399-2. [DOI] [PubMed] [Google Scholar]
  15. Volkers RJ, Snoek LB, Hubar CJ, Coopman R, Chen W, Yang W, Sterken MG, Schulenburg H, Braeckman BP, Kammenga JE. Gene-environment and protein-degradation signatures characterize genomic and phenotypic diversity in wild Caenorhabditis elegans populations. BMC Biol. 2013 Aug 19;11:93–93. doi: 10.1186/1741-7007-11-93. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Wählby C, Kamentsky L, Liu ZH, Riklin-Raviv T, Conery AL, O'Rourke EJ, Sokolnicki KL, Visvikis O, Ljosa V, Irazoqui JE, Golland P, Ruvkun G, Ausubel FM, Carpenter AE. An image analysis toolbox for high-throughput C. elegans assays. Nat Methods. 2012 Apr 22;9(7):714–716}. doi: 10.1038/nmeth.1984. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Ward S. Chemotaxis by the nematode Caenorhabditis elegans: identification of attractants and analysis of the response by use of mutants. Proc Natl Acad Sci U S A. 1973 Mar 1;70(3):817–821}. doi: 10.1073/pnas.70.3.817. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Zdraljevic S, Fox BW, Strand C, Panda O, Tenjo FJ, Brady SC, Crombie TA, Doench JG, Schroeder FC, Andersen EC. Natural variation in C. elegans arsenic toxicity is explained by differences in branched chain amino acid metabolism. . Elife. 2019 Apr 8;8 doi: 10.7554/eLife.40260. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Zhang Y, Lu H, Bargmann CI. Pathogenic bacteria induce aversive olfactory learning in Caenorhabditis elegans. Nature. 2005 Nov 10;438(7065):179–184}. doi: 10.1038/nature04216. [DOI] [PubMed] [Google Scholar]

Articles from microPublication Biology are provided here courtesy of California Institute of Technology

RESOURCES