Skip to main content
eLife logoLink to eLife
. 2020 Jun 5;9:e56942. doi: 10.7554/eLife.56942

Flexible motor sequence generation during stereotyped escape responses

Yuan Wang 1,2,, Xiaoqian Zhang 1,2,, Qi Xin 1,2,, Wesley Hung 3,4, Jeremy Florman 5, Jing Huo 1,2, Tianqi Xu 1,2, Yu Xie 1, Mark J Alkema 5, Mei Zhen 3,4, Quan Wen 1,2,6,
Editors: Manuel Zimmer7, Piali Sengupta8
PMCID: PMC7338056  PMID: 32501216

Abstract

Complex animal behaviors arise from a flexible combination of stereotyped motor primitives. Here we use the escape responses of the nematode Caenorhabditis elegans to study how a nervous system dynamically explores the action space. The initiation of the escape responses is predictable: the animal moves away from a potential threat, a mechanical or thermal stimulus. But the motor sequence and the timing that follow are variable. We report that a feedforward excitation between neurons encoding distinct motor states underlies robust motor sequence generation, while mutual inhibition between these neurons controls the flexibility of timing in a motor sequence. Electrical synapses contribute to feedforward coupling whereas glutamatergic synapses contribute to inhibition. We conclude that C. elegans generates robust and flexible motor sequences by combining an excitatory coupling and a winner-take-all operation via mutual inhibition between motor modules.

Research organism: C. elegans

Introduction

Nervous systems transform sensation into a sequence of actions. The motor repertoire, constrained by the biomechanics of gait, comprises a finite number of motor primitives that are stereotyped across individuals (Ahamed et al., 2019Berman et al., 2014; Liu et al., 2018; Stephens et al., 2008). On the other hand, behavioral flexibility allows an animal to explore the action space, and to select better strategies for acquiring rewards or avoiding danger in a changing environment (Sutton and Barto, 2017).

Many factors contribute to behavioral flexibility (Dhawale et al., 2017; Gordus et al., 2015; Remington et al., 2018a). Actions may be generated by an inherently noisy system: synapses are unreliable (Allen and Stevens, 1994), neurons generate variable spike trains (Mainen and Sejnowski, 1995), and neural circuits may operate near the edge of chaos (van Vreeswijk and Sompolinsky, 1996). On the other hand, neural networks, whether adaptive or hard-wired, have structures that shape population neural dynamics onto a low dimensional manifold, where nonrandom and ordered activity patterns emerge (Ganguli et al., 2008; Harvey et al., 2012; Inagaki et al., 2018). Computational models have promised to provide a unified view of these observations (Burak and Fiete, 2012Brennan and Proekt, 2019; Mastrogiuseppe and Ostojic, 2018; Roberts et al., 2016), but a deep connection between theories and experiments remains to be established.

The initiation of escape responses of the nematode Caenorhabdtis elegans (C. elegans) has long been viewed as an instinctive reflex. Upon a gentle touch to its anterior body, the ventral cord-projecting premotor interneurons AVA/AVD/AVE relay mechanosensory inputs to motor neurons and reliably drive a backward movement (Chalfie et al., 1985; Pirri et al., 2009; Wicks et al., 1996). While C. elegans stays committed to its escape decision, the animal remains flexible in its approach to complete the motor sequence. After the reversal, the animal may or may not reorient its body via a deep omega (Ω) turn, before moving forward (Figure 1A). This allows the animal to resume forward movement in either the original or a new direction. Notably, which action to select and when to execute exhibit trial to trial variability, and they can be coupled. For example, a previous study (Gray et al., 2005) has shown that a longer reversal is likely to be followed by an omega turn.

Figure 1. Flexible motor sequence generation during C. elegans escape responses.

(A) Optogenetic stimulation of mechanosensory neurons ALM/AVM (Pmec-4::ChR2) was carried out with blue light (473 nm, 4.63 mW/mm2) for 1.5 s during animal forward movement. Identical stimuli could induce four different behavioral outputs: reversal followed by an omega turn, reversal followed by forward movement, pause state or forward movement (no response). (B) Definitions of type-I and type-II transitions. (C) Reversal length distribution (left) and transition rates (right) during ALM/AVM (Pmec-4::ChR2) triggered escape responses. Total number of trials, n = 674; reversal without turn, n = 272; reversal with turn, n = 322; no response, n = 79; pause, n = 1. Number of animals used can be found in Supplementary file 4. Here and below, the error bars of transition rates represent 95% binomial proportion confidence interval. (D) Reversal length distribution (left) and transition rates (right) during thermal stimulus induced escape responses. Wild-type, n = 385. Animal heads were thermally stimulated by an infrared laser (1480 nm; 400 mA) for 0.75 s. Solid lines are theoretical fits using Equation 4 and fitted type-II transition rates pass goodness-of-fit test (p>0.05).

Figure 1—source data 1. Source data for Figure 1 and Figure 1—figure supplement 1.

Figure 1.

Figure 1—figure supplement 1. Definition of the type-II transition and statistical test of reversal length distribution.

Figure 1—figure supplement 1.

(A) Left, examples of reorientation angle θ during the type-I (up) and the type-II transition (bottom). θ was measured as the angle between the head vector (BA) and the tail vector (DC). The worm body centerline was equally divided into 100 segments. The head vector (BA) is denoted as point B (mean coordinate of the 10th-14th segment) to A (mean coordinate of the 1st-5th segment), while the tail vector is denoted as point D (mean coordinate of 96th-100th segment) to C (mean coordinate of the 86th-90th segment). Immediately after the end of reversal, we identified a frame in which the worm exhibited a highly coiled body posture to calculate θ. If the head touched the body or tail, θ was computed from the frame before touching. Right, distribution of θ during ALM/AVM (Pmec-4::ChR2) triggered escape responses. A type-II transition was identified by either the head touching the body (or tail) or θ > 135° within a single head swing. Total trials, n=594; type-I transition, n=272; type-II transition (touching the body or tail), n=283; type-II transition (no touching), n=39. (B) A Gaussian mixture model to fit the reversal length distribution during ALM/AVM (Pmec-4::ChR2) triggered escape responses. We performed the likelihood ratio test between the unimodal Gaussian distribution fit and the bimodal Gaussian mixture model fit. After computing the difference of the negative log likelihoods, we found a p-value = 5.4e-5 using the χk2 distribution, where k = 3 is the difference of the number of free parameters in the unimodal (total 2 parameters) and bimodal (total 5 parameters) distribution. At level α=0.01, we have sufficient evidence that the bimodal distribution fits the reversal length better than the unimodal distribution.

Figure 1—video 1. Three main types of escape responses, Related to Figure 1.

Download video file (923.7KB, mp4)
Optogenetic activation of ALM/AVM mechanosensory neurons in freely moving worms for 1.5 s induced three types of responses.

We sought to understand algorithms and circuit mechanisms for motor sequence generation by investigating recurrently connected interneurons, which are positioned between sensory neurons and motor neurons in the C. elegans nervous system (Figure 2—figure supplement 1A). Previous studies on this layer of neural network (Figure 2—figure supplement 1A) have implicated their roles in exploratory behaviors (Gray et al., 2005; Iino and Yoshida, 2009; Mori and Ohshima, 1995; Pierce-Shimomura et al., 1999). During navigation, C. elegans moves towards a new direction by making a reversal and/or a turn in a probabilistic manner. Cell ablation studies revealed that the frequencies of reversals or turns were differentially modulated by many local interneurons including AIB and RIB (Gray et al., 2005). Here we ask whether and how activities of local interneurons and their synaptic interactions shape the dynamics of a motor sequence during escape responses.

Several models have been proposed to account for motor sequence generation. In a class of synaptic chain models (Abeles, 1991; Long et al., 2010Xiao et al., 2017), feedforward excitation between transiently activated groups of neurons controls the timing of actions hierarchically. Sequential neural activity may also emerge from a cooperation between external inputs and local synaptic interactions in a recurrent network (Rajan et al., 2016; Seeds et al., 2014). We find that neurons encoding distinct motor states, such as reversals and omega turns, use electrical coupling to reliably drive motor state transitions, whereas they exploit mutual inhibition to flexibly control the timing of an action in a sequence. We propose that a form of short-term plasticity in inhibitory synapses contributes to the time-dependent change of transition probability between motor states. Our findings provide new insights into how the nervous system organizes time-ordered and variable motor activities, by which stereotyped and flexible animal behaviors emerge.

Results

Stereotypical and flexible motor patterns constitute C. elegans escape responses

A potentially threatening sensory stimulus will trigger an animal’s escape response. For example, a gentle touch on the C. elegans head, which activates specific mechanosensory neurons ALM/AVM (Chalfie et al., 1985), can induce a reversal or an omega turn (Figure 1A and Figure 1—video 1).

We quantitatively characterized the escape responses from transgenic animals in which channelrhodopsin-2 (ChR2) was expressed in ALM/AVM neurons (Pmec-4::ChR2; lite-1), and optogenetic stimulation was given to the same sensory neurons at a defined light intensity and pulse duration during forward movement (see Materials and methods) (Leifer et al., 2011). ALM/AVM-triggered backward movements responses were robust (only ~10% trials did not respond, Figure 1C left), but subsequent motor sequences constituting each trial varied. Animals exhibited two main types of motor patterns: (1) backward movement was followed by a deep omega turn, and the animal moved forward in a new direction that was different from that before stimulation; (2) an animal executed backward movement and then resumed forward movement in a similar direction as that before stimulation (Figure 1A and Figure 1—video 1). The head and the tail were diametrically opposed to each other in an omega turn; whereas they were likely aligned to each other in a backward-to-forward movement (Figure 1—figure supplement 1A). Occasionally, an animal paused (1/674 trials) before resuming forward movement (Figure 1A), which can be regarded as the third motor pattern.

The reversal length distribution is broad (Figure 1C left) and likely bimodal (Figure 1—figure supplement 1B). This observation motivated us to describe behavior statistics by introducing two types of transitions and the corresponding transition rates r(t). Among all reversals survived to time t, r(tt computes the fraction of events that will make a transition to another motor state within the time bin Δt. The type-I (RF) transition rate, r1, determines the transition probability from reversal to forward movement; the type-II (RT) transition rate, r2, determines the transition probability from reversal to omega turn (Figure 1B and Materials and methods). r1(t) rapidly plateaued in about one second, while r2(t) increased and gradually became the dominant mode (Figure 1C right). The escape responses induced by a focused infrared laser light (Mohammadi et al., 2013) exhibited qualitatively similar statistics to ALM/AVM-triggered responses (Figure 1D).

This quantification, which was consistent with a previous observation and description for spontaneous reversals during exploratory behaviors (Gray et al., 2005), confirms the notion that the longer a reversal, the more likely the reversal is followed by a turn.

Local interneurons in the backward module modulate motor state transitions

We ask how neural dynamics underlie the behavioral variation. Whole brain and multi-neuron calcium imaging of fixed and behaving animals suggested that population interneuron activities, which perform sensorimotor transformation, encode distinct motor states (Gordus et al., 2015; Kato et al., 2015; Kawano et al., 2011; Li et al., 2014; Luo et al., 2014; Nguyen et al., 2016; Roberts et al., 2016; Venkatachalam et al., 2016Figure 2A and Figure 2—figure supplement 1B). Several interneurons, including the ventral-cord-projecting premotor interneurons AVA and AVE, and the local interneurons AIB and RIM, exhibited increased calcium activity during a backward movement (Kato et al., 2015; Laurent et al., 2015; Luo et al., 2014Figure 2A and Figure 2—figure supplement 1B).

Figure 2. Interneurons AIB are crucial for motor state transitions.

(A) Simplified circuit diagram underlying the gentle touch induced escape responses. Neurons were grouped into four modules based on their functional roles and activity patterns. (B) Calcium activity of AIB during spontaneous reversals before type-I (n = 23) and type-II (n = 36) transitions in unrestrained behaving animals (Pinx-1::GCaMP6;Pinx-1::wCherry). Here, data are aligned to the ends of reversals (vertical dashed line, t = 0). Heat map across trials (up) and ΔR(t)/R0 (Mean ± SEM, bottom) are shown. (C) Ramping rate of calcium activity in AIB. Up, raw single trial ΔR(t)/R0 from reversal start to reversal end. The ramping rate is the slope of the red line, fitted by linear regression. Bottom, ramping rates of AIB during type-I and type-II transitions. Each color (Mean ± SEM) represents single animal data across multiple trials. Total nine animals (Pinx-1::GCaMP6;Pinx-1::wCherry) were tested. Very short reversals (less than 1.5 s) are excluded, for some of them have negative ramping rates and the slope estimate is susceptible to noise (but including those trials doesn’t affect our conclusion). **p<0.01, two-way ANOVA. (D) Optogenetic activation of AIB (635 nm, 4.46 mW/mm2, 7 s) or inhibition of AIB (561 nm, 21.71 mW/mm2, 12 s) during ALM/AVM (473 nm, 14.71 mW/mm2, 1.5 s) triggered avoidance behaviors, reversal durations (bar graph) and fractions of animals executing omega turns (pie chart) are shown. Error bars are SEMs. Bar graph, Mann–Whitney U test. Pie chart, χ2 test. *p<0.05, ***p<0.001, ****p<0.0001. Here and below, the actual turning percentages (nturn/ntotal) are noted beside the pie chart and numbers within the bars indicate the number of trials with reversal. (E–F) Reversal length distribution (E) and transition rates (F) during escape responses when AIB were persistently hyperpolarized through an exogenous expression of the potassium channel TWK-18. Control group is from Figure 1C.

Figure 2—source data 1. Source data for Figure 2 and Figure 2—figure supplement 1.
elife-56942-fig2-data1.zip (1,000.3KB, zip)

Figure 2.

Figure 2—figure supplement 1. Local interneurons AIB and RIM in the backward module differentially modulate motor state transitions.

Figure 2—figure supplement 1.

(A) Schematic diagram of the C. elegans nervous system. (B) Multi-neuron calcium imaging in freely behaving animals (Pnmr-1/Plim-4/Plgc-55/Pnpr-9::NLS::wCherry::SL2::GCaMP6). Interneurons in the backward and forward modules were simultaneously imaged using a confocal microscopy (see Materials and methods for details). Data are aligned to the onset of a reversal (up, vertical dashed lines, t = 0) or the end of a turn (bottom, vertical dashed lines, t = 0). Heat map across trials and ΔR(t)/R0 (Mean ± SEM) across trials are shown. (C) Ramping rate of AIB calcium activity during thermally-induced escape responses. Ramping rate is significantly higher in type-II transition (nine animals, each point has more than three trials). *p<0.05, two-way ANOVA. (D–E) Characterization of the probability of type-II transition during optogenetic stimulation of two different interneurons AIB (left) and RIM (right) for varying durations. Longer activation of AIB consistently led to a higher probability of type-II transition (left). The control groups are animals performing spontaneous motor state transitions without optogenetic stimulation. A blue laser (473 nm, 14.71 mW/mm2) was used to stimulate ChR2 expressed neurons. (F–G) Hyperpolarization of RIM (Ptdc-1::Arch) or AIB (Pnpr-9::Arch) both affected reversal duration (bar graph), but only inhibiting AIB affected the probability of type-II transition (pie chart). In F), simultaneous optogenetic activation of AIB (or RIM) (635 nm, 4.46 mW/mm2 for AIB or 473 nm, 14.71 mW/mm2 for RIM) and inhibition (561 nm, 6.80 mW/mm2) of RIM (or AIB) were carried out for 7 (or 5) seconds. In G), RIM were activated for varying durations, while AIB were inactivated through an exogenous expression of the potassium channel TWK-18. (H–I) Reversal length distribution and transition rates after optogenetic ablation of AIB. ALM/AVM were optogenetically activated for 1.5 s to trigger avoidance behavior. AIB were ablated by exogenous expression of a membrane targeted PH-miniSOG. Data from Figure 1C) are used as control. For reversal duration, error bars indicate SEMs. Mann–Whitney U test. For probability of turn, error bars indicate 95% binomial proportion confidence interval. χ2 test. *p<0.05, **p<0.01, ***p<0.001, ****p<0.0001. All multiple comparisons were adjusted using Bonferroni correction.
Figure 2—video 1. AIB neurons are crucial for turn and backward movement, Related to Figure 2 and Figure 2—figure supplement 1.
Download video file (1.6MB, mp4)
Optogenetic activation of AIB neurons in free-moving animals reliably triggered backward movement followed by omega turns. Inhibition of AIB neurons quickly terminated backward movement.

Structural and functional studies of AIB (Gray et al., 2005; White et al., 1986) indicate that they may play important roles in motor state transitions (Figure 2A). First, AIB establish recurrent connections with the premotor interneurons AVA and AVE that potentiate backward movement either directly through chemical synapses or indirectly through electrical and chemical connections with RIM (Figure 2A). Second, AIB form gap junctions with the inter/motor neurons RIV (White et al., 1986), which play a role in generating a ventral-biased turning behavior (Figure 2AGray et al., 2005). Third, AIB exhibit ramping calcium activity during reversals (Kato et al., 2015; Laurent et al., 2015; Luo et al., 2014), and finally, laser ablation of AIB significantly reduces the frequency of reversals during food search behavior (Gray et al., 2005).

We first examined neuronal correlate of behavioral flexibility in action selection. We compared the AIB ramping activity (Pinx-1::GCaMP6; Pinx-1::wCherry) in different action sequences during either spontaneous or thermal-stimulus-triggered behaviors (Figure 2B-C and Figure 2—figure supplement 1B-C). If the fluorescence signal (∆R(t)/R0) reflects a change of intracellular free calcium concentration [Ca2+], the ramping rate, defined as ζ = dRdt (Figure 2C), would be proportional to the calcium current. Higher ζ may reflect a larger depolarization of the neuronal membrane potential. In Figure 2B-C, 76% trials (91/120) in the type-I (RF) transition show a positive ramping rate, whereas the proportion rose to 95% (109/115, p < 0.0001, χ2 test) in the type-II (RT) transition. Among trials longer than 1.5 seconds, they all showed positive ζ, which during the type-II transition was significantly higher than that during the type-I transition (Figure 2C and Figure 2—figure supplement 1C). These results suggest that the more active AIB are, the more likely a worm would terminate its reversal with a turn.

Optogenetic activation of AIB (Pnpr-9::ChR2 or Pnpr-9::Chrimson) alone reliably triggered reversals followed by omega turns (Figure 2D, Figure 2—figure supplement 1D and Figure 2—video 1), whereas strong optogenetic inhibition of AIB (Pmec-4::ChR2; Pnpr-9::Arch; lite-1) during ALM/AVM induced escape responses almost completely abolished omega turns (Figure 2D). We also generated transgenic animals in which AIB were persistently hyperpolarized by an expression of exogenous potassium channels (Pnpr-9::TWK-18(gf)). Interestingly, the no-response fraction increased to ~20% (70/332, p<0.0001, χ2 test) upon stimulating ALM/AVM in these animals and a significantly larger portion of responses were pauses (35/332, p<0.0001, χ2 test, Figure 2E). We did not observe a significant change in the type-II transition rate r2 (Kolmogorov-Smirnov test, p=0.6, Figure 2F), which might be due to a weaker AIB inhibition in these animals. Furthermore, optogenetic ablation of AIB alone (Pnpr-9::PH-miniSOG, Figure 2—figure supplement 1HQi et al., 2012; Xu and Chisholm, 2016) significantly suppressed the type-II transition rate (Kolmogorov-Smirnov test, p<1e-20, Figure 2—figure supplement 1I). RIM (Figure 2A) also promoted reversals (Figure 2—figure supplement 1B and E–G), but were less important in modulating the type-II transition (Figure 2—figure supplement 1D–G). Together, our data strongly suggest that AIB play an important role in promoting reversal and turning behaviors.

Feedforward coupling between the backward module and the turning module drives the omega turn

How do AIB drive turning behaviors? Whole brain imaging in immobilized animals implicated that AIB and their electrically-coupled partners RIV (Figure 2A and Figure 3—figure supplement 1) exhibited sequentially activated patterns (Kato et al., 2015). We compared RIV activity patterns (Plim-4::GCaMP6) underlying different motor sequences during spontaneous behaviors. During the type-II (RT) transition, RIV calcium signal rose rapidly immediately before a turn began, whereas it remained largely quiescent during the type-I (RF) transition (Figure 3A and Figure 3—figure supplement 2A). The calcium signal decayed towards baseline before the animal finished the turn and resumed forward movement (Figure 3—figure supplement 2B).

Figure 3. Feedforward excitation via electrical coupling drives omega turns.

(A) Calcium activity of RIV during the type-I (n = 38) and the type-II (n = 18) transitions in spontaneous behaving animals (Plim-4::GCaMP6). Here, data are aligned to the ends of reversals (vertical dashed line, t = 0). Heat map across trials (left) and ΔR(t) (Mean ± SEM, right, also see Materials and Methods) are shown. (B) Optical neurophysiology for probing the feedforward coupling between the backward module and the turning module. (C) Simultaneous optogenetic activation of AIB (635 nm, 6.11 mW/mm2) and calcium imaging of RIV in immobilized animals. ΔR(t)/R0 (Mean ± SEM) under different genetic backgrounds are shown: control (ATR) is wild-type (dark blue); inx-1unc-9unc-7 triple mutant (red); calcium imaging of RIV in the presence of moderate inhibition (561 nm, 1.94 mW/mm2) of RIV (light blue, Plim-4::Arch). The control (no ATR) represents imaging data from wild-type animals without feeding all-trans retinal (grey). ****p<0.0001, two-way ANOVA. (D) Probability of a reversal followed by a turn (left) and type-II transition rates (right) for gap junction deficient mutants. AIB, expressing Chrimson, were optogenetically activated for 7 s (635 nm, 4.46 mW/mm2) in wild-type animals (green), gap junction deficient mutants inx-1 (red), and inx-1 mutants, in which INX-1 channels were restored specifically in AIB (blue). Error bars indicate 95% binomial proportion confidence interval. χ2 test. ****p<0.0001. (E) Simultaneous optogenetic activation of AIB (635 nm, 6.11 mW/mm2) and calcium imaging of RIV in unrestrained behaving animals. Left, calcium activity heatmap across trials. t < 0 represents reversals. Omega turns start at t = 0. Right, ΔR(t) (mean ± SEM) are shown (blue). (F) Data are related to (E), but t = 0 is aligned to the beginning of AIB stimulation.

Figure 3—source data 1. Source data for Figure 3.

Figure 3.

Figure 3—figure supplement 1. Possible polysynaptic pathways from AIB to RIV (less than four layers are shown) according to C. elegans connectome.

Figure 3—figure supplement 1.

SDQ were oxygen-sensing neurons and topological cluster analyses suggest ADA may be involved in chemosensation. RIM, RIS and RIV have direct electrical coupling with AIB.
Figure 3—figure supplement 2. Optogenetic activation of AIB and calcium imaging of RIV in different experimental conditions.

Figure 3—figure supplement 2.

(A and C–F) Single trial data related to Figure 3A, (C and E–F). In (F), dashed lines indicate the start of a turn. (B) Calcium activity of RIV (Plim-4::GCaMP6, n = 20) during thermal stimulus induced escape responses in freely moving animals. ΔR(t) = [ΔR(t) - ΔR(t = 0)]/R0 (mean ± SEM) are shown. t = 0 is aligned to the initiation (up) or termination (bottom) of an omega turn.
Figure 3—video 1. Optogenetic activation of AIB under various genetic backgrounds, Related to Figure 3 and Figure 4.
Download video file (6.9MB, mp4)
Optogenetic activation of AIB in eat-4 glutamate vesicular transport deficient mutants or glutamate postsynaptic receptor mutants induced an omega turn preceded by a much shorter reversal. Specifically restoring eat-4 in AIB or glc-1 in AIY promoted a longer reversal. Activating AIB in gap junction deficient mutant inx-1 reduced the probability of omega turn, which were rescued by restoring inx-1 in AIB.

To directly probe the functional connectivity between AIB and RIV, we performed simultaneous optogenetic stimulation of AIB (Pnpr-9::Chrimson) and calcium imaging of RIV (Plim-4::GCaMP6::wCherry, Figure 3B). In immobilized wild-type animals, upon stimulating AIB at t = 0, RIV calcium signal rapidly rose (Figure 3C dark blue and Figure 3—figure supplement 2C). Several innexin, including INX-1, UNC-7 and UNC-9, have been reported to be expressed in AIB and RIV (Altun et al., 2009; Bhattacharya et al., 2019). Some of these innexins were shown to form homotypic and/or heterotypic gap junctions (Kawano et al., 2011; Liu et al., 2013; Starich et al., 2009; Xu et al., 2018). To determine whether electrical synapses contribute to the observed functional coupling between AIB and RIV, we examined the effect of AIB stimulation in inx-1unc-9unc-7 triple innexin mutants. RIV remained quiescent upon AIB stimulation (Figure 3C red and Figure 3—figure supplement 2D), indicating that gap junction coupling underlies AIB stimulation-mediated RIV calcium activity.

UNC-7 and UNC-9 are broadly expressed in the motor circuit, and unc-7 or unc-9 mutants exhibit uncoordinated movements that prohibit them from completing a motor sequence (Barnes and Hekimi, 1997; Brenner, 1974; Kawano et al., 2011; Starich et al., 1993; Xu et al., 2018). inx-1 single mutants exhibit superficially normal forward and backward movements, allowing us to examine the behavioral requirement of INX-1. The presence of multiple innexins in many C. elegans neurons implicates that they may function redundantly at electrical synapses. Consistent with this notion, we find that optogenetic activation of AIB was capable, but with less likelihood, to trigger a turn in inx-1 mutants (Figure 3D). Rescuing inx-1 in AIB was sufficient to restore the turning probability (Figure 3D). Because inx-1 mutants were still capable of generating omega turns, we propose that either multiple innexins between AIB and RIV, or parallel circuit pathways are at play.

When we performed dual optogenetic activation and calcium imaging in wild-type animals that were allowed to move, an increase of RIV calcium activity was also observed. But we observed a delay in RIV calcium signal, with its increase arriving at variable times (Figure 3E and Figure 3—figure supplement 2F) instead of an immediately rise after stimulation onset. In many trials, the rise of RIV calcium activity coincided with the initiation of an omega turn (Figure 3—figure supplement 2F), an event that was used to realign all trials at t = 0 (Figure 3E and Figure 3—figure supplement 2F).

Delayed depolarization of RIV in a moving animal may result from a convergence of excitatory- and inhibitory- inputs onto the turning module (Figure 2A). When neural activity in behaving animals was aligned to the onset of optogenetic stimulation, a transient quiescence or decrease of RIV calcium activity indeed appeared after t = 0 (Figure 3F and Figure 3—figure supplement 2F). We hypothesized that a rapid increase of calcium activity in Figure 3C (dark blue) could result from a stronger depolarization of RIV neurons in immobilized animals. Consistently, when the calcium imaging experiment in immobilized animals was combined with a weak and persistent optogenetic inhibition of RIV (Plim-4::Arch), we also observed a delayed and rectified excitation in RIV (Figure 3C light blue and Figure 3—figure supplement 2E).

Taken together, our data suggest that the feedforward excitation between the backward module and the turning module takes the form of electrical synapses, likely between AIB and RIV. We considered an effective functional coupling through polysynaptic excitation highly unlikely. First, AIB triggered ventral-biased turning behaviors did not require glutamatergic synaptic transmission (Figure 4A), thus excluding polysynaptic pathways via chemical synapses from AIB. Second, two possible polysynaptic excitation pathways from AIB via electrical coupling involve interneurons RIM or RIS (Figure 3—figure supplement 1), revealed by the C. elegans connectome (White et al., 1986). Our optogenetic activation of AIB while inhibiting RIM did not modify the turning probability, whereas activating RIM while inhibiting AIB significantly reduced the turning probability (Figure 2—figure supplement 1F–G). Activation of RIS would drive an animal to a pause state and abolish motor actions (Steuer Costa et al., 2019). Both results argue against RIM and RIS being directly involved in driving turning behaviors.

Figure 4. Glutamatergic inhibition modulates type-II transition.

(A) Reversal durations (left) and type-II transition rates (right) in glutamatergic synaptic transmission deficient animals upon strong and persistent optogenetic activation of AIB. Optogenetic stimulation was delivered for 7 s using red light (635 nm, 4.46 mW/mm2). Right, compare r2 in eat-4 mutant or in Pnpr-9::TeTx with control animals across the whole distribution (Kolmogorov-Smirnov test, p=6.2e-7, p=0.0026) or within a time window (χ2 test: * p<0.05, ** p<0.01, *** p<0.001, **** p<0.0001). (B) Reversal durations (left) and type-II transition rates (right) in GluCl receptor mutants upon optogenetic activation of AIB (635 nm, 4.46 mW/mm2). Right, compare r2 in triple receptor mutant with control animals across the whole distribution (Kolmogorov-Smirnov test, p=5.9e-8) or within a time window (χ2 test: * p<0.05, ** p<0.01). (C) Genes encoding GluCl receptors were expressed in local interneurons RIB and AIY respectively. GFP reporter lines were constructed using avr-14, avr-15 and glc-1 promoters, respectively; mCherry (or wCherry) reporters were used for cell identification. Expression pattern from one section is showed. Scale bar, 10 µm. (D) Simultaneous optogenetic activation of AIB (635nm, 6.11 mW/mm2) and calcium imaging of RIB in immobilized animals under wide-type (control (ATR)) (blue) or eat-4 glutamate deficient mutant background (red). ΔR(t)/R0 (Mean ± SEM) are shown. t = 0 represents the beginning of AIB stimulation. The control group (no ATR) (grey) represents imaging data from animals without feeding all-trans retinal. ****p<0.0001, two-way ANOVA. (E) Functional coupling between AIB and RIB neurons was directly tested through glutamate imaging. Upon stimulation of AIB (Pnpr-9::Chrimson), the process (red), cell body (green) of the RIB (Psto-3::iGluSnFR) and the RIB process in eat-4 glutamate deficient mutants (grey) exhibited distinct fluorescence signals. The control group (blue) represents imaging data from animals without feeding all-trans retinal. Raw iGluSnFR imaging was recorded at 150 Hz. Trial average (bold color) and SEM (shaded region) are shown. Inset, the fluorescence signal of the process (red) is fitted with a double exponential function (blue), B(e-tτ1-e-tτ2)+c, where B, τ1,τ2 and c are free parameters. τ1 represents the time constant of glutamate signal decay, and c is the baseline constant, which was subtracted in the inset plot. For reversal duration, Error bars indicate SEM. Mann–Whitney U test: ***p<0.001, ****p<0.0001. All multiple comparisons were adjusted using Bonferroni correction.

Figure 4—source data 1. Source data for Figure 4 and Figure 4—figure supplements 12.

Figure 4.

Figure 4—figure supplement 1. Glutamatergic inhibitions between AIB and RIB flexibly control the motor state transitions.

Figure 4—figure supplement 1.

(A) Couplings between the backward, forward and turning modules. AIB, RIV and RIB are highlighted. (B) Reversal length during optogenetic activation of AIB in various glutamate postsynaptic receptor mutants and restoring eat-4 specifically in AIB in different eat-4 glutamate deficient mutants. GluCl single and double mutants exhibited longer reversals than the triple mutants (Figure 4B), suggesting that AVR-14, AVR-15 and GLC-1 proteins function synergistically to mediate feedforward inhibition. Error bars indicate SEMs. *p<0.05, **p<0.01, ****p<0.0001. Mann–Whitney U test. All multiple comparisons were adjusted using Bonferroni correction. (C) Single trial data related to Figure 4D).
Figure 4—figure supplement 2. Functional coupling between AIB and RIB neurons was directly tested through glutamate imaging.

Figure 4—figure supplement 2.

(A) Single trial data of the glutamatergic signal on the process of RIB after AIB activation onset, related to Figure 4E). Raw data and smoothed data (bold line) are showed. (B) Examination of AIB calcium activity after optogenetic activation of AIB, related to Figure 4E). Raw data and smoothed data (bold line) are showed.

Inhibitory glutamatergic synaptic transmission modulates the type-II transition

We next investigated behavioral flexibility in the timing of an action. Given the feedforward coupling between the backward module and the turning module, we asked why omega turns did not immediately follow the optogenetic activation of AIB. We hypothesized that a balance of feedforward excitation and an unknown inhibition provides a potential mechanism to shape the statistics of the type-II (RT) transition. Besides gap junctions, AIB make chemical synapses with neurons in other modules (Figure 2A and Figure 4—figure supplement 1A), which may facilitate this inhibition. AIB are glutamatergic (Serrano-Saiz et al., 2013). In the glutamate vesicular transport deficient mutant eat-4, optogenetic activation of AIB robustly induced an omega turn that was preceded by a much shorter reversal (Figure 4A left and Figure 4—figure supplement 1B). Restoring eat-4 expression specifically in AIB significantly prolonged the reversal length before the onset of an omega turn (Figure 4A left, Figure 4—figure supplement 1B and Figure 3—video 1). Likewise, stimulating AIB while blocking chemical synaptic transmission from AIB (Pnpr-9::TeTx) triggered an omega turn preceded by a shorter reversal (Figure 4A left and Figure 3—video 1). Consistently, r2 rose more rapidly when glutamatergic inputs from AIB were disrupted (Figure 4A right).

C. elegans nervous system possesses a family of inhibitory glutamate-gated chloride (GluCl) channels (Dent et al., 1997). Upon optogenetic stimulation AIB, the triple GluCl mutant avr-14(ad1035);avr-15(vu227)glc-1(pk54) exhibited a behavioral phenotype resembling that of the eat-4 mutant (Figure 4B and Figure 4—figure supplement 1B). In some trials (19/112, p<0.0001, Fisher’s exact test), AIB stimulation immediately triggered omega turns without delay (Figure 3—video 1). This suggests that postsynaptic GluCl receptors work synergistically in modulating the onset timing of a turn. Using GFP reporter lines, we found avr-14, glc-1 and avr-15 expressed in many neurons. By focusing on overlaps with neurons known to encode motor states (Figure 2A), we found that Pavr-14 and Pglc-1 reporters exhibited expression in AIY interneurons, while the Pavr-15 reporter exhibited expression in RIB interneurons (Figure 4C).

Unlike AIY, RIB receive more and invariant synaptic inputs from AIB (White et al., 1986; Witvliet et al., 2020Figure 2A), and hence are the prominent postsynaptic partners of AIB. Consistent with a glutamate mediated feedforward inhibition, RIB calcium activity (Psto-3::GCaMP6) significantly reduced upon optogenetic activation of AIB in immobilized animals, which was not observed in the glutamate vesicular transport deficient mutant eat-4 animals (Figure 4D and Figure 4—figure supplement 1C). Moreover, restoring either avr-15 expression in RIB or avr-14 (or glc-1) expression in AIY promoted a longer reversal before the onset of an omega turn (Figure 4B and Figure 3—video 1) upon AIB activation.

To further investigate the functional connectivity between AIB and RIB, we imaged glutamate signaling (Marvin et al., 2013) at RIB (Psto-3::iGluSnFR) upon persistent optogenetic stimulation of AIB (Pnpr-9::Chrimson; see Materials and methods). After the onset of stimulation, a rapid rise (Figure 4E inset plot,~10%ΔF/F0) of iGluSnFR signal on RIB’s neurites (Figure 4E and Figure 4—figure supplement 2A up) was followed by a slow decay. The fluorescence signal change was well fit by

ΔF(t)F0=B(etτ1etτ2), (1)

where τ1=0.9s, and τ2=100ms. In animals without feeding all-trans retinal (a co-factor required for AIB optogenetic stimulation), we observed random and smaller amplitude (~5%ΔF/F0) fluctuations of iGluSnFR signals (Figure 4E). Such dynamics was not observed in the glutamate vesicular transport deficient mutant eat-4 animals (Figure 4E and Figure 4—figure supplement 2A bottom).

Local interneurons RIB promote both turning and forward behaviors

Local interneurons RIB, together with the ventral cord-projecting premotor interneurons AVB, have been previously reported to encode forward movement state (Gray et al., 2005; Kato et al., 2015; Li et al., 2014). Moreover, RIB form gap junctions with SMDV (Figure 2A), motor neurons that have also been implicated in ventral biased omega turns (Gray et al., 2005; White et al., 1986). RIB calcium activity declined during reversals, and rose during the type-I (RF) and type-II (RT) transitions (Figure 5A and Figure 5—figure supplement 1A), which is characteristic of neurons in both forward and turning modules (Figure 2A).

Figure 5. Local interneurons RIB promote both turning and forward behaviors.

(A) Calcium activity of RIB during type-I (up, n = 41) and type-II transitions (bottom, n = 25). ΔR(t) (mean ± SEM) are shown. t = 0 is aligned to the initiation of forward movement (up) or an omega turn (bottom). (B) Statistics of motor state transitions (left) and representative curvature kymographs (right) upon optogenetic manipulation of RIB. Left, the probability for a transition and its 95% confidence limits were computed. RIB::Chrimson1, n = 65, red light (635 nm, 3.75 mW/mm2); RIB::Chrimson2, n = 82, red light (635 nm, 1.00 mW/mm2); RIB::Arch, n = 83, green light (561 nm, 8.14 mW/mm2). Right, animals crawled on fresh agar plates. Body curvature was normalized by a k · L, where L is the body length. Green (or red) shaded regions show selected spatiotemporal regions for optogenetic inhibition (or activation). The kymograph of turning behaviors exhibits longer cycles to complete body bending and larger body curvature, which are different from those during forward movement. (C) Reversal length distributions (left) and transition rates (right) when ALM/AVM activation was followed by optogenetic inhibition of RIB (12 s green light, 561 nm, 1.94 mW/mm2). Pmec-4::ChR2;Psto-3::Arch, n = 173. Control group is from Figure 1C. (D) Calcium imaging of RIV in wild-type (blue) and RIB-ablated animals (orange) upon optogenetic stimulation of AIB in freely behaving animals. ΔR(t)/R0 (Mean ± SEM) are shown. (E) Data are related to (D), but all trials were aligned to the onset of omega turns. (F) Reversal length during ALM/AVM-triggered escape responses in RIB-ablated animals or in animals where chemical synaptic transmission from RIB was blocked. Error bars indicate SEM. Mann–Whitney U test, ****p<0.0001. All multiple comparisons were adjusted using Bonferroni correction.

Figure 5—source data 1. Source data for Figure 5 and Figure 5—figure supplement 1.

Figure 5.

Figure 5—figure supplement 1. RIB receive feedforward inhibition to modulate type-II transition and neurons in the turning module might contribute to reversal termination.

Figure 5—figure supplement 1.

(A) Single trial data related to Figure 5A). Dashed lines indicate the initiation of forward movement (up) or omega turns (bottom). (B) Persistent inhibition of RIB by expressing an exogenous histamine channel (HisCl) during ALM/AVM-triggered escape responses. Type-II transition quickly approached a plateau at a lower rate, which is consistent with our model prediction and Figure 5C). Control group is from Figure 1C). (C) Single trial data related to Figure 5D–E). (D) Left, simultaneous optogenetic activation of AIB and calcium imaging of RIV or SAAD/SMB (Pnpr-9::Chrimson;Plim-4::GCaMP6) in freely behaving animals. t = 0 is aligned to the onset of an omega turn. ΔR(t) (mean ± SEM) are shown. Right, smoothed single trial data. Dashed lines indicate the start of a turn.
Figure 5—video 1. Optogenetic manipulation of RIB can induce motor state transitions, Related to Figure 5.
Download video file (1.4MB, mp4)
Strong activation of RIB during forward movement reliably triggered turns; while inhibiting RIB during forward movement led to a pause state.
Figure 5—video 2. Optogenetic inhibition of RIB or RIV/SAA/SMB neurons during escape responses prolonged reversal durations, Related to Figure 5 and Figure 6.
Download video file (2.3MB, mp4)

Optogenetic manipulation of RIB in freely behaving animals further revealed their functions during motor control. Activating RIB (Psto-3::Chrimson) during reversals triggered a transition to either an omega turn or forward movement (Figure 5B left). Strong optogenetic activation (635 nm, 3.75 mW/mm2) of RIB during forward movement reliably triggered omega turns (Figure 5B right and Figure 5—video 1). On the other hand, inhibiting RIB (Psto-3::Arch) during forward movement led to a pause state (Figure 5B right and Figure 5—video 1).

When RIB interneurons were directly inhibited to mimic an inhibitory synaptic input, either optogenetically or by an expression of histamine-gated chloride channels (Pokala et al., 2014), the type-II (RT) transition rate r2 plateaued at a significantly reduced value (Figure 5C and Figure 5—figure supplement 1B). Consistently, an escape response comprised of a much longer reversal before an omega turn was initiated (Figure 5C, Figure 5—figure supplement 1B and Figure 5—video 2), in agreement with the GluCl rescue results (Figure 4B left). The type-I transitions were also largely suppressed (Figure 5C), as RIB also potentiate forward movement. Optogenetic ablation (Psto-3::miniSOG) or blocking chemical synaptic transmission (Psto-3::TeTx) from RIB also led to prolonged reversals during ALM/AVM-triggered escape responses (Figure 5F).

We asked how RIB may mediate neural activity in the turning module. Upon optogenetic stimulation of AIB (Figure 5D–E), the rise of RIV calcium activity in RIB ablated animals showed the same rectified activation when all trials were aligned to the beginning of a turn (Figure 5E). However, RIV activity was preceded by a longer quiescent state when trials were aligned to the stimulus onset (Figure 5D and Figure 5—figure supplement 1C). Thus, RIB modulate motor state transitions in part through indirect modulation of the timing of RIV activation (Figure 2A).

Inhibitory feedback contributes to reversal termination

The beginning of a turn marks the end of a reversal. We next asked whether the type-II (RT) transition can be accounted for by self-termination of neural activity in the backward module (Figure 2A), analogous to a feedforward synaptic chain model, or, whether activation of the turning module provides a feedback inhibition to terminate the activity in the backward module.

In a feedforward synaptic chain model, perturbing neural activity in the downstream neurons would not affect the dynamics of upstream neurons. To test this model, we generated transgenic animals that express Archaerhodopsin in RIV/SAA/SMB neurons (Plim-4::Arch; Figure 6A). RIV/SAAD all exhibited elevated calcium activity during omega turns, and could be regarded as downstream outputs of the backward module (Figure 5—figure supplement 1D). However, optogenetic inhibition of RIV/SAA/SMB or RIV alone by spatially patterned illumination during escape responses promoted significantly longer reversals (Figure 6B and Figure 5—video 2).

Figure 6. Feedback inhibition from the turning module contributes to reversal termination.

(A) Expression pattern of Plim-4::Arch::GFP. Scale bar, 10 µm. (B) Left, escape responses induced by optogenetic activation of AIB (blue text, 473 nm, 14.71 mW/mm2, 1.5 s) or thermal stimulus (pink text, 1480 nm, 0.75 s) followed by optogenetic inhibition of Arch-expressed interneurons (green text, 561 nm, 21.71 mW/mm2, 12 s). Bar graph, reversal durations, Mann–Whitney U test and error bars are SEMs. Pie chart, fractions of trials executing omega turns, χ2 test. *p<0.05, ***p<0.001, ****p<0.0001. All multiple comparisons were adjusted using Bonferroni correction. Right, schematic diagram for selective inhibition of RIV near animal head during thermally induced (1480 nm, 0.75 s) escape responses. (C) Up, reversal length distribution (left) and transition rate (right) in RIV/SAAD/SMB ablated animals. Bottom, spontaneous run length distribution (left) and transition rate from forward to backward movements (right) in wild-type animals. Insets are plots of survival functions: proportion of trials moving backward (up) or forward (bottom) until t. We fitted only trials with reversal duration ≥3 s and forward duration ≥2 s.

Figure 6—source data 1. Source data for Figure 6.

Figure 6.

Figure 6—video 1. RIV neurons are essential for omega turns, Related to Figure 6.
Download video file (932.3KB, mp4)
Optogenetic ablation of RIV/SAA/SMB neurons abolished type-II transition, and animals could no longer generate a complete turn but executed a much longer reversal.

Observations from optogenetic ablation of RIV/SAA/SMB (Plim-4::miniSOG) also argue against a pure feedforward synaptic chain model. The type-II transition was abolished since animals could no longer generate a complete omega turn (Figure 6C upper panel), while the ability of direct transition from a backward to a forward movement remained unaffected and the type-I (RF) transition rate r1 remained similar (Figure 6C upper panel) to wild-type animals. Notably, the reversal duration became much longer and approached 30 s in some trials, which had not been observed in wild-type animals (Figures 1C and 6C upper panel and Figure 6—video 1). These results indicate that during normal type-II transitions, persistent neural activity in the upstream backward module could be abolished through inhibitory feedback from the downstream activity in the turning module.

Both the type-I (RF) transition rate (Figure 6C upper panel) and the mirror transition rate (FR) from a forward movement to a spontaneous reversal in wild-type animals (Figure 6C bottom panel) are consistent with the homogeneous Poisson process at long timescale, leading to exponential survival functions (Figure 6C insets) — fraction of backward or forward movements survived to t (Berg, 1993; Stephens et al., 2011). We did not observe an exponential survival function of reversals in wild-type animals. In the absence of the turning module, the statistics of forward and backward movements (Figure 6C) became consistent with a simple dynamic model, where a system stochastically transitions between two attractor states at constant rates.

Together, our data suggest that the feedforward inhibition (Figure 4) and feedback inhibition (Figure 6) between the backward module and the turning module implement a winner-take-all computation for action selection. The motor module with the highest level of activity stays active by suppressing the activities of other modules.

A biophysical model of the type-II transition

With both structural and functional evidence, we now propose a mathematical model for the type-II (RT) transition. The turning module, represented by RIV inter/motor neurons, receives opposing excitatory and inhibitory inputs during a reversal (Figure 7A). The rapid increase of RIV activity coincides with the beginning of an omega turn (Figure 3A and E). To capture the essential process, we assumed that the membrane potential of RIV x fluctuates around a balanced state x0 during a reversal (Figure 7B), and its neural dynamics is governed by the Langevin equation:

dxdt=k(xx0)+η, x<xth (2)

where k depends on, among others, the gap junction and inhibitory synaptic conductances (see Appendix); and η could be regarded as fluctuations in synaptic currents (Lindsay et al., 2011; Narayan et al., 2011) and other sources of noises that are not explicitly considered in the model. For simplicity, η is treated as uncorrelated Gaussian white noise: η(t)η(t)=2σ2δ(tt). Once the membrane potential crosses the threshold xth, RIV become rapidly depolarized due to a nonlinear rectified activation (Figure 7B), immediately terminating the reversal via feedback inhibition and starting a turn by activating ventral muscles (Figure 7A and D).

Figure 7. A model summary for motor sequence generation.

Figure 7.

(A) Schematics of neuronal circuit of C. elegans avoidance behavior. Feedforward excitation between local interneurons AIB and RIV triggers turning behavior. Glutamatergic inhibition between AIB and RIB flexibly controls the motor state transitions. Feedback inhibition from the turning module helps terminate backward behavior. (B) Illustration of the biophysical meaning of the type-II transition. The sub-threshold membrane potential of RIV fluctuates around the fixed point x0, just like a particle (red) in an energy well. When RIV membrane potential crosses the threshold xth, RIV along with other neurons in the turning module become fully activated and a turn starts. (C) A simple stochastic model without short-term synaptic plasticity cannot account for the experimentally observed transition rate. (D) Schematics of a three-module model based on the animal connectome and experimentally identified functional motifs. Short-term synaptic depression (STD) was introduced in the feedforward inhibition. (E) Type-II transition rate during ALM/AVM triggered escape responses. Pink line is a theoretical fit using Equation 4τg in Equation 4 is given by the glutamate decay constant in Figure 4E.

The next step is to calculate the type-II transition rate r2: the probability that x crosses xth per unit time. It is currently impossible to measure k, but we can proceed by making a prediction. Based on electrophysiological recordings of C. elegans interneurons (Lindsay et al., 2011; Roberts et al., 2016), the membrane time constant of a neuron (~10 milliseconds) is much smaller than the behavioral timescale (~seconds). As a result, the membrane potential of a model neuron rapidly approaches the fixed point x0. By solving this problem analytically using one-dimensional Fokker-Planck equation near the system equilibrium (see Appendix), we find

r2kπerfi1[k2σ2(xthx0) ] (3)

Here erfix=2π0xez2dz is the imaginary error function.

Equation 3, however, would lead to a constant rate on the behavioral timescale, like that during the type-I (RF) transition, as expected and confirmed by our computer simulation (Figure 7C). To explain the experimental observation of the rising phase of r2 (Figure 1C–D), we incorporated a plasticity mechanism analogous to short-term synaptic depression (STD): the feedforward inhibition from the backward module to the turning module becomes weaker as the reversal lasts longer (Figure 7D). Consequently, the membrane potential moves towards the excitation threshold xth to potentiate transition, allowing the analytical expression for r2, Equation 3, to become time-dependent. Our hypothesis is consistent with the decay of the glutamate sensor signal on RIB neurites upon AIB stimulation (Figure 4E), an observation that may be explained by a depletion of available vesicles for release at the presynaptic site. Note that calcium activity in AIB cell body, like that during a reversal (Figure 2B), kept increasing during persistent optogenetic stimulation (Figure 4—figure supplement 2B), arguing against the possibility that an opsin-mediated membrane depolarization in the presynaptic neuron undergoes depression upon continuous light activation.

By incorporating the exponential decay of inhibitory synaptic strength (Equation 1), we found that the functional form of the transition rate (see Appendix) can be approximated by

r2(t)kπerfi1(α+βet/τg), (4)

where τg=0.9s is the decay constant of the glutamate signal (Figure 4E). The experimentally measured type-II transition rate is well fit by Equation 4.

Discussion

Complex motor behaviors arise from continual selection and transition among a number of motor primitives. Classic synaptic chain models, in which stereotyped motor sequences arise from feedforward excitation between different groups of neurons, are thought to underlie several motor behaviors such as Zebra Finch singing (Long et al., 2010). A feedforward synaptic chain may underlie the replay of spatiotemporal activity patterns in hippocampus during sleep (Louie and Wilson, 2001; Skaggs and McNaughton, 1996), and generate temporally precise firing patterns that correspond to different actions in the motor cortex of behaving monkeys (Shmiel et al., 2006). Alternatively, when several mutually inhibited modules are co-activated by sensory inputs, motor sequences could also emerge by a winner-take-all strategy, a proposed mechanism for the grooming behavior in Drosophila (Seeds et al., 2014). In mice, mutually inhibitory neurons in the central amygdala have been shown to regulate dimorphic defensive behaviors — flight or freezing — triggered by looming visual stimuli (Fadok et al., 2017). Here, we find the two schemes are likely integrated by the C. elegans nervous system to generate robust and flexible motor sequences (Figure 7D).

In C. elegans, feedforward excitation between the backward module and the turning module (Figure 7A) can reliably trigger an omega turn followed by forward movement through strong and persistent activation of local interneurons AIB (Figure 2D and Figure 2—figure supplement 1D). In other words, the action in a motor sequence can be selected through feedforward excitation, triggered by either external sensory stimulus or fluctuations of internal circuit dynamics. The timing of an action can be tuned by augmenting the feedforward excitation with glutamatergic feedforward inhibition between AIB and RIB (Figure 7A), and likely by modulating the strength of inhibitory inputs through short term synaptic plasticity. Previously, a tyraminergic feedforward inhibition (Alkema et al., 2005; Pirri et al., 2009) from the RIM interneurons in the backward module to the SMD motor neurons in the turning module was shown to suppress head movement during reversals. We propose that these functional motifs — feedforward excitation and inhibition — are combined with a nonlinear activation of turning neurons (Figure 7D) to produce flexible type-II (RT) transitions.

A simple synaptic chain model predicts that abolishing neural activity in a downstream module would not directly affect upstream neural output. However, when RIV/SAA/SMB in the turning module were ablated or inhibited (Figure 6B–C), we observed prolonged reversals during escape responses. Hence, the turning module may provide feedback inhibition onto the backward module, contributing to the reversal termination during the type-II transition. The cellular and molecular mechanisms for inhibitory feedback remain to be identified. One possible implementation is cholinergic synaptic outputs from SAAD onto RIM and AVA interneurons in the backward module; another possibility is synaptic outputs from RIB onto AVA/AVE (Figure 7A). Together, the feedforward coupling between the backward module and the turning module facilitates a defined sequential activity pattern, whereas the winner-take-all operation through mutual inhibition between the two modules avoids an action conflict.

Sensorimotor transformation depends on the initial condition of the network state (Remington et al., 2018a; Remington et al., 2018b). We show that when the backward motor state is suppressed via the hyperpolarization of interneurons AIB, an identical mechanosensory stimulus is less likely to elicit an escape response (Figure 2E). A recent study also demonstrated that mechanosensory stimuli were unlikely to drive other motor programs when C. elegans was executing a turn (Liu et al., 2018). We propose that the inhibition from the turning module to the backward module (Figure 7D) may account for this observation.

We view omega turn, a motor state encoded by transient activity in RIV, as a special manifold connecting two attractors represented by persistent activity in the forward or backward module (Figure 7D). Our finding — a combination of feedforward excitation and mutual inhibition between motor states — suggests a new way to control nonlinear dynamics towards a different fixed point (Morrison et al., 2020). In our simplified model, neurons within a module were treated as a homogeneous population. Nevertheless, interneurons with heterogeneous functional properties have been found. For example, laser ablation of AIB and RIM in the backward module (Figure 2A) differentially affect the probability of spontaneous reversals (Gray et al., 2005). While RIM showed increased calcium activity during reversals (Figure 2—figure supplement 1B) and promoted reversal upon optogenetic activation (Figure 2—figure supplement 1E–G), they were less important in modulating the type-II transition than AIB did (Figure 2—figure supplement 1D–G). The impact of functional heterogeneity on the attractor dynamics and motor state transitions remains to be understood.

Our biophysical model suggests that noises in a neural circuit (Equation 2) contribute to behavior variability. We speculate that stochasticity in neural dynamics and behaviors may allow animals to efficiently explore the action space (Dhawale et al., 2017Duffy et al., 2019; Tumer and Brainard, 2007); learning, by which functional connectivity between motor modules is modified through synaptic plasticity, may optimize action selection and timing (Sutton and Barto, 2017). We found that in C. elegans, the functional connectivity between motor modules consists of feedforward excitation and mutual inhibition. Conserved network motifs may be distributed among mammalian forebrain and midbrain circuits (Fadok et al., 2017; Klaus et al., 2019). Other animals could use similar algorithms to organize neuronal activities into sequential states to drive motor primitives, by which stereotyped and flexible behaviors emerge.

Materials and methods

Key resources table.

Reagent type (species)
or resource
Designation Source or reference Identifiers Additional information
Strain, strain background (C. elegans) C. elegans strains used and generated in this study Caenorhabditis Genetics Center (CGC) and this paper Supplementary file 1
Recombinant DNA reagent Plasmids generated in this study This paper Supplementary file 2
Recombinant DNA reagent Primers for genes (or promoters) used in this study This paper Supplementary file 3
Software, algorithm MATLAB Mathworks RRID:SCR_001622 https://www.mathworks.com
Software, algorithm CoLBeRT system Samuel Lab http://colbert.physics.harvard.edu/
Software, algorithm ImageJ Media Cybernetics RRID:SCR_003070 https://imagej.net/
Software, algorithm LabVIEW National Instruments RRID:SCR_014325 http://www.ni.com

C. elegans strains

C. elegans strains including wild-type (N2), mutants, and transgenic worms were grown and cultivated according to standard procedures (Brenner, 1974). All strains used in this paper can be found in the Supplementary file 1. Transgenic worms for optogenetic experiments were cultivated in dark on NGM plates with OP50 bacteria and 0.4 mM all-trans retinal (ATR) for over 5 hr. We used young adult hermaphrodites to perform optogenetic and calcium imaging experiments, and L4 hermaphrodites to obtain expression patterns.

Molecular biology

Standard molecular biology methods were used. Details of plasmids, promoters and rescue genomic DNA (or cDNA) sequences can be found in Supplementary file 23.

Optogenetics

Worms were first washed in M9 buffer (or transferred onto an unseeded NGM plate for 1–3 min), then transferred onto a fresh agar plate [∼ 0.8% (w/v) agar in M9 buffer, without food], mounted on a motorized stage. Worms were left to freely explore the new environment for 3–5 min before testing, and were automatically tracked and retained within the field of view of a 10 × objective (Nikon Plan Apo, NA = 0.45) mounted on an inverted microscope (Nikon Ti-U, Japan) via dark field infrared illumination. Worm behaviors were recorded by a CMOS camera (Basler, aca2000-340kmNIR, Germany). MATLAB custom software (MathWorks, Inc Natick, MA, USA) was used for post-processing behavioral data and extracting moving directions and the kinematics of omega turns.

For freely roaming worms without optogenetic stimulation, we only recorded them for 5–8 min.

For worms with optogenetic stimulation, lasers and a digital micromirror device (DLI4130 0.7 XGA, Digital Light Innovations, TX, USA) were used to generate a defined spatiotemporal illumination pattern (Leifer et al., 2011) at a specific wavelength (473 nm, 561 nm or 635 nm), and to manipulate the activities of neurons expressing light-activated channels (ChR2, Arch or Chrimson) (Husson et al., 2012; Nagel et al., 2005). To eliminate the effect of adaptation, single worm was stimulated 5–8 times with at least a 50 second inter-stimulus interval. For example:

  1. To trigger escape responses, worms received 1.5 s blue light (short enough and over 80% trials showed responses in pilot experiments) to activate mechanosensory neurons ALM/AVM. All worms in the dataset had at least 20% probability to perform either type-I or type-II transitions. In other cases, 7 s (or 12 s) optogenetic illumination were used to ensure persistent activation/inhibition of local interneurons.

  2. In some experiments, worms received sequential optogenetic stimulations with different colors and varying durations controlled by diaphragm shutters (GCI 7102M, Daheng Optics, China). For example, the 1.5 s blue light optogenetic stimulation (to trigger escape response) was followed by green light with a duration of 3–12 s to inhibit other interneurons in the motor control circuit.

  3. We also performed selective optogenetic manipulation of interneurons when their cell body positions were sufficiently apart, given that the lateral resolution of our CoLBeRT system is up to ~ 5 μm. For example, RIV and SAAD neurons are separated by at least 20 μm along the dorsal-ventral axis (Figure 6A). In order to inhibit SAAD or RIV independently (Plim-4::Arch::GFP), we generated a spatial pattern to selectively illuminate the dorsal or ventral side (Figure 6B right). At the same time, we monitored GFP emission signals from these neurons excited by the laser (473 nm) to ensure we targeted the correct region (Figure 6B).

Calcium imaging

Calcium imaging was conducted on worms expressing a GCaMP6::wCherry (or mCardinal) fusion protein. Calcium activity was measured as a ratiometric change. For example, neural activity of AIB was measured as a fluorescence ratio of GFP to RFP (ΔR(t)/R0) (GCaMP6/wCherry), where R0 is the baseline ratio. In some cases, we define a new normalized ratiometric measure, ΔR(t) = [ΔR(t)- ΔR(t = 0)]/ R0.

When cell-specific promoters are available, including AIB and RIB, we performed calcium imaging using wide-field fluorescence microscopy. Unrestrained behaving worms were placed on fresh agarose plates [2% (w/v) agarose in M9 buffer], tracked by a motorized stage using the CoLBeRT system with infrared light illumination (Leifer et al., 2011). Blue and green lights were employed to excite GCaMP6 and wCherry (or mCardinal) proteins. Green and red emission signals were captured by a 10 × objective (Nikon Plan Apo, WD = 4 mm; NA = 0.45, Japan) at 50 fps with an exposure time of 20 ms, separated by a dichroic mirror, relayed by an optical splitter (OptoSplit II, Cairn-Research, UK), and projected onto one-half of a sCMOS sensor (Andor Zyla 4.2, UK) simultaneously. Green and red channels were aligned and processed by custom-written MATLAB scripts (Xu et al., 2018). Single worm was recorded for 3–10 min.

To image RIV neurons, which lack cell-specific promoters, we picked transgenic worms (Plim-4::GCaMP6::wCherry) with stronger fluorescence expression on RIV, and increased the exposure time (up to 50 ms) to obtain high signal-to-noise ratio images.

Multi-neuron calcium imaging in a freely behaving worm

To image calcium activity of multiple neurons in a freely behaving worm (e.g., Figure 2—figure supplement 1B), we combined a spinning disk confocal inverted microscope (Nikon Ti-U and Yokogawa CSU-W1, Japan) for calcium imaging with a customized upright light path for worm tracking and behavior recording. A worm was placed on an agarose pad [∼ 2% (w/v)] mounted on a motorized stage. We used a 40 × air objective (Nikon Plan Apo, WD 0.25–0.17 mm; NA = 0.95, Japan) or a 60 × water immersion objective (Nikon Plan Apo, WD 0.22 mm; NA = 1.20, Japan). The wavelengths of confocal excitation lasers were 488 nm and 561 nm; the emission lights were split (Andor Optosplit II, UK) in front of a sCMOS camera (Andor Zyla 4.2, UK). At the same time, we utilized a customized light path that was aligned to the same z axis to track the worm and to record behavioral data. In the upright path, a low magnification 10 × objective (Nikon Plan Fluor, WD 16 mm; NA = 0.30, Japan) was used to gather fluorescent light excited by confocal lasers, and the fluorescent signal was processed to identify worm positions. A real time feedback signal was sent to a motorized stage to keep the worm head within the center of field of view. Meanwhile, we illuminated the worm by an infrared ring surrounding the high magnification objective to record worm behavior through the upright light path.

Simultaneous optogenetic manipulation and calcium imaging

To combine calcium imaging and optogenetic manipulation (e.g., Figure 3B), a 635 nm laser was added to activate Chrimson. Because blue light can also activate Chrimson, excitation light for GCaMP6 imaging and red light for optogenetic stimulation were synchronized using a TTL signal (LabJack Corp., U3-HV) controlled by LabVIEW (National Instruments Corp., USA). For example, to verify the connectivity between AIB and RIV, we activated AIB using red laser (635 nm) and recorded the calcium signal in RIV using blue LED excitation (M470L3-C1; Thorlabs, USA) for 7 s simultaneously. Both restrained and freely moving worms were tested. Restrained worms were placed on 10% (w/v) agarose plates with coverslips, whereas freely moving ones were placed on 2% (w/v) fresh agarose plates. Single worm was stimulated 5–8 times with at least a 50 s inter-trial interval.

Thermally-induced escape responses

In addition to optogenetic stimulation of mechanosensory neurons, we also used a thermal stimulus to trigger escape responses. We illuminated the head of a worm with a focused infrared laser light (1480 nm; spot diameter ~120 μm, ΔT ~ 2 °C) for 0.75 s (short enough and over 80% trials showed responses in pilot experiments), and animals responded with reversals or omega turns to avoid the stimulus (Mohammadi et al., 2013). The transition rates were qualitatively similar to ALM/AVM-induced escape responses (Figure 1C–D). Identical experimental protocols were used when thermally-induced escape responses were followed by optogenetic manipulation or calcium imaging of interneurons.

Glutamate imaging

Glutamate imaging was conducted on worms expressing iGluSnFR (Marvin et al., 2013) on RIB and Chrimson on AIB (Figure 4E and Figure 4—figure supplement 2A). All worms were restrained on fresh 10% (w/v) agarose plates with coverslips. We used 60 × water immersion objective. Both processes and cell body of RIB were imaged on the same focal plane. Imaging acquisition rate is 150 fps. Like calcium imaging, blue excitation light (weak enough to reduce the bleaching effect; M470L3-C1; Thorlabs) for glutamate imaging and red light (635 nm, 6.11 mW/mm2) for optogenetic stimulation were synchronized with a TTL signal. Glutamate signaling resulted in a change of the green fluorescence signal on the membrane of RIB interneurons. Stimulation and imaging sustained for more than 8 s. Single worm was stimulated 2–3 times with at least a 50 s inter-stimulus interval.

Optogenetic ablation

We used miniSOG (mini Singlet Oxygen Generator) to ablate specific neurons in C. elegans. Upon blue light stimulation, a mitochondria-targeted miniSOG (TOMM20-miniSOG) (Qi et al., 2012) or a membrane-targeted miniSOG (PH-miniSOG) (Xu and Chisholm, 2016) were employed to induce cell death in cell-autonomous manner. L2/early L3 worms were transferred onto an unseeded NGM plate, restricted by a small ring of filter paper soaked with 100 μM CuCl2. Worms were illuminated for 40–60 min (TOMM20-miniSOG) or 2 min (PH-miniSOG) with blue LED (M470L3-C5; Thorlabs) at the intensity of 0.46 mW/mm2. After illumination, worms were transplanted back to OP50-seeded NGM plates, and were allowed to recover for 1–2 days before behavior testing.

Behavioral assays and analysis

Recorded movies, in which worm body centerlines were extracted in real time, were further processed semi-automatically in MATLAB to identify locomotor states (forward locomotion, backward locomotion, pause and turn) and other statistical parameters. We also set up a Graphic User Interface (GUI) that allows human interference and proofreading.

Reversal duration was defined as the time from reversal start to reversal end. If one stimulus triggered several reversals, we always scored the first one. Omega turns were identified by either the head touching the body (or tail) or θ >135° within a single head swing (Figure 1—figure supplement 1A). The end of a turn was identified when a worm opened its coiled posture and began to move forward.

Transition rate calculation

Transition rates are calculated by the following equations

rforwi=nforwiΔt(Sforwi+Sturni)
rturni=nturniΔt(Sforwi+Sturni)

We group trials into time bins. For example, here we use time bin Δt=1s for illustration. Let nforwinturni denote the number of trials that end with type-I or type-II transition in the i-th time bin. nforw1=8 means there are 8 trials which terminate its reversal with forward movement from 0.0 s to 1.0 s; nturn4=12 means 12 trials terminate its reversal with a turn from 3.0 s to 4.0 s. Next, we shall use Sforwi, Sturni to represent the number of trials among type-I or type-II transition which survive to the start of the i-th time bin. Naturally, we have Sforwi=j=inforwj, Sturni=j=inturnj. For example, Sturn1=j=1nturnj is the total number of trials that execute a turn. Sforw3=j=3nforwj represents the number of all trials among type-I transition that survive to 2.0 s.

Theoretical account of transition rates and model details

Detailed description can be found in Appendix.

Quantification and statistical analysis

Quantification and statistical parameters were indicated in the legends of each figure, including the statistical methods, error bars, n numbers (see Supplementary file 4 for more details), and p values. We applied Mann–Whitney U test, χ2 test or Fisher’s exact test among samples, two-way ANOVA to determine the significance of difference between groups for two factors, and Kolmogorov-Smirnov test to compare probability distributions from two samples. All multiple comparisons were adjusted using Bonferroni correction. We considered p values of < 0.05 significant. All analyses were performed using MATLAB.

Data availability

Raw data of calcium imaging experiments and all code used for modeling or figure generation are available for download from https://github.com/Wenlab/Worm-Motor-Sequence-Generation (Xin et al., 2020; copy archived at https://github.com/elifesciences-publications/Worm-Motor-Sequence-Generation). Source data files have been provided for main figures.

Acknowledgements

We thank Louis Tao and Shangbang Gao for discussions, Pinjie Li for analyzing the reorientation angles during the type-I and type-II transitions. This work was funded by Key Area R&D Program of Guangdong Province with Grant No. 2018B030338001, the Strategic Priority Research Program of the Chinese Academy of Sciences (Pilot study, grant XDPB10, Grant No. XDB39000000), National Science Foundation of China Grants NSFC-31471051 and NSFC-91632102, Key scientific technological innovation research project by Ministry of Education, the Fundamental Research Funds for the Central Universities (QW), and the Canadian Institute of Health Research Foundation Scheme 154274 (MZ). Mei Zhen thanks her lab members Yangning Lu, Maria Lim, and Jyothsna Chitturi for sharing their unpublished optogenetic methods, observations, and reagents used in this study.

Appendix 1

This note provides a theoretical account of the time-dependent type-II (RT) transition rate. First, we shall consider how the type-II transition arises through a rapid change of neuronal activity, represented experimentally by inter/motor neurons RIV. Second, we shall argue that the introduction of short-term synaptic depression (STD) in the inhibitory synapses may provide an explanation of the type-II transition rate.

A biophysical model

Consider a model neuron (e.g. RIV) in the turning module receiving excitatory inputs through gap junction and inhibitory inputs through chemical synapses (Figure 7A). The following equation describes the membrane potential x of a neuron determined by the gap junction conductance, inhibitory synaptic conductance and leaky conductance, represented by Gg, Gi and Gc respectively (Varshney et al., 2011).

Cx˙=Gg(xEe)Gi(xEi)Gc(xEc)+INoise (1.1)

Since the excitatory gap junction input is from AIB, here we use Ee to represent the voltage of AIB in the first term. Ei and Ec denote the reversal potential of inhibitory synapse and the resting potential. Inoise is Gaussian white noise, which could be regarded as the fluctuation of synaptic currents and other sources of noises that are not explicitly considered in the model.

For simplicity, let us first assume that all the inputs, Gg, Gi and Gc, are constants. This assumption will be relaxed later when we introduce short-term synaptic plasticity in inhibitory synapses, with which Gi decreases while Gg and Gc remain unchanged. Ee, the membrane potential of AIB is treated as a constant, provided that the backward module exhibits persistent activity during a reversal. The fixed point x0 is given by

x0=EeGg+EiGi+EcGcGg+Gi+Gc=(mEmGm)/mGm (1.2)

where m denotes all kinds of inputs, including gap junctions, chemical synapses and leaky channels. Gm and Em are the conductance of an input and the corresponding target voltage.

With small perturbation x0x0+Δx, we make an approximation

Cx˙=mGmΔx (1.3)

provided that the synaptic inputs from other neurons are insensitive to small fluctuation of the membrane potential of a postsynaptic neuron. In this case, the membrane potential can be viewed as a one-dimensional Brownian particle which obeys the following equation

x˙=k(xx0)+η,x<xth (1.4)

where k=mGm/C, and η is gaussian white noise. We assume that the membrane potential x fluctuates around x0 during a reversal. Once the noise drives the membrane potential across a threshold xth, the system transits to a different state: RIV neurons become rapidly depolarized due to a nonlinear rectified activation (Figure 3E and Figure 7B), starting a turn by activating ventral muscles and terminating the reversal via feedback inhibition (Figure 7A and D).

Calculating the stationary probability density near fixed point with Fokker-Plank equation

Fokker-Planck equation that describes the probability density of the particle position (Hänggi et al., 1990) is

P(x,t)t=x[k(xx0)P(x,t)]+σ22P(x,t)x2 (2.1)

where σ determines the amplitude of noise. According to Einstein’s theory on Brownian motion, σ and the variance of Gaussian white noise η has the following relation:

σ2=Δt2η2 (2.2)

where Δt is the time step.

The stationary solution for Fokker-Planck equation P(x,t)t=0 is given by:

P(x)e k(xx0)22σ2 (2.3)

which is similar to Boltzmann distribution, where k(xx0)22 can be viewed as the potential energy U(x), and σ2 plays the role of temperature kBT.

Biophysical understanding of the type-II transition

Now consider a terminal threshold xth, beyond which the system transits to a different state. Assuming that the barrier is high and the particle is restricted in the energy well, we shall next calculate the small, albeit not negligible probability current J crossing the barrier.

From Fokker-Planck Equation 2.1 we have:

P(x,t)t=x[k(xx0)P(x,t)]+σ22P(x,t)x2=x[k(xx0)P(x,t)+σ2P(x,t)x]=J(x,t)x (3.1)

Current J can be rewritten in another form

J(x,t)=σ2e k(xx0)22σ2x[ek(xx0)22σ2P(x,t)] (3.2)

Considering a stationary state, we have P(x,t)t0, Jconst

x[ek(xx0)22σ2P(x)]=Jσ2ek(xx0)22σ2 (3.3)

Integrate Equation 3.3 between x0 and xth

[ek(xx0)22σ2P(x)]|x0xth=Jσ2x0xthek(xx0)22σ2dx (3.4)

Since the particle is restricted around x0, P(xth)0, then we have

J=σ2P(x0)x0xthek(xx0)22σ2dx (3.5)

To get P(x0) in Equation 3.5, note that the probability of finding the particle around x0 should be 1, and P(x)=P(x0)e k(xx0)22σ2 according to Equation 2.3, we have

P(x0)+ek(xx0)22σ2dx=1 (3.6)

Let A denote k2σ2

P(x0)x0hx0+he k(xx0)22σ2dx=P(x0)hhe(Ax)2dx=P(x0)πAerf(Ah)=1 (3.7)

 where erf(x)=2π0xez2dz is the error function.

By taking the limit h+, erf(Ah)1, we find

P(x0)=Aπ (3.8)

The denominator x0xthek(xx0)22σ2dx in Equation 3.5 can be calculated directly

x0xthek(xx0)22σ2dx=0xthx0e(Ax)2dx=π2Aerfi(A(xthx0)) (3.9)

where erfi(x)=2π0xez2dz is imaginary error function

Substituting Equations 3.8–3.9 into Equation 3.5, we finally obtain the transition rate r

r=J=kπerfi1(k2σ2(xthx0)) (3.10)

Transition rate with short-term synaptic depression

Since the membrane time constant of a neuron (~10 ms) is much smaller than the behavioral timescale (~s), the probability density approaches the stationary state rapidly and Equation 3.10 is a constant rather than a function of time, resulting in an exponential distribution of the survival function. To explain the time-dependent type-II transition rate (Figure 1C–D), we introduce plasticity in the inhibitory synapses, analogous to short-term synaptic depression (STD).

As the inhibition onto the model neuron becomes weaker, fixed point x0 moves towards threshold xth; k, which characterizes the steepness of the potential energy, becomes shallower. Both analytical calculation and simulation suggest that the change of x0 has a much larger effect on the transition rate in the region xthx0EeEi.

In this regime, consider a simple case when x0 varies with time for a fixed k. Assuming the strength of synaptic inhibition decreases exponentially, we have

r2(t)=kπerfi1(k2σ2(xthx0(t)))=kπerfi1(k2σ2(xthxfin+(xfinxini)et/τ))=kπerfi1(α+βet/τ) (4.1)

Equation 4.1 was used to fit the type-II transition rate.

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Contributor Information

Quan Wen, Email: qwen@ustc.edu.cn.

Manuel Zimmer, Research Institute of Molecular Pathology, Vienna Biocenter and University of Vienna, Austria.

Piali Sengupta, Brandeis University, United States.

Funding Information

This paper was supported by the following grants:

  • Key Area R&D Program of Guangdong Province 2018B030338001 to Yuan Wang, Xiaoqian Zhang, Jing Huo, Tianqi Xu, Quan Wen.

  • Chinese Academy of Sciences Strategic Priority Research Program XDPB10, XDB39000000 to Yuan Wang, Xiaoqian Zhang, Qi Xin, Jing Huo, Tianqi Xu, Yu Xie, Quan Wen.

  • National Science Foundation of China NSFC-31471051 to Yuan Wang, Xiaoqian Zhang, Qi Xin, Jing Huo, Tianqi Xu, Yu Xie, Quan Wen.

  • National Science Foundation of China NSFC-91632102 to Yuan Wang, Xiaoqian Zhang, Qi Xin, Jing Huo, Tianqi Xu, Yu Xie.

  • CIHR Foundation Scheme 154274 to Wesley Hung, Mei Zhen.

  • Fundamental Research Funds for the Central Universities to Quan Wen.

Additional information

Competing interests

No competing interests declared.

Author contributions

Resources, Data curation, Formal analysis, Investigation, Visualization, Writing - original draft, Writing - review and editing.

Data curation, Software, Formal analysis, Visualization, modelling, Writing - original draft.

Resources, Writing - review and editing.

Resources.

Resources, Investigation.

Resources.

Resources.

Resources.

Conceptualization, Supervision, Funding acquisition, Investigation, Writing - original draft, Project administration, Writing - review and editing.

Additional files

Supplementary file 1. Strains information.
elife-56942-supp1.docx (23.1KB, docx)
Supplementary file 2. Associated plasmids information.
elife-56942-supp2.docx (14.4KB, docx)
Supplementary file 3. Associated promoter and gene information.
elife-56942-supp3.docx (15.9KB, docx)
Supplementary file 4. Sample size and replicate number for all experiments.
elife-56942-supp4.docx (19.7KB, docx)
Transparent reporting form

Data availability

All data generated or analysed during this study are included in the manuscript.

References

  1. Abeles M. Corticonics: Neural Circuits of the Cerebral Cortex. Cambridge University Press; 1991. [Google Scholar]
  2. Ahamed T, Costa AC, Stephens GJ. Capturing the continuous complexity of behavior in C. elegans. arXiv. 2019 https://arxiv.org/abs/1911.10559
  3. Alkema MJ, Hunter-Ensor M, Ringstad N, Horvitz HR. Tyramine functions independently of octopamine in the Caenorhabditis elegans nervous system. Neuron. 2005;46:247–260. doi: 10.1016/j.neuron.2005.02.024. [DOI] [PubMed] [Google Scholar]
  4. Allen C, Stevens CF. An evaluation of causes for unreliability of synaptic transmission. PNAS. 1994;91:10380–10383. doi: 10.1073/pnas.91.22.10380. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Altun ZF, Chen B, Wang ZW, Hall DH. High resolution map of Caenorhabditis elegans gap junction proteins. Developmental Dynamics : An Official Publication of the American Association of Anatomists. 2009;238:1936–1950. doi: 10.1002/dvdy.22025. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Barnes TM, Hekimi S. The Caenorhabditis elegans avermectin resistance and anesthetic response gene unc-9 encodes a member of a protein family implicated in electrical coupling of excitable cells. Journal of Neurochemistry. 1997;69:2251–2260. doi: 10.1046/j.1471-4159.1997.69062251.x. [DOI] [PubMed] [Google Scholar]
  7. Berg HC. Random Walks in Biology. Princeton University Press; 1993. [Google Scholar]
  8. Berman GJ, Choi DM, Bialek W, Shaevitz JW. Mapping the stereotyped behaviour of freely moving fruit flies. Journal of the Royal Society Interface. 2014;11:20140672. doi: 10.1098/rsif.2014.0672. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Bhattacharya A, Aghayeva U, Berghoff EG, Hobert O. Plasticity of the electrical connectome of C. elegans. Cell. 2019;176:1174–1189. doi: 10.1016/j.cell.2018.12.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Brennan C, Proekt A. A quantitative model of conserved macroscopic dynamics predicts future motor commands. eLife. 2019;8:e46814. doi: 10.7554/eLife.46814. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Brenner S. The genetics of Caenorhabditis elegans. Genetics. 1974;77:71–94. doi: 10.1093/genetics/77.1.71. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Burak Y, Fiete IR. Fundamental limits on persistent activity in networks of noisy neurons. PNAS. 2012;109:17645–17650. doi: 10.1073/pnas.1117386109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Chalfie M, Sulston JE, White JG, Southgate E, Thomson JN, Brenner S. The neural circuit for touch sensitivity in Caenorhabditis elegans. The Journal of Neuroscience. 1985;5:956–964. doi: 10.1523/JNEUROSCI.05-04-00956.1985. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Dent JA, Davis MW, Avery L. avr-15 encodes a chloride channel subunit that mediates inhibitory glutamatergic neurotransmission and ivermectin sensitivity in Caenorhabditis elegans. The EMBO Journal. 1997;16:5867–5879. doi: 10.1093/emboj/16.19.5867. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Dhawale AK, Smith MA, Ölveczky BP. The role of variability in motor learning. Annual Review of Neuroscience. 2017;40:479–498. doi: 10.1146/annurev-neuro-072116-031548. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Duffy A, Abe E, Perkel DJ, Fairhall AL. Variation in sequence dynamics improves maintenance of stereotyped behavior in an example from bird song. PNAS. 2019;116:9592–9597. doi: 10.1073/pnas.1815910116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Fadok JP, Krabbe S, Markovic M, Courtin J, Xu C, Massi L, Botta P, Bylund K, Müller C, Kovacevic A, Tovote P, Lüthi A. A competitive inhibitory circuit for selection of active and passive fear responses. Nature. 2017;542:96–100. doi: 10.1038/nature21047. [DOI] [PubMed] [Google Scholar]
  18. Ganguli S, Bisley JW, Roitman JD, Shadlen MN, Goldberg ME, Miller KD. One-dimensional dynamics of attention and decision making in LIP. Neuron. 2008;58:15–25. doi: 10.1016/j.neuron.2008.01.038. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Gordus A, Pokala N, Levy S, Flavell SW, Bargmann CI. Feedback from network states generates variability in a probabilistic olfactory circuit. Cell. 2015;161:215–227. doi: 10.1016/j.cell.2015.02.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Gray JM, Hill JJ, Bargmann CI. A circuit for navigation in Caenorhabditis elegans. PNAS. 2005;102:3184–3191. doi: 10.1073/pnas.0409009101. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Hänggi P, Talkner P, Borkovec M. Reaction-rate theory: fifty years after kramers. Reviews of Modern Physics. 1990;62:251–341. doi: 10.1103/RevModPhys.62.251. [DOI] [Google Scholar]
  22. Harvey CD, Coen P, Tank DW. Choice-specific sequences in parietal cortex during a virtual-navigation decision task. Nature. 2012;484:62–68. doi: 10.1038/nature10918. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Husson SJ, Liewald JF, Schultheis C, Stirman JN, Lu H, Gottschalk A. Microbial light-activatable proton pumps as neuronal inhibitors to functionally dissect neuronal networks in C. elegans. PLOS ONE. 2012;7:e40937. doi: 10.1371/journal.pone.0040937. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Iino Y, Yoshida K. Parallel use of two behavioral mechanisms for chemotaxis in Caenorhabditis elegans. Journal of Neuroscience. 2009;29:5370–5380. doi: 10.1523/JNEUROSCI.3633-08.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Inagaki HK, Inagaki M, Romani S, Svoboda K. Low-Dimensional and monotonic preparatory activity in mouse anterior lateral motor cortex. The Journal of Neuroscience. 2018;38:4163–4185. doi: 10.1523/JNEUROSCI.3152-17.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Kato S, Kaplan HS, Schrödel T, Skora S, Lindsay TH, Yemini E, Lockery S, Zimmer M. Global brain dynamics embed the motor command sequence of Caenorhabditis elegans. Cell. 2015;163:656–669. doi: 10.1016/j.cell.2015.09.034. [DOI] [PubMed] [Google Scholar]
  27. Kawano T, Po MD, Gao S, Leung G, Ryu WS, Zhen M. An imbalancing act: gap junctions reduce the backward motor circuit activity to Bias C. elegans for forward locomotion. Neuron. 2011;72:572–586. doi: 10.1016/j.neuron.2011.09.005. [DOI] [PubMed] [Google Scholar]
  28. Klaus A, Alves da Silva J, Costa RM. What, if, and when to move: basal ganglia circuits and Self-Paced action initiation. Annual Review of Neuroscience. 2019;42:459–483. doi: 10.1146/annurev-neuro-072116-031033. [DOI] [PubMed] [Google Scholar]
  29. Laurent P, Soltesz Z, Nelson GM, Chen C, Arellano-Carbajal F, Levy E, de Bono M. Decoding a neural circuit controlling global animal state in C. elegans. eLife. 2015;4:e04241. doi: 10.7554/eLife.04241. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Leifer AM, Fang-Yen C, Gershow M, Alkema MJ, Samuel AD. Optogenetic manipulation of neural activity in freely moving Caenorhabditis elegans. Nature Methods. 2011;8:147–152. doi: 10.1038/nmeth.1554. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Li Z, Liu J, Zheng M, Xu XZ. Encoding of both analog- and digital-like behavioral outputs by one C. elegans interneuron. Cell. 2014;159:751–765. doi: 10.1016/j.cell.2014.09.056. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Lindsay TH, Thiele TR, Lockery SR. Optogenetic analysis of synaptic transmission in the central nervous system of the nematode Caenorhabditis elegans. Nature Communications. 2011;2:306. doi: 10.1038/ncomms1304. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Liu P, Chen B, Altun ZF, Gross MJ, Shan A, Schuman B, Hall DH, Wang ZW. Six innexins contribute to electrical coupling of C. elegans body-wall muscle. PLOS ONE. 2013;8:e76877. doi: 10.1371/journal.pone.0076877. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Liu M, Sharma AK, Shaevitz JW, Leifer AM. Temporal processing and context dependency in Caenorhabditis elegans response to mechanosensation. eLife. 2018;7:e36419. doi: 10.7554/eLife.36419. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Long MA, Jin DZ, Fee MS. Support for a synaptic chain model of neuronal sequence generation. Nature. 2010;468:394–399. doi: 10.1038/nature09514. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Louie K, Wilson MA. Temporally structured replay of awake hippocampal ensemble activity during rapid eye movement sleep. Neuron. 2001;29:145–156. doi: 10.1016/S0896-6273(01)00186-6. [DOI] [PubMed] [Google Scholar]
  37. Luo L, Wen Q, Ren J, Hendricks M, Gershow M, Qin Y, Greenwood J, Soucy ER, Klein M, Smith-Parker HK, Calvo AC, Colón-Ramos DA, Samuel AD, Zhang Y. Dynamic encoding of perception, memory, and movement in a C. elegans chemotaxis circuit. Neuron. 2014;82:1115–1128. doi: 10.1016/j.neuron.2014.05.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Mainen ZF, Sejnowski TJ. Reliability of spike timing in neocortical neurons. Science. 1995;268:1503–1506. doi: 10.1126/science.7770778. [DOI] [PubMed] [Google Scholar]
  39. Marvin JS, Borghuis BG, Tian L, Cichon J, Harnett MT, Akerboom J, Gordus A, Renninger SL, Chen TW, Bargmann CI, Orger MB, Schreiter ER, Demb JB, Gan WB, Hires SA, Looger LL. An optimized fluorescent probe for visualizing glutamate neurotransmission. Nature Methods. 2013;10:162–170. doi: 10.1038/nmeth.2333. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Mastrogiuseppe F, Ostojic S. Linking connectivity, dynamics, and computations in Low-Rank recurrent neural networks. Neuron. 2018;99:609–623. doi: 10.1016/j.neuron.2018.07.003. [DOI] [PubMed] [Google Scholar]
  41. Mohammadi A, Byrne Rodgers J, Kotera I, Ryu WS. Behavioral response of Caenorhabditis elegans to localized thermal stimuli. BMC Neuroscience. 2013;14:66. doi: 10.1186/1471-2202-14-66. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Mori I, Ohshima Y. Neural regulation of thermotaxis in Caenorhabditis elegans. Nature. 1995;376:344–348. doi: 10.1038/376344a0. [DOI] [PubMed] [Google Scholar]
  43. Morrison M, Fieseler C, Kutz JN.  Nonlinear control in the nematode C. elegans. arXiv. 2020 doi: 10.3389/fncom.2020.616639. https://arxiv.org/abs/2001.08332 [DOI] [PMC free article] [PubMed]
  44. Nagel G, Brauner M, Liewald JF, Adeishvili N, Bamberg E, Gottschalk A. Light activation of Channelrhodopsin-2 in excitable cells of Caenorhabditis elegans Triggers Rapid Behavioral Responses. Current Biology. 2005;15:2279–2284. doi: 10.1016/j.cub.2005.11.032. [DOI] [PubMed] [Google Scholar]
  45. Narayan A, Laurent G, Sternberg PW. Transfer characteristics of a thermosensory synapse in Caenorhabditis elegans. PNAS. 2011;108:9667–9672. doi: 10.1073/pnas.1106617108. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Nguyen JP, Shipley FB, Linder AN, Plummer GS, Liu M, Setru SU, Shaevitz JW, Leifer AM. Whole-brain calcium imaging with cellular resolution in freely behaving Caenorhabditis elegans. PNAS. 2016;113:E1074–E1081. doi: 10.1073/pnas.1507110112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Pierce-Shimomura JT, Morse TM, Lockery SR. The fundamental role of pirouettes in Caenorhabditis elegans chemotaxis. The Journal of Neuroscience. 1999;19:9557–9569. doi: 10.1523/JNEUROSCI.19-21-09557.1999. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Pirri JK, McPherson AD, Donnelly JL, Francis MM, Alkema MJ. A tyramine-gated chloride channel coordinates distinct motor programs of a Caenorhabditis elegans escape response. Neuron. 2009;62:526–538. doi: 10.1016/j.neuron.2009.04.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Pokala N, Liu Q, Gordus A, Bargmann CI. Inducible and titratable silencing of Caenorhabditis elegans neurons in vivo with histamine-gated chloride channels. PNAS. 2014;111:2770–2775. doi: 10.1073/pnas.1400615111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Qi YB, Garren EJ, Shu X, Tsien RY, Jin Y. Photo-inducible cell ablation in Caenorhabditis elegans using the genetically encoded singlet oxygen generating protein miniSOG. PNAS. 2012;109:7499–7504. doi: 10.1073/pnas.1204096109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Rajan K, Harvey CD, Tank DW. Recurrent network models of sequence generation and memory. Neuron. 2016;90:128–142. doi: 10.1016/j.neuron.2016.02.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Remington ED, Egger SW, Narain D, Wang J, Jazayeri M. A Dynamical Systems Perspective on Flexible Motor Timing. Trends in Cognitive Sciences. 2018a;22:938–952. doi: 10.1016/j.tics.2018.07.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Remington ED, Narain D, Hosseini EA, Jazayeri M. Flexible sensorimotor computations through rapid reconfiguration of cortical dynamics. Neuron. 2018b;98:1005–1019. doi: 10.1016/j.neuron.2018.05.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Roberts WM, Augustine SB, Lawton KJ, Lindsay TH, Thiele TR, Izquierdo EJ, Faumont S, Lindsay RA, Britton MC, Pokala N, Bargmann CI, Lockery SR. A stochastic neuronal model predicts random search behaviors at multiple spatial scales in C. elegans. eLife. 2016;5:e12572. doi: 10.7554/eLife.12572. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Seeds AM, Ravbar P, Chung P, Hampel S, Midgley FM, Mensh BD, Simpson JH. A suppression hierarchy among competing motor programs drives sequential grooming in Drosophila. eLife. 2014;3:e02951. doi: 10.7554/eLife.02951. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Serrano-Saiz E, Poole RJ, Felton T, Zhang F, De La Cruz ED, Hobert O. Modular control of glutamatergic neuronal identity in C. elegans by distinct homeodomain proteins. Cell. 2013;155:659–673. doi: 10.1016/j.cell.2013.09.052. [DOI] [PMC free article] [PubMed] [Google Scholar]
  57. Shmiel T, Drori R, Shmiel O, Ben-Shaul Y, Nadasdy Z, Shemesh M, Teicher M, Abeles M. Temporally precise cortical firing patterns are associated with distinct action segments. Journal of Neurophysiology. 2006;96:2645–2652. doi: 10.1152/jn.00798.2005. [DOI] [PubMed] [Google Scholar]
  58. Skaggs WE, McNaughton BL. Replay of neuronal firing sequences in rat Hippocampus during sleep following spatial experience. Science. 1996;271:1870–1873. doi: 10.1126/science.271.5257.1870. [DOI] [PubMed] [Google Scholar]
  59. Starich TA, Herman RK, Shaw JE. Molecular and genetic analysis of unc-7, aCaenorhabditis elegansgene required for coordinated locomotion. Genetics. 1993;133:527–541. doi: 10.1093/genetics/133.3.527. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Starich TA, Xu J, Skerrett IM, Nicholson BJ, Shaw JE. Interactions between innexins UNC-7 and UNC-9 mediate electrical synapse specificity in the Caenorhabditis elegans locomotory nervous system. Neural Development. 2009;4:16. doi: 10.1186/1749-8104-4-16. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Stephens GJ, Johnson-Kerner B, Bialek W, Ryu WS. Dimensionality and dynamics in the behavior of C. elegans. PLOS Computational Biology. 2008;4:e1000028. doi: 10.1371/journal.pcbi.1000028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. Stephens GJ, Bueno de Mesquita M, Ryu WS, Bialek W. Emergence of long timescales and stereotyped behaviors in Caenorhabditis elegans. PNAS. 2011;108:7286–7289. doi: 10.1073/pnas.1007868108. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Steuer Costa W, Van der Auwera P, Glock C, Liewald JF, Bach M, Schüler C, Wabnig S, Oranth A, Masurat F, Bringmann H, Schoofs L, Stelzer EHK, Fischer SC, Gottschalk A. A GABAergic and peptidergic sleep neuron as a locomotion stop neuron with compartmentalized Ca2+ dynamics. Nature Communications. 2019;10:4095. doi: 10.1038/s41467-019-12098-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Sutton RS, Barto AG. Reinforcement Learning: An Introduction. MIT Press; 2017. [Google Scholar]
  65. Tumer EC, Brainard MS. Performance variability enables adaptive plasticity of 'crystallized' adult birdsong. Nature. 2007;450:1240–1244. doi: 10.1038/nature06390. [DOI] [PubMed] [Google Scholar]
  66. van Vreeswijk C, Sompolinsky H. Chaos in neuronal networks with balanced excitatory and inhibitory activity. Science. 1996;274:1724–1726. doi: 10.1126/science.274.5293.1724. [DOI] [PubMed] [Google Scholar]
  67. Varshney LR, Chen BL, Paniagua E, Hall DH, Chklovskii DB. Structural properties of the Caenorhabditis elegans neuronal network. PLOS Computational Biology. 2011;7:e1001066. doi: 10.1371/journal.pcbi.1001066. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Venkatachalam V, Ji N, Wang X, Clark C, Mitchell JK, Klein M, Tabone CJ, Florman J, Ji H, Greenwood J, Chisholm AD, Srinivasan J, Alkema M, Zhen M, Samuel AD. Pan-neuronal imaging in roaming Caenorhabditis elegans. PNAS. 2016;113:E1082–E1088. doi: 10.1073/pnas.1507109113. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. White JG, Southgate E, Thomson JN, Brenner S. The structure of the nervous system of the nematodeCaenorhabditis elegans. Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences. 1986;314:1–340. doi: 10.1098/rstb.1986.0056. [DOI] [PubMed] [Google Scholar]
  70. Wicks SR, Roehrig CJ, Rankin CH. A dynamic network simulation of the nematode tap withdrawal circuit: predictions concerning synaptic function using behavioral criteria. The Journal of Neuroscience. 1996;16:4017–4031. doi: 10.1523/JNEUROSCI.16-12-04017.1996. [DOI] [PMC free article] [PubMed] [Google Scholar]
  71. Witvliet D, Mulcahy B, Mitchell JK, Meirovitch Y, Berger DK, Wu Y, Holmyard DJb. Connectomes across development reveal principles of brain maturation in C. elegans . bioRxiv. 2020 doi: 10.1101/2020.04.30.066209. [DOI] [PMC free article] [PubMed]
  72. Xiao Z, Zhang J, Sornborger AT, Tao L. Cusps enable line attractors for neural computation. Physical Review E. 2017;96:052308. doi: 10.1103/PhysRevE.96.052308. [DOI] [PubMed] [Google Scholar]
  73. Xin Q, Zhang X, Wang Y. Open source codes for C. elegans motor sequence generation. df3e930 GitHub. 2020 https://github.com/Wenlab/Worm-Motor-Sequence-Generation
  74. Xu T, Huo J, Shao S, Po M, Kawano T, Lu Y, Wu M, Zhen M, Wen Q. Descending pathway facilitates undulatory wave propagation in Caenorhabditis elegans through gap junctions. PNAS. 2018;115:E4493–E4502. doi: 10.1073/pnas.1717022115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  75. Xu S, Chisholm AD. Highly efficient optogenetic cell ablation in C. elegans using membrane-targeted miniSOG. Scientific Reports. 2016;6:21271. doi: 10.1038/srep21271. [DOI] [PMC free article] [PubMed] [Google Scholar]

Decision letter

Editor: Manuel Zimmer1

In the interests of transparency, eLife publishes the most substantive revision requests and the accompanying author responses.

Acceptance summary:

To execute competent behaviours, animals have to select, time and orchestrate their individual actions into orderly action sequences. By studying the escape response of C. elegans, Wang and colleagues provide intriguing insights into the underlying neuronal circuit mechanisms. While excitatory electrical signalling between an interneuron and a motoneuron ensures the sequential execution of actions, mutual inhibition via chemical synapses affects variable choices and timing. Such a combined excitatory feed-forward and winner-takes-all mutual-inhibition mechanism might be a general principle by which larger organism also organise more complex action sequences.

Decision letter after peer review:

Thank you for submitting your article "Flexible Motor Sequence Generation during Stereotyped Escape Responses" for consideration by eLife. Your article has been reviewed by three peer reviewers, one of whom is a member of our Board of Reviewing Editors, and the evaluation has been overseen by Piali Sengupta as the Senior Editor. The reviewers have opted to remain anonymous.

The reviewers were very enthusiastic about your manuscript and this decision has been arrived at following extensive consultation among them. The Reviewing Editor has drafted this decision to help you prepare a revised submission based on the detailed comments below.

As the editors have judged that your manuscript is of interest, but as described below that additional experiments and/or analyses are required before it is published, we would like to draw your attention to changes in our revision policy that we have made in response to COVID-19 (https://elifesciences.org/articles/57162). First, because many researchers have temporarily lost access to the labs, we will give authors as much time as they need to submit revised manuscripts. We are also offering, if you choose, to post the manuscript to bioRxiv (if it is not already there) along with this decision letter and a formal designation that the manuscript is "in revision at eLife". Please let us know if you would like to pursue this option.

Summary:

In "Flexible Motor Sequence Generation during Stereotyped Escape Responses", Wang et al. use behavioral analysis, calcium and glutamate imaging, optogenetics and a biophysical model to investigate the circuit mechanisms that generate an action sequence, the escape response of C. elegans. First, the authors characterize the motor sequences triggered either by optogenetic activation of mechanosensory neurons ALM/AVM or via a heat stimulus. Using a biophysical model, they classify the escape response into distinct action patterns (forward-reverse-omega turn vs forward-reverse-forward). Then, the authors investigate the role of the AIB interneurons in the transition from reversal to omega turns and find evidence that gap junctions between AIB and inter/motor neuron RIV mediate this transition. The authors then investigate the role of inhibitory glutamate signaling from AIB to RIB, an interneuron upstream of RIV, in shaping the dynamics of the reverse/turn transition. Lastly, they look into the role of turning module neurons (RIV, SAA and SMB) and find some initial evidence supporting that these neurons promote reversal termination. These results strongly support a model for the generation of behavioral sequences: as opposed to a feed-forward excitatory synaptic chain mechanism, the authors propose a mechanism involving concomitant feed-forward excitation and inhibition together with feedback inhibition that enables a more flexible control of the action sequence. This model is very interesting and potentially relevant for our understanding of motor control in general.

Essential revisions:

1) Flexibility of the escape response is observed in two ways: variability in the timing of behavioral motifs, as well as the choice between transitions type I and II; these outcomes seem to be interrelated as was observed in previous work. This concept should be better introduced and made clear throughout the text.

2) The authors describe the escape response with an alternative choice between two discrete and distinct transitions (type I vs type II). Here, they rely on a cutoff at 135 degrees reorientation angle; although this cutoff was used a few times in the past literature, to date it seems largely arbitrary. Since this is a key step in their analyses convincing evidence should be provided that justifies this distinction. Is there a bimodal distributions of reorientation angles, supporting this cutoff, under the present experimental conditions?

Note, that Kaplan et al., 2020 (see Figure S5I) reported such a bimodal distribution but here the cutoff should be around 100 degrees; based on Pierce-Shimomura et al., 1999 (Figure 9) bimodality is less obvious and if at all supporting a cutoff of around 45 degrees. Moreover, Szigeti et al., 2016 makes a strong argument of a continuum in omega turns, hence no subdivision should be made at all. On the other extreme, Broekmans et al., 2016 suggest a third transition (δ turn). In the light of these different findings, the authors need to show whether under their conditions the distribution of post-reversal reorientation angles is indeed bimodal and perhaps determine a more objective cutoff to support such behavioral classification into transitions I (no turn) and II (omega turn).

3) Model: reviewer #1: The authors claim that "the statistics were better described by introducing two types of transitions and the corresponding transition rates r(t)." However, no evidence is provided that this model indeed outperforms alternative models, e.g. a single transition rate with a continuum of post reversal reorientation angles. Or a model without plasticity in inhibitory synapses. Please provide additional sophisticated analysis scrutinizing the favoured model against alternative hypotheses.

The biophysical model is largely presented as a black box throughout the main text and little guidance to the general reader is provided, so that one has to work through the supplemental note, which is very difficult for the non-modeling-expert to follow. Which components of the model were crucial to obtain good fits and does the final model really outperforms simpler/alternative models?

Reviewer #2: The model isn't well integrated into the main text. The model is referred to in the Discussion and in relation to Figure 7 but appears to have a tenuous connection at this point. Ultimately, it only provides a fit function for the time-dependent transition rate. However, the Discussion suggests that the authors want to give more weight to the model as a basis for understanding the underlying neural circuit.

There are a few issues with the model as presented in the supplementary note:

- Assumptions are stated but are not justified or tested for their impact on the conclusion. For example, the assumption of the white-noise inputs from other neurons and the ad hoc assumption that the synaptic inhibition decreases exponentially.

- In the end the function has 3 (4?) free parameters to fit a curve. We are not surprised that the fit quality is good, but from the sparse description of the model it is unclear if it adds anything that goes substantially beyond just fitting an error function to the data.

4) At present, this study provides no evidence of neuronal correlates distinguishing transitions type I vs II. Simply triggering activity to reversal starts, reversal ends, and turns has been done in previous literature. The difference in mean amplitudes of AIB activity (type I vs II) could support the continuous model equally and/or be simply a result of different reversal durations. Moreover, we are surprised that it is not shown how the activity of RIV during type I vs. II differ? How is AIB and RIV activity distributed and can one predict type I vs type II just from certain features in AIB/RIV activity?

5) The inx-1, unc-7, unc-9 triple mutant data are hard to interpret because UNC-7 and UNC-9 are broadly expressed and previous literature shows that these mutants have substantial locomotion defects, thus there could be pleiotropic and additive effects from mutating several innexins. This should also be made clear in the main text, since at present, the authors mention that "several innexin proteins including INX-1, UNC-7 and UNC-9, are reported to express in AIB and RIV inter/motor neurons" but do not mention that especially UNC-7 and UNC-9 are expressed broadly in most other neurons.

Similarly, paragraph two of subsection “Feedforward coupling between the backward and turning modules drives omega turns” read that the inx-1 mutants still execute omega turns, leading the authors to conclude that multiple innexins are at play. However, it could also be that multiple neurons are at play, this possibility cannot be ruled out at this stage. The reasoning for performing the calcium imaging of RIV during AIB activation in the triple mutants is not clear. Was this experiment performed in the inx-1 single mutants, which is more specifically expressed in AIB? If so, these data should be shown.

6) There is no consensus on what marks the end of an omega turn. Please provide the definition and justification for this study. Otherwise, Figure 3A and Figure 2—figure supplement 1B are difficult to interpret.

7) One thing that might be nice would be if they could address the issue of stochasticity a bit more in the Discussion. Do the authors have any speculation why the behaviour is not more deterministic? And does their model give any insight into turn and reversal coupling in unstimulated animals undergoing spontaneous reversals?

8) Language:

The type-I /type-II language makes the text hard to read. It would be much easier for readability if the two cases were using an abbreviation that connects to the behaviors, for example type-I could be called RF and type-II – RT. This way the reader doesn't have to remember a somewhat arbitrary assignment of I/II.

9) Introduction: “(…) but a deep connection between theories and experiments remains yet to be established”. What constitutes a “deep connection”? Text suggests the authors are claiming they are providing one, which we don't see based on how little the model is integrated in the main text.

10) Discussion: " Several mechanisms may explain the decay of the iGluSnFR sensor signal, one being a depletion of available vesicles for release at the presynaptic site, analogous to short-term synaptic depression". It would be relevant to name alternative mechanisms here.

11) Discussion: "(…) are thought to underlie several motor behaviors such as Zebra Finch singing" would benefit from more examples and citations.

12) Winner-takes all strategy:

While this aspect can be understood from the data, the winner-takes all strategy should be more explicitly connected to the data in the Results section and explained in the Discussion.

13) Materials and methods:

The extensive documentation of strains, primers, promoters is great, yet it is often unclear which method was used for each figure panel. The Materials and methods section could be improved by a finer substructure with more subsections within similar groupings of experiments, that were performed using different instruments (e.g. optogenetics).

14) For multi-color imaging the Materials and methods section should explain how camera alignment was achieved.

15) Data availability:

We found the code accessible online. The link is included in the transparent reporting form but should also be repeated in the Materials and methods. A statement that custom MATLAB scripts were used is insufficient.

16) The order of neuronal activations involved in the action sequence (forward – reversal – post-reversal turn – forward) showing concomitant activity of AIB with reversal neurons followed by activation of RIV with turning neurons SMD and then RIB was shown already for immobilized worms in Kato et al., 2015. Moreover, ramping AIB activity during reversal has been shown before in Luo et al., 2014; Kato et al., 2015; Laurent et al., 2015, all for freely moving worms. The relationships of interneuron activities with reversal starts in freely moving worms (Figure 2—figure supplement 1B) were all shown already in Kato, 2015 and multiple other studies. It would be fair to credit this work and thereby highlighting better what is really new to this present study.

eLife. 2020 Jun 5;9:e56942. doi: 10.7554/eLife.56942.sa2

Author response


Essential revisions:

1) Flexibility of the escape response is observed in two ways: variability in the timing of behavioral motifs, as well as the choice between transitions type I and II; these outcomes seem to be interrelated as was observed in previous work. This concept should be better introduced and made clear throughout the text.

Thanks for the suggestion. We have now amended the following sentences in the Introduction:

“Notably, which action to select and when to execute exhibit trial to trial variability, and they can be coupled. For example, a previous study (Gray et al., 2005) has shown that a longer reversal is likely to be followed by an omega turn.”

In the Results section:

“We first examined neuronal correlate of behavioral flexibility in action selection. We compared the AIB ramping activity (Pinx-1::GCaMP6; Pinx-1::wCherry) in different action sequences during either spontaneous or thermal-stimulus-triggered behaviors (Figure 2B-C and Figure 2—figure supplement 1B-C).” and “We next investigated behavioral flexibility in the timing of an action.”

2) The authors describe the escape response with an alternative choice between two discrete and distinct transitions (type I vs type II). Here, they rely on a cutoff at 135 degrees reorientation angle; although this cutoff was used a few times in the past literature, to date it seems largely arbitrary. Since this is a key step in their analyses convincing evidence should be provided that justifies this distinction. Is there a bimodal distributions of reorientation angles, supporting this cutoff, under the present experimental conditions?

Thanks for bringing up this important point. We reanalyzed our dataset by computing post-reversal orientation angle between the head and the tail (Figure 1—figure supplement 1A). Intuitively, the head and the tail were diametrically opposed to each other in the type-II transition; whereas they were likely aligned to each other in the type-I transition. Indeed, this was what we found from our dataset and the distribution is apparently bimodal.

Note, that Kaplan et al., 2020 (see Figure S5I) reported such a bimodal distribution but here the cutoff should be around 100 degrees; based on Pierce-Shimomura et al., 1999 (Figure 9) bimodality is less obvious and if at all supporting a cutoff of around 45 degrees. Moreover, Szigeti et al., 2016 makes a strong argument of a continuum in omega turns, hence no subdivision should be made at all. On the other extreme, Broekmans et al., 2016 suggest a third transition (δ turn). In the light of these different findings, the authors need to show whether under their conditions the distribution of post-reversal reorientation angles is indeed bimodal and perhaps determine a more objective cutoff to support such behavioral classification into transitions I (no turn) and II (omega turn).

Our analysis in Figure 1—figure supplement 1A supports the classification. Note that during the escape responses, most turns during the type-II transition were ended with head touching the body or tail (283/322, Figure 1—figure supplement 1A). Our experimental conditions are different from those in Szigeti et al., 2016, which argues for a continuum in omega turns.

3) Model: reviewer #1: The authors claim that "the statistics were better described by introducing two types of transitions and the corresponding transition rates r(t)." However, no evidence is provided that this model indeed outperforms alternative models, e.g. a single transition rate with a continuum of post reversal reorientation angles. Or a model without plasticity in inhibitory synapses. Please provide additional sophisticated analysis scrutinizing the favoured model against alternative hypotheses.

We apologize that the original sentences in the main text may have caused some confusion. There are three reasons that motivate us to introduce two types of transitions. First, the distribution of post-reversal orientation angles is bimodal (Figure 1—figure supplement 1A), as addressed above. Second, the distribution of reversal length is statistically better described by a bimodal distribution (Figure 1—figure supplement 1B, tested using Gaussian mixture model). Third and most importantly, our cell ablation study (Figure 6C) could abolish the type-II transition without affecting the type-I transition. The ablation led to an exponent distribution of the survival function (Figure 6C insets), which was not observed in the statistics of wild type animals. These experimental observations and analysis argue strongly for considering two types of transitions.

We thank the reviewer for asking an alternative model without plasticity in inhibitory synapses. In new Figure 7C, we showed by simulation that the type-II transition rate would be time-independent in the absence of synaptic plasticity. We also explained in the main text why this would be the case.

The biophysical model is largely presented as a black box throughout the main text and little guidance to the general reader is provided, so that one has to work through the supplemental note, which is very difficult for the non-modeling-expert to follow. Which components of the model were crucial to obtain good fits and does the final model really outperforms simpler/alternative models?

We agree with the reviewer that the model should be better integrated with the text. We have outlined the essential ingredients of the model in the Results section.

1) We explain why short-term synaptic plasticity could account for the time-dependent type-II transition rate. We show with both simulation and analytical arguments that an alternative model without introducing synaptic plasticity would lead to a constant transition rate (Figure 7C).

2) We fit the experimentally measured type-II transition rate with r2(t)=k1erfi(k2+k3et/τg) , a formula derived from our model. One of the parameters – the decay time constant of synaptic strength τg – was directly obtained from the decay of glutamate sensor signal on RIB upon AIB optogenetic activation.

3) We show that our formula provides a better fit than the standard sigmoid function 1k2+k3et/τ with the same number of free parameters k2,k3,τ. We think that the introduction of imaginary error function contributes to a better fit of the transition rate (Figure 7E).

Reviewer #2: The model isn't well integrated into the main text. The model is referred to in the Discussion and in relation to Figure 7 but appears to have a tenuous connection at this point. Ultimately, it only provides a fit function for the time-dependent transition rate. However, the Discussion suggests that the authors want to give more weight to the model as a basis for understanding the underlying neural circuit.

These questions are similar to those raised by reviewer #1. See above for our responses.

There are a few issues with the model as presented in the supplementary note:

- Assumptions are stated but are not justified or tested for their impact on the conclusion. For example, the assumption of the white-noise inputs from other neurons and the ad hoc assumption that the synaptic inhibition decreases exponentially.

We apologize for being not very clear in explaining this point. η could be regarded as fluctuations in synaptic currents (Lindsay, Thiele and Lockery, 2011; Narayan, Laurent and Sternberg, 2011) and other sources of noises that are not explicitly considered in the model. Because we are agnostic to the temporal structure of fluctuations, by the principle of Occam’s Razor, we treated η as Gaussian white noise.

We made a direct connection between the decay of inhibitory synaptic strength and the glutamate fluorescent signal. Glutamate signal can be well fit by an exponential function at long timescale (Figure 4E) and we used the time constant τg as a constraint in our model. In the main text we now stated “Our hypothesis is consistent with the decay of the glutamate sensor signal on RIB neurites upon AIB stimulation (Figure 4E), an observation that may be explained by a depletion of available vesicles for release at the presynaptic site. … ”

- In the end the function has 3 (4?) free parameters to fit a curve. We are not surprised that the fit quality is good, but from the sparse description of the model it is unclear if it adds anything that goes substantially beyond just fitting an error function to the data.

We addressed these questions above.

4) At present, this study provides no evidence of neuronal correlates distinguishing transitions type I vs II. Simply triggering activity to reversal starts, reversal ends, and turns has been done in previous literature. The difference in mean amplitudes of AIB activity (type I vs II) could support the continuous model equally and/or be simply a result of different reversal durations. Moreover, we are surprised that it is not shown how the activity of RIV during type I vs. II differ? How is AIB and RIV activity distributed and can one predict type I vs type II just from certain features in AIB/RIV activity?

Thanks for the questions. Our analysis suggests that the mean amplitude of AIB calcium signal is not a good predictor of whether the animal would execute type-I or type-II transitions. A better predictor of action selection is the ramping rate of calcium fluorescent signal, that is ΔFΔt. The higher the ramping rate of AIB, the more likely the animal will end its reversal with a turn. We have made the text more clearly, see subsection “Local interneurons in the backward module modulate motor state transitions”.

We have also added new calcium imaging experiments of RIV (Figure 3A). RIV calcium activity remained quiescent during the type-I transition and rapidly rose immediately before the type-II transition. These results have also been added to the main text, see subsection “Feedforward coupling between the backward module and the turning module drives the omega turn”.

5) The inx-1, unc-7, unc-9 triple mutant data are hard to interpret because UNC-7 and UNC-9 are broadly expressed and previous literature shows that these mutants have substantial locomotion defects, thus there could be pleiotropic and additive effects from mutating several innexins. This should also be made clear in the main text, since at present, the authors mention that "several innexin proteins including INX-1, UNC-7 and UNC-9, are reported to express in AIB and RIV inter/motor neurons" but do not mention that especially UNC-7 and UNC-9 are expressed broadly in most other neurons.

In order to better explain the rationale of our experimental design, we have rearranged the content of this section. Please see subsection “Feedforward coupling between the backward module and the turning module drives the omega turn”. Briefly, we clarify a few points.

1) In Figure 3B-C, we tested the consequence of connectivity between AIB and RIV. We probe their functional connectivity by activating AIB using Chrimson and observing calcium changes in RIV. The prominent connections between AIB and RIV is gap junction (Figure 2A), and UNC-7, UNC-9 and INX-1 are all reported to be expressed in AIB and RIV. By using the triple mutant, instead of single mutant, the gap junction between these two neurons should be more severely impaired if not completely removed.

Although these innexins are expressed widely in the nervous system, the effect of the loss of gap junctions in other circuits is irrelevant to our analysis: we are testing the effect of direct activation of AIB on RIV activity. The effect of the loss of these innexins severely impairs the increase in RIV activity in response to AIB activation, suggesting that AIB connect to RIV through gap junctions.

We now added: “Several innexin, including INX-1, UNC-7 and UNC-9, have been reported to be expressed in AIB and RIV (Altun et al., 2009; Bhattacharya et al., 2019). […] RIV remained quiescent upon AIB stimulation (Figure 3C red and Figure 3—figure supplement 1D), indicating that gap junction coupling underlies AIB stimulation-mediated RIV calcium activity.”

We also apologize for not clarifying that these innexins are widely expressed. We have amended the text to reflect this notion.

Similarly, paragraph two of subsection “Feedforward coupling between the backward and turning modules drives omega turns” read that the inx-1 mutants still execute omega turns, leading the authors to conclude that multiple innexins are at play. However, it could also be that multiple neurons are at play, this possibility cannot be ruled out at this stage. The reasoning for performing the calcium imaging of RIV during AIB activation in the triple mutants is not clear. Was this experiment performed in the inx-1 single mutants, which is more specifically expressed in AIB? If so, these data should be shown.

2) Our logic for performing calcium imaging experiment in triple innexin mutants, instead of single mutant like the loss of INX-1 alone, is due to high possibility that multiple innexins function redundantly at the gap junction between AIB and RIV. In this case, inx-1 single mutant would only have a partial behavioral defect in turning variability and restoring INX-1 alone should restore the turning probability (Figure 3D).

However, we agree with the reviewer that these experiments did not exclude the possibility that multiple circuit pathways can trigger turning behaviors. We therefore have amended the text to reflect this notion.

“UNC-7 and UNC-9 are broadly expressed in the motor circuit, and unc-7 or unc-9 mutants exhibit uncoordinated movements that prohibit them from completing a motor sequence (Barnes and Hekimi, 1997; Brenner, 1974; Kawano et al., 2011; Starich et al., 1993; Xu et al., 2018. […] Because inx-1 mutants were still capable of generating omega turns, we propose that either multiple innexins between AIB and RIV, or parallel circuit pathways are at play.”

6) There is no consensus on what marks the end of an omega turn. Please provide the definition and justification for this study. Otherwise, Figure 3A and Figure 2—figure supplement 1B are difficult to interpret.

We have amended the definition of turn ends in Behavioral assays and analysis section in Materials and methods:

“The end of a turn was identified when a worm opened its coiled posture and began to move forward.”

7) One thing that might be nice would be if they could address the issue of stochasticity a bit more in the Discussion. Do the authors have any speculation why the behaviour is not more deterministic? And does their model give any insight into turn and reversal coupling in unstimulated animals undergoing spontaneous reversals?

Thank you for the suggestion. We think the internal noise, such as the fluctuation of synaptic currents, may make an important contribution to behavioral variability. We have added:

“Our biophysical model suggests that noises in a neural circuit (Equation 2) contributes to behavior variability. We speculate that stochasticity in neural dynamics and behaviors may allow animals to efficiently explore the action space (Dhawale et al., 2017; Duffy et al., 2019; Tumer and Brainard, 2007); learning, by which functional connectivity between motor modules is modified through synaptic plasticity, may optimize action selection and timing (Sutton and Barto, 2017).”

Regarding turn and reversal coupling in spontaneous movements, we speculate that fluctuation of internal brain dynamics could trigger feedforward excitation between motor modules. We have added:

“In C. elegans, feedforward excitation between the backward module and the turning module (Figure 7A) can reliably trigger an omega turn followed by forward movement through strong and persistent activation of local interneurons AIB (Figure 2D and Figure 2—figure supplement 1D). In other words, the action in a motor sequence can be selected through feedforward excitation, triggered by either external sensory stimulus or fluctuations of internal circuit dynamics.”

8) Language:

The type-I /type-II language makes the text hard to read. It would be much easier for readability if the two cases were using an abbreviation that connects to the behaviors, for example type-I could be called RF and type-II – RT. This way the reader doesn't have to remember a somewhat arbitrary assignment of I/II.

Thanks for the suggestion. In the main text, we have changed type-I transition to type-I (RF) transition, and type-II transition to type-II (RT) transition.

9) Introduction: “(…) but a deep connection between theories and experiments remains yet to be established”. What constitutes a “deep connection”? Text suggests the authors are claiming they are providing one, which we don't see based on how little the model is integrated in the main text.

We have integrated the model to the Results section.

10) Discussion: " Several mechanisms may explain the decay of the iGluSnFR sensor signal, one being a depletion of available vesicles for release at the presynaptic site, analogous to short-term synaptic depression". It would be relevant to name alternative mechanisms here.

We have revised this sentence.

11) Discussion: "(…) are thought to underlie several motor behaviors such as Zebra Finch singing" would benefit from more examples and citations.

We now added:

“Classic synaptic chain models, in which stereotyped motor sequences arise from feedforward excitation between different groups of neurons, are thought to underlie several motor behaviors such as Zebra Finch singing (Long et al., 2010). A feedforward synaptic chain may underlie the replay of spatiotemporal activity patterns in hippocampus during sleep (Louie and Wilson, 2001; Skaggs and McNaughton, 1996), and generate temporally precise firing patterns that correspond to different actions in the motor cortex of behaving monkeys (Shmiel et al., 2006). ”

12) Winner-takes all strategy:

While this aspect can be understood from the data, the winner-takes all strategy should be more explicitly connected to the data in the Results section and explained in the Discussion.

Thanks for the suggestion. In the Results section, we now added:

“Together, our data suggest that the feedforward inhibition (Figure 4) and feedback inhibition (Figure 6) between the backward module and the turning module implement a winner-take-all computation for action selection. The motor module with the highest level of activity stays active by suppressing the activities of other modules.”

In the Discussion section, we now added:

“Together, the feedforward coupling between the backward module and the turning module facilitates a defined sequential activity pattern, whereas the winner-take-all operation through mutual inhibition between the two modules avoids an action conflict.”

13) Materials and methods:

The extensive documentation of strains, primers, promoters is great, yet it is often unclear which method was used for each figure panel. The Materials and methods section could be improved by a finer substructure with more subsections within similar groupings of experiments, that were performed using different instruments (e.g. optogenetics).

Thanks. We have revised the Materials and methods section accordingly.

14) For multi-color imaging the Materials and methods section should explain how camera alignment was achieved.

Thanks. We have added details to the calcium imaging section:

“Green and red emission signals were captured by a 10 × objective (Nikon Plan Apo, WD = 4 mm; NA = 0.45, Japan) at 50 fps with an exposure time of 20 ms, separated by a dichroic mirror, relayed by an optical splitter (OptoSplit II, Cairn-Research, UK), and projected onto one-half of a sCMOS sensor (Andor Zyla 4.2, UK) simultaneously. Green and red channels were aligned and processed by custom-written MATLAB scripts (Xu T et al., 2018).”

15) Data availability:

We found the code accessible online. The link is included in the transparent reporting form but should also be repeated in the Materials and methods. A statement that custom MATLAB scripts were used is insufficient.

We have added the Data availability to the end of the Materials and methods section.

16) The order of neuronal activations involved in the action sequence (forward – reversal – post-reversal turn – forward) showing concomitant activity of AIB with reversal neurons followed by activation of RIV with turning neurons SMD and then RIB was shown already for immobilized worms in Kato et al., 2015. Moreover, ramping AIB activity during reversal has been shown before in Luo et al., 2014; Kato et al., 2015; Laurent et al., 2015, all for freely moving worms. The relationships of interneuron activities with reversal starts in freely moving worms (Figure 2—figure supplement 1B) were all shown already in Kato, 2015 and multiple other studies. It would be fair to credit this work and thereby highlighting better what is really new to this present study.

Thanks for pointing this out. We have revised and presented a more comprehensive review of earlier works at the beginning of the Results section. We added:

“Structural and functional studies of AIB (Gray et al., 2005; White, Southgate, Thomson and Brenner, 1986) indicate that they may play important roles in motor state transitions (Figure 2A). […] Third, AIB exhibite ramping calcium activity during reversals (Kato et al., 2015; Laurent et al., 2015; Luo et al., 2014), and finally, laser ablation of AIB significantly reduces the frequency of reversals during food search behavior (Gray et al., 2005).”

and

“How do AIB drive turning behaviors? Whole brain imaging in immobilized animals implicated that AIB and their electrically-coupled partners RIV (Figure 2A and Figure 3—figure supplement 2) exhibited sequentially activated patterns (Kato et al., 2015). We compared RIV activity patterns (Plim-4::GCaMP6) underlying different motor sequences during spontaneous behaviors.”

Associated Data

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

    Supplementary Materials

    Figure 1—source data 1. Source data for Figure 1 and Figure 1—figure supplement 1.
    Figure 2—source data 1. Source data for Figure 2 and Figure 2—figure supplement 1.
    elife-56942-fig2-data1.zip (1,000.3KB, zip)
    Figure 3—source data 1. Source data for Figure 3.
    Figure 4—source data 1. Source data for Figure 4 and Figure 4—figure supplements 12.
    Figure 5—source data 1. Source data for Figure 5 and Figure 5—figure supplement 1.
    Figure 6—source data 1. Source data for Figure 6.
    Supplementary file 1. Strains information.
    elife-56942-supp1.docx (23.1KB, docx)
    Supplementary file 2. Associated plasmids information.
    elife-56942-supp2.docx (14.4KB, docx)
    Supplementary file 3. Associated promoter and gene information.
    elife-56942-supp3.docx (15.9KB, docx)
    Supplementary file 4. Sample size and replicate number for all experiments.
    elife-56942-supp4.docx (19.7KB, docx)
    Transparent reporting form

    Data Availability Statement

    Raw data of calcium imaging experiments and all code used for modeling or figure generation are available for download from https://github.com/Wenlab/Worm-Motor-Sequence-Generation (Xin et al., 2020; copy archived at https://github.com/elifesciences-publications/Worm-Motor-Sequence-Generation). Source data files have been provided for main figures.

    All data generated or analysed during this study are included in the manuscript.


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES