Skip to main content
eLife logoLink to eLife
. 2020 Apr 22;9:e54183. doi: 10.7554/eLife.54183

Spatiotemporally precise optogenetic activation of sensory neurons in freely walking Drosophila

Brian D DeAngelis 1,, Jacob A Zavatone-Veth 2,†,, Aneysis D Gonzalez-Suarez 1, Damon A Clark 1,2,3,4,
Editors: Ronald L Calabrese5, Ronald L Calabrese6
PMCID: PMC7198233  PMID: 32319425

Abstract

Previous work has characterized how walking Drosophila coordinate the movements of individual limbs (DeAngelis et al., 2019). To understand the circuit basis of this coordination, one must characterize how sensory feedback from each limb affects walking behavior. However, it has remained difficult to manipulate neural activity in individual limbs of freely moving animals. Here, we demonstrate a simple method for optogenetic stimulation with body side-, body segment-, and limb-specificity that does not require real-time tracking. Instead, we activate at random, precise locations in time and space and use post hoc analysis to determine behavioral responses to specific activations. Using this method, we have characterized limb coordination and walking behavior in response to transient activation of mechanosensitive bristle neurons and sweet-sensing chemoreceptor neurons. Our findings reveal that activating these neurons has opposite effects on turning, and that activations in different limbs and body regions produce distinct behaviors.

Research organism: D. melanogaster

Introduction

Recent advances in computer vision have provided increasingly detailed descriptions of Drosophila behavior (Bidaye et al., 2019; DeAngelis et al., 2019; Günel et al., 2019; Mathis et al., 2018; Pereira et al., 2019). To connect these characterizations of motor output to neural circuitry, it is necessary to simultaneously manipulate neural activity and observe behavior (Krakauer et al., 2017). Various studies have manipulated neural activity and circuitry and measured locomotor phenotypes (Berman et al., 2014; Bidaye et al., 2014; Bidaye et al., 2019; Cande et al., 2018; DeAngelis et al., 2019; Hampel et al., 2015; Hampel et al., 2017; Martin et al., 2015; Mathis et al., 2018; Mendes et al., 2013; Pereira et al., 2019; Seeds et al., 2014; Strauss and Heisenberg, 1990; Zhang et al., 2020), but these studies have focused primarily on simultaneously manipulating the activity of all neurons in a class. However, behaviors are guided by patterns of neural activity that are precise in both time and space. In particular, many behaviors are asymmetric in nature, such as the anti-phasic coordination of limbs during walking (Bidaye et al., 2014; Bidaye et al., 2019; DeAngelis et al., 2019; Mathis et al., 2018; Mendes et al., 2013; Pereira et al., 2019; Strauss and Heisenberg, 1990), the asymmetrical postures associated with turning (DeAngelis et al., 2019; Martin et al., 2015; Strauss and Heisenberg, 1990), and grooming (Berman et al., 2014; Hampel et al., 2015; Seeds et al., 2014; Zhang et al., 2020). It has been difficult to generate neural manipulations that target specific neurons within a genetically identified class in freely moving insects. Here, we present a simple method for spatiotemporally precise activation of neurons in intact, freely moving animals. Using this method, we characterize the behavioral responses of walking adult fruit flies to spatiotemporally restricted activation of peripheral mechanosensory and chemosensory neurons. Our results reveal the asymmetries and region-specificity of behavioral programs recruited by these two types of sensory neurons.

Light sensitive channels allow neural activity to be manipulated with millisecond temporal resolution (Boyden et al., 2005). In Drosophila, large libraries of cell-specific drivers allow researchers to target specific, genetically-identifiable classes of neurons (Dionne et al., 2018; Gohl et al., 2011; Jenett et al., 2012). However, to manipulate a circuit in a spatiotemporally precise manner, it is necessary either to express a genetic tool in an anatomically precise way or to deliver a spatially precise stimulus to a broader expression pattern. Early studies in Drosophila used gynandromorphs to create bilaterally differentiated flies (Hotta and Benzer, 1970; Hotta and Benzer, 1972). Alternatively, sparse, stochastic expression patterns can be generated across a population, which then can be screened to determine the expression patterns of individual specimens (Bidaye et al., 2019; Lee and Luo, 1999; Ribeiro et al., 2018; Wu et al., 2016; Xu and Rubin, 1993). Both approaches rely on time-intensive techniques. Recently, sophisticated optical techniques have been developed for spatially precise optogenetic or thermogenetic manipulation in Drosophila and in C. elegans. These methods required real-time tracking and targeting of light paths (Bath et al., 2014; Leifer et al., 2011; Wu et al., 2014), which can be both computationally and mechanically challenging.

Here, we describe a simple method for spatiotemporally precise manipulation of neurons in freely walking adult Drosophila. Using a digital light projector, we project short pulses of random spatial patterns of light within an arena, while simultaneously recording the behavior of freely walking flies. Post hoc, we localize the projected stimuli to body and limb positions. This method can manipulate neural activity with body-side-, body-segment-, and limb-specificity without computationally intensive real-time tracking. Using this technique, we activated two distinct classes of superficial sensory neurons: bristle mechanoreceptor neurons (Tuthill and Wilson, 2016a) and sweet-sensing neurons expressing the Gr5a receptor (Dahanukar et al., 2007). We reasoned that, since both neuron classes are used as sensors during navigation and food-seeking, activating either of them would likely alter walking patterns. We measured the behavioral responses of walking Drosophila to spatially localized impulses of activity in these two cell types. These experiments revealed distinct, body region-specific and limb-specific maps of evoked behavior, which show how patterned sensory inputs influence complex coordination tasks. In combination with sophisticated tools for markerless tracking, this approach can be applied to show how sensory inputs are integrated in time and space to control walking coordination and navigation.

Results

Post hoc matching permits localized stimulation without real-time tracking and targeting

To determine how anatomically restricted neural activations influence locomotor behavior, we developed a novel method for spatiotemporally precise optogenetic stimulation of freely walking flies. We extended our assay for measuring Drosophila locomotor behavior (DeAngelis et al., 2019) by mounting a projector below the walking substrate (Figure 1A, see Materials and methods). Using this setup, short pulses of spatially patterned light were projected onto the arena from below. Importantly, the spatial pattern, duration, and wavelength of the stimulus can be adjusted in the software used to control the projector (Brainard, 1997; Kleiner et al., 2007; Pelli, 1997). Relying on the stereotyped size of the fly’s body and previously-developed tracking algorithms (DeAngelis et al., 2019), we determined post hoc when and where optogenetic stimulation had occurred during an experiment (Figure 1B–C, see Materials and methods). In our analysis, we excluded all cases in which multiple limbs, or a limb and the body, were stimulated simultaneously. We grouped activations based on whether they hit the head, thorax, abdomen, forelimb, midlimb, or hindlimb of the fly (Figure 1C, see Materials and methods). Because baseline forward walking velocity varies over time and between flies, we analyzed fold-changes from the pre-stimulus forward speed (Creamer et al., 2018; DeAngelis et al., 2019). We validated this method by showing that, in flies that do not express optogenetic constructs, the stimulus alone does not significantly influence locomotor behavior. Overall, this approach is advantageous because it allows for non-invasive body side-, body segment-, or limb-specific perturbations without requiring computationally-intensive real-time tracking and targeting (Bath et al., 2014; Leifer et al., 2011; Wu et al., 2014).

Figure 1. A simple method for spatiotemporally precise optogenetic manipulation in freely walking Drosophila.

(A) Schematic of experimental setup for spatiotemporally precise optogenetic activation (see Materials and methods for details). Flies walk in a circular arena while illuminated from above and tracked from below using a high-speed camera. Localized optogenetic activations are generated using a digital light projector mounted below the arena. (B) Sample video frame showing optogenetic activation localized to a single limb. The spatially patterned stimulus is shown as a red overlay on the image, and the detected activation is circled in yellow. (C) Diagram of grouping of activations, showing the fly from above. Activations on the left and right sides of the body are symmetrized such that all appear on the right. Activations on the body are grouped by whether they hit the head (magenta), thorax (green), or abdomen (yellow) of the fly, while activations on the limbs are grouped by whether they hit the forelimb (teal), midlimb (orange), or hindlimb (purple). Black arrows indicate the three components of body movement: forward walking velocity (v), lateral walking velocity (v), and heading angular velocity (vr). (D) Schematic depiction of the distribution of bristle neurons across the limbs and ventral surface of the fly (see Figure 1—figure supplement 1; Tuthill and Wilson, 2016a). (E) Schematic depiction of the distribution of Gr5a-expressing (sweet-sensing) neurons across the limbs and ventral surface of the fly (Dahanukar et al., 2007; Kwon et al., 2014). (F) An example of turning evoked by optogenetic stimulation of forelimb bristles in freely walking flies. The top left panel shows the fly’s forward walking speed as a function of time, the bottom left panel its yaw velocity, the top right panel the positions of its limbs in the direction perpendicular to its body axis, and the bottom right panel the positions of its limbs in the direction parallel to its body axis. In the right panels, C1, C2, and C3 indicate the fore-, mid-, and hind-limbs on the side of the body contralateral to the hit, while I1, I2, and I3 indicate the limbs on the ipsilateral side. See also Figure 1—figure supplement 1.

Figure 1.

Figure 1—figure supplement 1. Expression patterns of the R38B08-Gal4 driver in bristle neurons.

Figure 1—figure supplement 1.

(A) Diagram of the ventral surfaces of the fly’s body and limbs. (B) Anatomical image of cuticle on ventral side of fly head, paired with confocal image showing cell bodies (see Materials and methods for details). (C) As in (B), but for a midlimb. (D) As in (B), but for the ventral cuticle on the thorax. (E) As in (B), but for the ventral cuticle on the abdomen.

Mapping behavioral responses to impulse activations of peripheral sensory neurons

A fly’s sense of touch is primarily mediated by bristles that cover the surface of its limbs and body (Figure 1D, see Materials and methods) (Burrows, 1996; Tuthill and Wilson, 2016b; Tuthill and Wilson, 2016a). These bristles are innervated by neurons that are genetically targetable across many parts of the fly’s body (Figure 1—figure supplement 1). Mechanical perturbations of these bristles can generate region-specific behavioral responses (Ramdya et al., 2015). Whereas the activation of bristle neurons is thought to be an aversive stimulus (Ramdya et al., 2015; Tuthill and Wilson, 2016a), activation of sweet-sensing neurons that express the Gr5a chemoreceptor is thought to be an appetitive stimulus (Dahanukar et al., 2007). Unlike bristle neurons, which are present across the entirety of the cuticle, neurons that express the Gr5a receptor are found primarily along the labellum and on each of the fly’s six limbs (Figure 1E; Kwon et al., 2014). Given that activations of these two peripheral neuron types are thought to have opposite valances, we hypothesized that localized perturbations could evoke distinct, region-specific behavioral responses in freely-walking flies.

We applied our stimulation method to characterize the behavioral responses of freely walking flies to impulse activations of these two classes of peripheral sensory neurons. To do this, we drove the optogenetic activator CsChrimson (Klapoetke et al., 2014) in these neuron classes (see Materials and methods, Table 1) and monitored their behavior during stimulation. When these flies were briefly stimulated with random patterns of red light (see Materials and methods, Table 2), they displayed rich kinematic responses (Figure 1F), both slowing and turning. Since our method allows us to locally activate neurons expressing these drivers on any portion of the body, we first analyzed these responses by building somatic maps of responses to stimulation on the ventral surface of the fly. In control flies, stimulation did not evoke significant responses (Figure 2—figure supplement 1). Behavioral responses to bristle neuron activation partitioned the fly’s body into four distinct quadrants (Figure 2). Flies slowed when bristles were activated on the anterior half of the fly’s body, including the head and thorax (Figure 2A,D). In contrast, they sped up in response to activations of bristle neurons on the abdomen. When neurons on one side of the body were activated, flies turned away from the side of the hit and walked laterally away from the side of the hit (Figure 2D–F,H). These movements are consistent with escape behaviors to move away from an aversive stimulus. Unlike bristle activation, stimulation of flies expressing CsChrimson in Gr5a-neurons evoked slowing that was qualitatively similar for hits on all regions of the body (Figure 2). When flies were hit on one side of the body, they did not turn strongly or walk laterally (Figure 2C,E,G,I). They slowed in response to hits to the head, but slowed less in response to hits to the thorax and abdomen. These responses are consistent with the Gr5a expression pattern, which is strong in neurons in the head. The responses to hits in the thorax and abdomen may reflect activation of neurites in the ventral nerve cord or may reflect scattered light activating taste neurons elsewhere on the body.

Table 1. Experimental strains.

Description Genotype Use Figures
CsChrimson Control +; +; UAS-CsChrimson Control Figure 2—figure supplements 1, 2, Figure 3—figure supplements 1, 2, 3, Figure 4—figure supplement 2
Bristle > CsChrimson +; +; R38B08-Gal4/UAS-CsChrimson Bristle activation Figures 2, 3, 4
Gr5a > CsChrimson +; Gr5a-Gal4/ +; UAS-GFP/UAS-CsChrimson Gr5a activation Figures 2, 3, 4

Table 2. Experimental groups.

Description Number of
recording sessions
Total fly count Stimulus duration Interleave duration
CsChrimson Control 3 45 30 ms 0.5 s
Bristle > CsChrimson 5 75 10 ms 0.5 s
Gr5a > CsChrimson 5 67 30 ms 1 s

Figure 2. Mapping the responses of freely walking flies to optogenetic stimulation on the body.

(A) Spatial maps of forward velocity responses to localized optogenetic stimulation of flies expressing bristle (left) and Gr5a-neuron (right) drivers at different locations on their bodies. Responses are averaged over the 100 ms following the onset of activation. Positive heading angular velocities and lateral velocities are rightward in this view. N = 785 bristle activations, and N = 568 sweet-sensor activations. (B) As in (A), but for heading angular velocity. (C) As in (A), but for lateral velocity. (D) Fold change in forward velocity as a function of time (left) and averaged over time (right) in response to optogenetic stimulation of bristle neurons on the head, thorax, or abdomen of the fly. At left, the grey patch indicates the window over which responses are averaged to generate the right panel, and error patches show 95% confidence intervals of the mean obtained from bootstrap distributions over activations. At right, black bars show 99% confidence intervals, estimated through bootstrapping, and significance stars show p<0.01 by a bootstrap permutation test against the null hypothesis that average forward velocity after activation is indistinguishable from that before activation. N = 158 head activations, 306 thorax activations, and 321 abdomen activations throughout. (E) As in (D), but for stimulation of flies expressing CsChrimson in Gr5a-neurons. N = 142 head activations, 179 thorax activations, and 247 abdomen activations throughout. (F) As in (D), but for the heading angular velocity of the fly. Positive heading angular velocities are directed towards the side of activation. (G) As in (F), but for stimulation of flies expressing CsChrimson in Gr5a-neurons. (H) As in (D), but for the lateral velocity of the fly. Positive lateral velocities are directed towards the side of activation. (I) As in (H), but for stimulation of flies expressing CsChrimson in Gr5a-neurons. See also Figure 2—figure supplements 12.

Figure 2.

Figure 2—figure supplement 1. Control flies do not show a significant behavioral response to the optogenetic stimulus.

Figure 2—figure supplement 1.

(A) Spatial maps of forward velocity (left), heading angular velocity (center), and lateral velocity (right) responses to localized optogenetic stimulation at different locations on the bodies of control flies (see Materials and methods). Responses are averaged over the 100 ms following the onset of activation. Positive heading angular velocities and lateral velocities are rightward in this view. N = 634 activations on the fly’s body. (B) Fold change in forward velocity as a function of time (left) and averaged over time (right) in response to optogenetic stimulation on the head, thorax, or abdomen of control flies (see Materials and methods). At left, the grey patch indicates the window over which responses are averaged to generate the right panel, and error patches show 95% confidence intervals of the mean obtained from bootstrap distributions over activations. At right, black bars show 99% confidence intervals, estimated through bootstrapping, and significance stars show p<0.01 by a bootstrap permutation test against the null hypothesis that average forward velocity after activation is indistinguishable from that before activation. N = 130 head activations, 209 thorax activations, and 295 abdomen activations throughout. The small response to head activation may be a weak startle response from directly hitting the fly’s eyes with red light. (C) As in (B), but for the heading angular velocity of the fly. Positive heading angular velocities are directed towards the side of activation. (D) As in (B), but for the lateral velocity of the fly. Positive lateral velocities are directed towards the side of activation.
Figure 2—figure supplement 2. Localized optogenetic stimulation on the body of the fly alters the variability in its walking kinematics.

Figure 2—figure supplement 2.

(A) Timeseries of mean absolute deviation of the forward velocity of bristle neuron (left), sweet-sensing neuron (center), or control (right) flies after stimulation on their head, thorax, or abdomen. Error patches show 95% confidence intervals of the mean absolute deviation obtained from bootstrap distributions over activations. Sample sizes are as in Figure 2 and Figure 2—figure supplement 1. (B) As in (A), but for the heading angular velocity of the fly. (C) As in (A), but for the lateral velocity of the fly.

Activating bristle neurons generally increased the variability of walking kinematics across the population of stimulated flies (Figure 3—figure supplement 2). Interestingly, even though stimulating sweet-sensing neurons in the head caused slowing, just like bristle activation, stimulating these neurons on the fly’s head evoked slight decreases in variability, in contrast to the bristle neuron activations (Figure 3—figure supplement 2). This difference may well arise from the stronger slowing evoked by the sweet-sensitive neurons, which limits the possible degree of variability.

Activation of bristle and sweet-sensing neurons on the fly’s limbs evoke opposite responses

Having shown that localized optogenetic stimulation evoked body-region-specific responses, we next asked whether responses to stimulation on the fly’s different limbs were similarly differentiated. We therefore quantified slowing, turning, and lateral walking responses to impulse activations of each of the limbs. As observed for stimulation on the body, stimulation on the legs of control flies did not evoke significant responses (Figure 3—figure supplement 1). Stimulation of both bristle and sweet-sensing neurons on any of the limbs of the fly produced significant slowing (Figure 3A–B). Strikingly, while activation of bristle neurons on any of the fly’s limbs evoked turning and sidestepping away from the activation site (Figure 3C and E, Video 1), activation of sweet-sensing neurons on the forelimbs or midlimbs evoked turning and sidestepping towards the activation site (Figure 3D and F). Activating bristle neurons consistently increased the response variability, as was observed for stimulation on the body (Figure 3—figure supplement 2). In contrast, depending on the stimulated limb, activating sweet-sensing neurons evoked either increases or decreases in kinematic variability (Figure 3—figure supplement 2), consistent with potential floor effects due to slowing that limit variability. The opposing responses to bristle and sweet-sensing neuron activations in the limbs are consistent with the hypothesized opposing valances of activity in these sensory neurons.

Figure 3. Localized activation of bristle and sweet-sensing neurons evokes opposing limb-specific responses.

(A) Fold change in forward velocity as a function of time (left) and averaged over time (right) in response to optogenetic stimulation of bristle neurons on the forelimb, midlimb, or hindlimb of the fly. At left, the grey patch indicates the window over which responses are averaged to generate the right panel, and error patches show 95% confidence intervals of the mean obtained from bootstrap distributions over activations. At right, black bars show 99% confidence intervals, estimated through bootstrapping, and significance stars show p<0.01 by a bootstrap permutation test against the null hypothesis that average forward velocity after activation is indistinguishable from that before activation. N = 285 forelimb activations, 329 midlimb activations, and 324 hindlimb activations throughout. (B) As in (A), but for stimulation of sweet-sensing neurons. N = 307 forelimb activations, 508 midlimb activations, and 379 hindlimb activations throughout. (C) As in (A), but for the heading angular velocity of the fly. Positive heading angular velocities are directed towards the side of activation. (D) As in (C), but for stimulation of sweet-sensing neurons. (E) As in (A), but for the lateral velocity of the fly. Positive lateral velocities are directed towards the side of activation. (F) As in (E), but for stimulation of sweet-sensing neurons. See also Figure 3—figure supplements 13 and Video 1.

Figure 3.

Figure 3—figure supplement 1. Control flies do not show a significant behavioral response to optogenetic stimulation on their limbs.

Figure 3—figure supplement 1.

(A) Fold change in forward velocity as a function of time (left) and averaged over time (right) in response to optogenetic stimulation on the forelimb, midlimb, or hindlimb of control flies (see Materials and methods). At left, the grey patch indicates the window over which responses are averaged to generate the right panel, and error patches show 95% confidence intervals of the mean obtained from bootstrap distributions over activations. At right, black bars show 99% confidence intervals, estimated through bootstrapping, and significance stars show p<0.01 by a bootstrap permutation test against the null hypothesis that average forward velocity after activation is indistinguishable from that before activation. N = 389 forelimb activations, 462 midlimb activations, and 446 hindlimb activations throughout. (B) As in (A), but for the heading angular velocity of the fly. Positive heading angular velocities are directed towards the side of activation. (C) As in (A), but for the lateral velocity of the fly. Positive lateral velocities are directed towards the side of activation.
Figure 3—figure supplement 2. Localized optogenetic stimulation on the limbs of the fly alters the variability in its walking kinematics.

Figure 3—figure supplement 2.

(A) Timeseries of mean absolute deviation of the forward velocity of bristle neuron (left), sweet-sensing neuron (center), or control (right) flies after stimulation on their forelimb, midlimb, or hindlimb. Error patches show 95% confidence intervals of the mean absolute deviation obtained from bootstrap distributions over activations. Sample sizes are as in Figure 3 and Figure 3—figure supplement 1. (B) As in (A), but for the heading angular velocity of the fly. (C) As in (A), but for the lateral velocity of the fly.
Figure 3—figure supplement 3. Responses conditioned on whether the stimulated limb was in swing or stance phase.

Figure 3—figure supplement 3.

(A) Distributions of instantaneous phase at the onset of stimulation of forelimbs, midlimbs, or hindlimbs in bristle neuron (left), sweet-sensing neuron (center), or control (right) flies. The shaded grey area indicates the interval of instantaneous phases corresponding to stance phase. Sample sizes are as in Figure 3 and Figure 3—figure supplement 1. (B) Mean fold change in forward velocity after optogenetic stimulation of the forelimbs (green), midlimbs (orange), or hindlimbs (purple), conditioned on whether the stimulated limb was in swing or stance phase at the onset of stimulation. Black bars show 99% confidence intervals, estimated through bootstrapping. For bristle stimulation, N = 90 forelimb hits during swing, N = 195 forelimb hits during stance, N = 94 midlimb hits during swing, N = 235 midlimb hits during stance, N = 109 hindlimb hits during swing, and N = 215 hindlimb hits during stance. For forelimb bristle stimulation, N = 90 and 195 hits during swing and stance, respectively; for midlimb stimulation N = 94 and 235; and for hindlimb stimulation N = 109 and 215. For forelimb sweet-sensor stimulation, N = 109 and 198 hits during swing and stance, respectively; for midlimb stimulation N = 165 and 343; and for hindlimb stimulation N = 130 and 249. For control forelimb stimulation, N = 128 and 261 hits during swing and stance, respectively; for midlimb stimulation N = 157 and 305; and for hindlimb stimulation N = 159 and 287. (C) As in (B), but for the heading angular velocity. (D) As in (B), but for the lateral velocity.

Video 1. Movie showing example responses to optogenetic stimulation of bristle neurons on each of the fly’s limbs.

Download video file (184KB, mp4)

Red circles indicate the location of the activation in space and time.

Because the limbs move periodically, one might expect that behavioral responses to activity in these neurons might depend on limb phase. To test this hypothesis, we separately analyzed hits that occurred during each limb’s swing and stance phases (Figure 3—figure supplement 3). The activation construct CsChrimson remains active for ~20 ms in vitro (Klapoetke et al., 2014). Since steps take ~100 ms or longer, our methodology can in principle generate phase-specific activations, though the activation kinetics may vary across neuron types and expression levels in vivo. For both bristle and sweet-sensing neurons, average turning responses did not depend strongly on whether the limb was in stance or in swing during activation. Stimulating limbs during stance phase tended to evoke a greater degree of slowing than stimulating during swing phase, particularly for activation of sweet-sensing neurons on the midlimbs. This effect was also present to some degree in control flies (Figure 3—figure supplement 3), which likely reflects the fact that the fly’s walking speed varies with phase (DeAngelis et al., 2019). Some of the observed discrepancy could therefore be attributable to sampling bias (Figure 3—figure supplement 3, see Materials and methods). Because bristle and sweet neuron activations both evoke substantial overall slowing, it is difficult to rigorously compare phase-dependent differences in responses to stimulation to the underlying phase dependence of the walking behavior and strong slowing. However, our data suggest that bristle neuron activation evokes similar behavioral responses irrespective of whether the limb is stimulated during swing or stance, while sweet neuron activation may evoke stronger slowing responses when stimulation occurs while the limb is in contact with the substrate.

Localized activations evoke changes in walking geometry

Last, we sought to quantify how activating sensory neurons on the fly’s limbs changed their limb coordination. Limb coordination can be complex (DeAngelis et al., 2019), so a simple metric is the mean distance between contralateral limbs. During smooth walking, the mean distances between contralateral limbs are relatively constant when averaged over phase (DeAngelis et al., 2019; Mendes et al., 2013; Strauss and Heisenberg, 1990). However, during spontaneous turning, the fly’s forelimbs tend to move further apart, while the mid and hindlimb remain at roughly the same distance (Figure 4—figure supplement 1), consistent with forelimbs ‘reaching’ away from the body axis during turns (DeAngelis et al., 2019). The distances between limbs are therefore a proxy for limb coordination, which can be complex during disrupted walking (DeAngelis et al., 2019). Moreover, limb-specific stance widening has been measured in stationary locusts when sensory bristles are mechanically stimulated (Burrows, 1996; Laurent, 1986; Siegler and Burrows, 1986). We therefore quantified changes in walking geometry by the separation between contralateral limbs after stimulation.

We did not observe any effects on this coordination metric in control flies (Figure 4—figure supplement 2). Activating bristle neurons on the fly’s forelimbs evoked a significant increase in the separation between its forelimbs, and a significant, though smaller, increase in the separation between the hindlimbs (Figure 4A). In contrast, stimulation of sweet-sensing neurons on the fly’s forelimbs evoked decreases in the separation of all contralateral limb pairs (Figure 4B). Both bristle and sweet-sensor activation on the fly’s midlimbs or hindlimbs evoked increases in the separation between contralateral forelimbs (Figure 4C–F). However, sweet-sensor stimulation evoked slight decreases in midlimb separation, which were not observed after bristle stimulation. (Figure 4C–F). In many of these cases, the changes in limb separation are not segment specific, suggesting more complex interactions among limbs than reported for stationary locusts (Burrows, 1996; Laurent, 1986; Siegler and Burrows, 1986). The fact that the separation between contralateral forelimbs also increases during spontaneous turning (Figure 4—figure supplement 1), suggests that some of these changes may be linked to the observed stimulus-evoked turning. Interestingly, only the forelimbs show strong modulation during spontaneous turning, while impulse activations of sensory neurons cause modulations in mid- and hindlimbs as well. Thus, these impulses likely evoked atypical coordination patterns.

Figure 4. Localized optogenetic stimulation evokes changes in walking geometry.

(A) Timeseries of change in Euclidean distance between contralateral limbs before and after activation of bristle neurons on the forelimb. Error patches show 95% confidence intervals of the mean, estimated through bootstrapping (N = 285 activations). (B) As in (A), but for activation of sweet-sensing neurons (N = 307 activations). (C) As in (A), but for activations on the fly’s midlimb (N = 329 activations). (D) As in (C), but for activation of sweet-sensing neurons (N = 508 activations). (E) As in (A), but for activations on the fly’s hindlimb (N = 324 activations). (F) As in (E), but for activation of sweet-sensing neurons (N = 379 activations). See also Figure 4—figure supplements 12.

Figure 4.

Figure 4—figure supplement 1. Limb separation changes during spontaneous turning.

Figure 4—figure supplement 1.

Fractional change in separation between contralateral limb pairs as a function of time relative to a spontaneous turn (with peak heading angular velocity at time zero). Forelimb separation is shown in blue, midlimb separation in red, and hindlimb separation in green. Error patches show 95% confidence intervals of the mean obtained from bootstrap distributions over identified turns. N = 11,852 spontaneous turns; data from DeAngelis et al. (2019).
Figure 4—figure supplement 2. Control flies do not show significant changes in the separation of contralateral limbs.

Figure 4—figure supplement 2.

(A) Timeseries of change in Euclidean distance between contralateral limbs before and after stimulation of control flies on their forelimbs. Error patches show 95% confidence intervals of the mean, estimated through bootstrapping (N = 389 activations). (B) As in (A), but for activations on the fly’s midlimb (N = 462 activations). (C) As in (A), but for activations on the fly’s hindlimb (N = 446 activations).

Discussion

In this study, we present a novel method for spatiotemporally localized optogenetic stimulation in freely moving animals (Figure 1). Using this method, we investigated the behavioral response of walking Drosophila to spatially restricted activation of bristle mechanoreceptor neurons and Gr5a-expressing taste neurons. Activating bristle neurons caused the fly to turn away from the site of activation, while activation of Gr5a neurons evoked turning towards the site of activation (Figures 2 and 3). Stimulation of both classes of neurons altered the walking geometry (Figure 4). The organization of the observed region- and limb-specific responses are consistent with the hypothesized navigational valences of these peripheral sensory neurons. These results show how flies use a suite of sensory inputs to make moment-to-moment decisions about heading and walking speed.

Optogenetic manipulations disassociate neural and mechanical impulses

Using optogenetic methods for neural perturbations has several advantages over alternatives. First, though one can mechanically perturb a freely moving insect (Jindrich and Full, 2002; Ristroph et al., 2010), doing so necessarily imparts a mechanical impulse to the animal, confounding attempts to isolate neuronal effects. Similarly, sweet-sensing neurons may be activated by presenting a sugar droplet (Shiraiwa and Carlson, 2007), but doing so activates several classes of chemosensory and mechanosensory neurons. Second, previous studies have stimulated populations of neurons using implanted electrodes, and applied post hoc matching to identify the stimulated neurons (Martin et al., 2015). However, such preparations require invasive surgical procedures and may non-specifically stimulate unintended neuron classes. In contrast to these approaches, localized optogenetic stimulation is noninvasive, can be highly neuron-class-specific, and is easily applied to many locomotory modalities.

Limitations of this method

This method has several limitations. First, because activations are identified post hoc, generating sequenced patterns of activity would require clever stimulus design. Second, though this method elicits strong behavioral responses with low-intensity light in peripheral structures (the limbs), scattering and absorption likely reduce the effectiveness of this technique for precisely activating deeper structures of the nervous system. We see evidence that such scattering may also reduce the specificity of this method, for instance in the mild responses to stimulation on the abdomen in flies expressing CsChrimson in Gr5a-neurons (Figure 2E). Third, though we activate using random spatial patterns, there are biases in the phase of activation because limbs spend more time in stance than in swing on average, and because limbs can intercept an activation patch as they swing forward. Despite these limitations, as the range of neuron classes accessible with genetic tools in Drosophila expands (Cande et al., 2018; Luo et al., 2018; Mamiya et al., 2018; Namiki et al., 2018), the ability to perform spatiotemporally precise optogenetic stimulation is particularly useful. Locomotor behaviors in Drosophila represent an opportunity to combine high-throughput, detailed behavioral characterization with genetic tools to dissect the circuit bases for distinct motor programs.

Impulse responses in behavior

Beyond the experimental limitations enumerated above, it is important to highlight a fundamental limitation of optogenetic manipulations. While optogenetic perturbations allow us to manipulate neural activity with millisecond resolution, the method presented, like many optogenetic manipulations, focuses on impulse perturbations (Cande et al., 2018; DeAngelis et al., 2019; Gepner et al., 2015; Hernandez-Nunez et al., 2015). While understanding impulse responses is important, such manipulations do not generally recreate the spatiotemporal patterns of activity present during ethologically relevant behaviors. Generating activation patterns that mimic naturalistic activity in neural circuits remains difficult for several reasons. First, fully characterizing the patterned activity associated with naturalistic behaviors requires extensive neurophysiological experiments. Second, even with a complete description of relevant neural activity, generating naturalistic patterns of activity across a heterogenous population of neurons would require significantly more sophisticated techniques than currently possible in a non-invasive preparation. Thus, the transient activations generated with this and other optogenetic methods are unlikely to mimic the naturalistic activity of targeted neurons. Given this limitation, caution should be taken when relating observed phenotypes to naturalistic behaviors. Nonetheless, it is also clear that behavioral impulse responses to neural activation can shed significant light on the function of neural circuits (Bidaye et al., 2014; Cande et al., 2018; DeAngelis et al., 2019; Gepner et al., 2015; Hernandez-Nunez et al., 2015; Martin et al., 2015; Robie et al., 2017).

Limb- and body-segment-specific mechanosensory modulation of behavior

In insects, mechanosensory inputs are involved in a wide range of behaviors including courtship, interactions with other insects, feeding, grooming, and locomotion (Burg et al., 1993; Ejima and Griffith, 2008; Ramdya et al., 2015; Zhang et al., 2020; Zhou et al., 2019). Previous work showed that tactile interactions facilitate group avoidance of aversive odor stimuli through stereotyped locomotor responses to distal limb touch (Ramdya et al., 2015). In this manuscript, we expanded on this understanding. We mapped behavioral responses to bristle neuron activation on the body of the fly (Figure 2). This map revealed both stereotypy in locomotor responses as well as sharp anatomical boundaries between accelerations and decelerations, as well as left and right turns. The spatial organization of these responses is consistent with bristle activation being an aversive stimulus, since in each of its four body quadrants, the fly directed its movement such that it increased the distance between the locus of activation and its center of mass. Similarly, when bristle neurons were activated in the limbs, flies slowed, turned away from the side of activation, and walked laterally away from the side of activation, all consistent with stimulus avoidance (Figure 3). Interestingly, the phase of the activation of the limb (stance vs. swing) had little apparent effect on the evoked behavior (Figure 3—figure supplement 3). Somatotopic mapping provides a powerful tool for investigating the neural implementation of sensory feedback during locomotion.

Limb-specific chemosensory modulation of behavior

A striking feature of insect anatomy is the distribution of chemosensory receptors across the cuticle surface, including the limbs (Kwon et al., 2014). In Drosophila, 68 Gustatory Receptors (Grs) have been identified, with 28 Gr genes expressed in the limbs (Kwon et al., 2014). The projection patterns of all Gr-expressing neurons have been characterized in both the brain and VNC of the fly (Kwon et al., 2014). Among the Gr-expressing neurons in the legs, only those that express Gr5a both enervate all six leg neuropils in the VNC and do not send projections anteriorly towards the brain (Dahanukar et al., 2007; Kwon et al., 2014).

Our mapping of behavioral responses to activations of Gr5a neurons within the limbs revealed distinct, limb-specific phenotypes (Figures 3 and 4). The observed slowing in response to activation of Gr5a neurons is consistent with an appetitive stimulus, since slowing increases the time spent in contact with the location of activation and may be a preparatory behavior before tasting the surface. Slowing responses may also reflect antagonism between walking and feeding behaviors (Mann et al., 2013). It is interesting that activating Gr5a-expressing neurons in the head can elicit behavioral responses even when the fly has no evidence proboscis taste neurons are in contact with a substrate (Figure 2). This contrasts with the observation that flies appear to slow more when sweet-sensing neurons are activated when in contact with the substrate than while swinging (Figure 3—figure supplement 3). This result suggests the possibility of phase-specific gating of the influence of sensory stimuli, which seems ethologically sensible. Furthermore, the fact that activating these neurons evokes turning towards the stimulus indicates that the fly’s food-seeking behavioral program depends on the limb activated, not merely the presence of a sweet taste. One intriguing possibility, given the lack of directly ascending projections from sweet-sensing neurons to the brain, is that these limb responses are mediated entirely by VNC circuitry. This would be consistent with the hypothesis that many complex insect behaviors are implemented in local sensorimotor loops (Braitenberg, 1986).

A general method for spatiotemporally precise optogenetic stimulation in freely moving animals

The ability to activate neurons with high spatiotemporal precision has applications across neuroscience. Advances in automated behavioral tracking mean that this method could be used to compare responses between regions smaller than entire limbs (Günel et al., 2019; Mathis et al., 2018; Pereira et al., 2019). The simplicity of this method means that it could be applied broadly in small model organisms where optogenetic tools for non-invasive circuit manipulation are available. It is immediately applicable to Drosophila larvae, where non-localized stochastic optogenetic perturbations have been used to characterize navigational dynamics (Gepner et al., 2015; Hernandez-Nunez et al., 2015). It could also be used to study recovery from destabilizing neural perturbations in flying Drosophila (Ristroph et al., 2010), where real-time tracking can be difficult. In C. elegans, simultaneous optogenetic activation and measurement of whole-brain activity during behavior is an active area of research (Leifer et al., 2011; Nguyen et al., 2015). In larval zebrafish, asymmetric behaviors are studied primarily in tethered experimental preparations (Naumann et al., 2016; Portugues et al., 2013), but this method could provide a simple way to spatially target neural activation in freely swimming larvae. Simple methods for non-invasive, spatiotemporally precise circuit manipulation, like the method presented here, will aid in elucidating the neural bases of behavior.

Materials and methods

Fly strains and husbandry

As in prior work (DeAngelis et al., 2019), flies used in optogenetic experiments were grown at 25° C in a 12 hr/12 hr light/dark cycle and staged on CO20–6 days after eclosion. When staged, all flies used, including controls, were transferred to food supplemented with all-trans-retinal (ATR) following previous protocols (De Vries and Clandinin, 2013). Flies remained on ATR-supplemented food for four days prior to behavioral experiments. In all cases, flies were grown and experiments were performed at ~50% relative humidity.

Experimental setup

Behavioral experiments were performed as in prior work (DeAngelis et al., 2019). Briefly, we used a 5 cm diameter circular planar arena consisting of two plates of glass separated by 2.5 mm (Figure 1A). The top glass plate was coated with Rain-X wax (Illinois Tool Works, Glenview, IL, USA) to prevent flies from walking on this surface during experiments. Above the arena, we mounted a diffusing screen and a 530 nm green Luxeon SP-01-G4 LED (Quadica Developments Inc, Lethbridge, AB, Canada) that provided background illumination (~1 µW/mm2). Flies were recorded from below at 150 fps using a Point Grey Flea3 FL3-U3-13Y3M-C camera (FLIR Systems, Wilsonville, OR, USA) fitted with a 25 mm C-mount lens (Tamron, Saitama City, Saitama Prefecture, Japan). The camera was positioned such that its field of view (2.2 × 2.75 cm) was approximately centered within the arena. The camera resolution was 0.043 mm/pixel. To increase the frequency of fly walking, all experiments were performed at 34° C (Creamer et al., 2018; DeAngelis et al., 2019; Soto-Padilla et al., 2018). During experiments, groups of 9–16 female flies were loaded into the arena and allowed to acclimate for 20 min prior to image acquisition. We then recorded the activity of flies in the arena for 1.1 hr, and tracked centroid and limb positions as in prior work (DeAngelis et al., 2019). Data from multiple recordings were merged to generate the aggregate datasets analyzed in this manuscript (see Table 2).

Spatiotemporally precise optogenetic manipulations

A diagram of our physical setup for performing spatiotemporally localized optogenetic perturbations is shown in Figure 1A. As we were most interested in red-sensitive optogenetic constructs, we modified the behavioral experiment apparatus used in prior work (DeAngelis et al., 2019) by mounting a dichroic shortpass filter (Edmund Optics, Barrington, NJ, USA) at a 45° angle below the glass walking substrate. We added a green-pass filter (Semrock, Rochester, NY, USA) above the high-speed monochrome camera, so that we imaged only in green. Then, using a Lightcrafter 4500 digital light projector (Texas Instruments, Dallas, TX, USA), we projected patterned stimuli of red light onto the flies in the arena from below. With this geometry, all activations were on the ventral surface of the fly’s body or limbs. We projected at 1440 Hz, and all activation durations were rounded to the nearest smaller integer number of frames. For the CsChrimson activation experiments presented in this work, we used red light with an intensity of ~0.05 mW/mm2 and a central wavelength of 624 nm.

Stimuli were designed in Matlab using Psychtoolbox (Brainard, 1997; Kleiner et al., 2007; Pelli, 1997), using methods similar to those for visual or optogenetic stimulation of tethered flies (Creamer et al., 2019). We defined the stimulus in the frame of the camera and generate the appropriate bitmap for projection using a quadratic mapping between the coordinate system of the camera and that of the projector. Briefly, we let xcam and ycam be the vectors listing the coordinates of N manually aligned reference pixels in the camera coordinate system, and xpro and ypro be the analogous vectors in the projector coordinate system, and defined the N×6 Vandermonde matrix of camera frame coordinates

X=[1,xcam,ycam,xcamxcam,xcamycam,ycamycam]

and the N×3 Vandermonde matrix of projector frame coordinates

Y=[1,xpro,ypro]

where ° denotes the Hadamard (elementwise) product. Then, we fit the 6 × 3 transformation matrix T by solving the linear system

Y=XT

We can then use the transformation T to map each stimulus pixel from the camera coordinate frame to that of the projector. Note that because this transformation includes constant, linear, and quadratic terms, it can account for offsets, translations, rotations, stretching, and some degree of nonlinear warping between the two coordinate systems.

To perform spatiotemporally localized optogenetic stimulation, the general principle of our method is to present a random spatial pattern for a brief time, and then detect overlap between the activations and the insect post hoc after extracting centroid and limb positions using our tracking algorithm. This approach is advantageous because it does not require computationally-intensive real-time tracking (Bath et al., 2014; Leifer et al., 2011; Wu et al., 2014). Here, we detected limb activations post hoc based on whether they intersect with a line segment between the center of mass of the fly and a given limb tip, outside an exclusion zone corresponding to the fly’s body. For body activations, we relied on the stereotyped size of the fly to partition pixels into body regions. All instances in which more than one limb was stimulated were excluded from analysis, as were instances in which limbs were activated simultaneously with body hits. The percentage of all detected limb activations that were excluded based on simultaneous stimulation of more than one limb was 6%, 9%, and 7% for our bristle, Gr5a-neuron, and control datasets. In this study, we did not track wing location, so we did not exclude simultaneous hits of wings and limbs, or wings and body.

In the experiments described in this work, we used circular activation patches with a radius of 0.215 mm (five pixels in the coordinate system of the camera). The number of activation patches in each stimulus presentation was Poisson-distributed with parameter λ = 35 or 75 patches per frame (see Table 2). In each frame, activation patch locations were sampled as independent and identically distributed random variables with a uniform spatial distribution. (see Figure 1C). These stimuli were presented for 10 or 30 ms durations separated by 500 or 1,000 ms interleaves (see Table 2). We found that when the interleaves were shorter, or the density of activation spots was higher, flies tended to avoid the portion of the arena where we the activations took place. This was driver-dependent and occurred more for the activation of mechanosensory neurons. As our method did not track flies when they left the camera frame, which did not cover the entire arena, we did quantify potential behavioral adaptation to optogenetic stimulation. Thus, these stimulus parameters likely require tuning for specific drivers and experimental questions. These parameters also affect phase-dependent biases in hits, as the probability that a fly’s limb will intercept an activation patch as it swings forward increases with the duration of each patch.

To analyze behavioral impulse responses, we aligned trajectory segments to detected activation onsets and averaged over many trials. Because baseline forward walking velocity varies over time and between flies, we analyzed fold-changes from the pre-stimulus forward speed (Creamer et al., 2018; DeAngelis et al., 2019). As we wished to focus our analysis on flies that were walking prior to activation onset, we excluded trajectories with average velocities slower than 3 mm/s in the 250 milliseconds preceding stimulation (DeAngelis et al., 2019). Data from multiple recording sessions were merged to generate the aggregate datasets analyzed in this manuscript (see Table 2).

Confocal imaging of expression patterns

Confocal maximum projections of R38B08-Gal4 driving expression of green fluorescent protein (GFP) were obtained as follows. Female flies, aged between 7–10 days, were selected for GFP expression (fly genotype: w; UAS-MCD8-GFP/+; UAS-MCD8-GFP/R38B08-Gal4). Flies were sectioned; heads, pro-, meta-, and meso-thoracic legs, and abdomen/thorax were mounted in separate microscope slides. Decapitated heads were positioned ventral side up into wells on the microscope slides. The wells were then filled with paraffin oil and a coverslip was placed over the specimen. Similarly, severed abdomens and thoraces were mounted ventral-side up. All legs were isolated and mounted as described above. Body parts from four flies were imaged on different days. All flies were imaged using a Zeiss LSM 880 confocal microscope, using plan-apochromat 63x/1.40 NA and 40x/1.3 NA oil objectives. GFP was excited with a 488 nm laser and detected using a photomultiplier tube.

Statistics

All statistical analysis was conducted using Matlab 9.6 and 9.7 (The MathWorks, Natick, MA, USA). Throughout this manuscript, presented error bars on time series are bootstrapped 95% confidence intervals obtained using the bias-corrected and accelerated percentile method (Efron, 1987). For integrated post-stimulus responses and corresponding significance testing, bootstrapped 99% confidence intervals are used to test for differences from baseline of mean centroid velocities after optogenetic activation.

Data and code availability

The datasets of responses to optogenetic stimulation analyzed in this work are available from the Dryad Digital Repository: https://doi.org/10.5061/dryad.nzs7h44nk. The spontaneous turning data from DeAngelis et al. (2019) analyzed in Figure 4—figure supplement 1 are also available from the Dryad Digital Repository: https://doi.org/10.5061/dryad.3p9h20r. Matlab code to generate projector stimuli, reproduce all statistical analyses, and generate all figure panels is available at https://github.com/ClarkLabCode/FlyLimbOptoCode (Zavatone-Veth, 2020; copy archived at https://github.com/elifesciences-publications/FlyLimbOptoCode). 

Acknowledgements

This work benefitted from many helpful conversations with M Venkadesan and O Mano. The Gr5a-Gal4 flies were a kind gift from J Carlson. We thank Y Luo and J Carlson for assistance with confocal microscopy. BDD was supported by an NSF GRF and a Gruber Science Fellowship. ADGS was supported by an NSF GRF and a Ford Foundation Predoctoral Fellowship. DAC and this project were supported by the Smith Family Foundation, NIH R01EY026555, NSF IOS1558103, a Searle Scholar Award, and a Sloan Fellowship in Neuroscience.

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

Damon A Clark, Email: damon.clark@yale.edu.

Ronald L Calabrese, Emory University, United States.

Ronald L Calabrese, Emory University, United States.

Funding Information

This paper was supported by the following grants:

  • National Institutes of Health EY026555 to Brian D DeAngelis, Damon A Clark.

  • National Institutes of Health EY026878 to Brian D DeAngelis, Damon A Clark.

  • Chicago Community Trust Searle Scholar Award to Damon A Clark.

  • Alfred P. Sloan Foundation Fellowship to Damon A Clark.

  • National Science Foundation GRF to Brian D DeAngelis.

  • Richard and Susan Smith Family Foundation Scholar Award to Brian D DeAngelis, Damon A Clark.

  • National Science Foundation IOS 1558103 to Jacob A Zavatone-Veth, Damon A Clark.

  • Gruber Foundation Science Fellowship to Brian D DeAngelis.

  • Ford Foundation Predoctoral Fellowship to Aneysis D Gonzalez-Suarez.

  • Searle Scholars Program Scholar Award to Damon A Clark.

Additional information

Competing interests

No competing interests declared.

Author contributions

Conceptualization, Data curation, Software, Investigation, Visualization, Methodology, Writing - original draft.

Conceptualization, Data curation, Software, Investigation, Visualization, Methodology, Writing - review and editing.

Investigation, Visualization.

Conceptualization, Supervision, Funding acquisition, Visualization, Methodology, Writing - review and editing.

Additional files

Transparent reporting form

Data availability

Source data were deposited on Dryad: https://doi.org/10.5061/dryad.nzs7h44nk. Analysis code is available here: https://github.com/ClarkLabCode/FlyLimbOptoCode (copy archived at https://github.com/elifesciences-publications/FlyLimbOptoCode).

The following dataset was generated:

DeAngelis BD, Zavatone-Veth JA, Gonzalez-Suarez AD, Clark DA. 2020. Data from: Spatiotemporally precise optogenetic activation of sensory neurons in freely walking Drosophila. Dryad Digital Repository.

References

  1. Bath DE, Stowers JR, Hörmann D, Poehlmann A, Dickson BJ, Straw AD. FlyMAD: rapid thermogenetic control of neuronal activity in freely walking Drosophila. Nature Methods. 2014;11:756–762. doi: 10.1038/nmeth.2973. [DOI] [PubMed] [Google Scholar]
  2. 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]
  3. Bidaye SS, Machacek C, Wu Y, Dickson BJ. Neuronal control of Drosophila walking direction. Science. 2014;344:97–101. doi: 10.1126/science.1249964. [DOI] [PubMed] [Google Scholar]
  4. Bidaye SS, Laturney M, Chang AK, Liu Y, Bockemühl T, Büschges A, Scott K. Two brain pathways initiate distinct forward walking programs inDrosophila. bioRxiv. 2019 doi: 10.1101/798439. [DOI] [PMC free article] [PubMed]
  5. Boyden ES, Zhang F, Bamberg E, Nagel G, Deisseroth K. Millisecond-timescale, genetically targeted optical control of neural activity. Nature Neuroscience. 2005;8:1263–1268. doi: 10.1038/nn1525. [DOI] [PubMed] [Google Scholar]
  6. Brainard DH. The psychophysics toolbox. Spatial Vision. 1997;10:433–436. doi: 10.1163/156856897X00357. [DOI] [PubMed] [Google Scholar]
  7. Braitenberg V. Vehicles: Experiments in Synthetic Psychology. MIT Press; 1986. [DOI] [Google Scholar]
  8. Burg MG, Hanna L, Kim YT, Wu CF. Development and maintenance of a simple reflex circuit in small-patch mosaics of Drosophila: effects of altered neuronal function and developmental arrest. Journal of Neurobiology. 1993;24:803–823. doi: 10.1002/neu.480240608. [DOI] [PubMed] [Google Scholar]
  9. Burrows M. The Neurobiology of an Insect Brain. New York: Oxford University Press; 1996. [DOI] [Google Scholar]
  10. Cande J, Namiki S, Qiu J, Korff W, Card GM, Shaevitz JW, Stern DL, Berman GJ. Optogenetic dissection of descending behavioral control in Drosophila. eLife. 2018;7:e34275. doi: 10.7554/eLife.34275. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Creamer MS, Mano O, Clark DA. Visual Control of Walking Speed in Drosophila. Neuron. 2018;100:1460–1473. doi: 10.1016/j.neuron.2018.10.028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Creamer MS, Mano O, Tanaka R, Clark DA. A flexible geometry for panoramic visual and optogenetic stimulation during behavior and physiology. Journal of Neuroscience Methods. 2019;323:48–55. doi: 10.1016/j.jneumeth.2019.05.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Dahanukar A, Lei YT, Kwon JY, Carlson JR. Two gr genes underlie sugar reception in Drosophila. Neuron. 2007;56:503–516. doi: 10.1016/j.neuron.2007.10.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. De Vries SEJ, Clandinin T. Optogenetic stimulation of escape behavior in Drosophila melanogaster Video link. Journal of Visualized Experiments : JoVE. 2013;1:50192. doi: 10.3791/50192. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. DeAngelis BD, Zavatone-Veth JA, Clark DA. The manifold structure of limb coordination in walking Drosophila. eLife. 2019;8:e46409. doi: 10.7554/eLife.46409. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Dionne H, Hibbard KL, Cavallaro A, Kao JC, Rubin GM. Genetic reagents for making Split-GAL4 lines in Drosophila. Genetics. 2018;209:31–35. doi: 10.1534/genetics.118.300682. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Efron B. Better bootstrap confidence intervals. Journal of the American Statistical Association. 1987;82:171–185. doi: 10.1080/01621459.1987.10478410. [DOI] [Google Scholar]
  18. Ejima A, Griffith LC. Courtship initiation is stimulated by acoustic signals in Drosophila melanogaster. PLOS ONE. 2008;3:e3246. doi: 10.1371/journal.pone.0003246. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Gepner R, Mihovilovic Skanata M, Bernat NM, Kaplow M, Gershow M. Computations underlying Drosophila photo-taxis, odor-taxis, and multi-sensory integration. eLife. 2015;4:e06229. doi: 10.7554/eLife.06229. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Gohl DM, Silies MA, Gao XJ, Bhalerao S, Luongo FJ, Lin C-C, Potter CJ, Clandinin TR. A versatile in vivo system for directed dissection of gene expression patterns. Nature Methods. 2011;8:231–237. doi: 10.1038/nmeth.1561. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Günel S, Rhodin H, Morales D, Campagnolo J, Ramdya P, Fua P. DeepFly3D, a deep learning-based approach for 3D limb and appendage tracking in tethered, adult Drosophila. eLife. 2019;8:640375. doi: 10.7554/eLife.48571. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Hampel S, Franconville R, Simpson JH, Seeds AM. A neural command circuit for grooming movement control. eLife. 2015;4:e08758. doi: 10.7554/eLife.08758. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Hampel S, McKellar CE, Simpson JH, Seeds AM. Simultaneous activation of parallel sensory pathways promotes a grooming sequence in Drosophila. eLife. 2017;6:e28804. doi: 10.7554/eLife.28804. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Hernandez-Nunez L, Belina J, Klein M, Si G, Claus L, Carlson JR, Samuel ADT. Reverse-correlation analysis of navigation dynamics in Drosophila larva using optogenetics. eLife. 2015;4:e06225. doi: 10.7554/eLife.06225. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Hotta Y, Benzer S. Genetic Dissection of the Drosophila Nervous System by Means of Mosaics. PNAS. 1970;67:1156–1163. doi: 10.1073/pnas.67.3.1156. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Hotta Y, Benzer S. Mapping of Behaviour in Drosophila Mosaics. Nature. 1972;240:527–535. doi: 10.1038/240527a0. [DOI] [PubMed] [Google Scholar]
  27. Jenett A, Rubin GM, Ngo T-TB, Shepherd D, Murphy C, Dionne H, Pfeiffer BD, Cavallaro A, Hall D, Jeter J, Iyer N, Fetter D, Hausenfluck JH, Peng H, Trautman ET, Svirskas RR, Myers EW, Iwinski ZR, Aso Y, DePasquale GM, Enos A, Hulamm P, Lam SCB, Li H-H, Laverty TR, Long F, Qu L, Murphy SD, Rokicki K, Safford T, Shaw K, Simpson JH, Sowell A, Tae S, Yu Y, Zugates CT. A GAL4-Driver Line Resource for Drosophila Neurobiology. Cell Reports. 2012;2:991–1001. doi: 10.1016/j.celrep.2012.09.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Jindrich DL, Full RJ. Dynamic stabilization of rapid hexapedal locomotion. The Journal of Experimental Biology. 2002;205:2803–2823. doi: 10.1242/jeb.205.18.2803. [DOI] [PubMed] [Google Scholar]
  29. Klapoetke NC, Murata Y, Kim SS, Pulver SR, Birdsey-Benson A, Cho YK, Morimoto TK, Chuong AS, Carpenter EJ, Tian Z, Wang J, Xie Y, Yan Z, Zhang Y, Chow BY, Surek B, Melkonian M, Jayaraman V, Constantine-Paton M, Wong GK-S, Boyden ES. Independent optical excitation of distinct neural populations. Nature Methods. 2014;11:338–346. doi: 10.1038/nmeth.2836. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Kleiner M, Brainard D, Pelli DG. What’s new in Psychtoolbox-3? Perception. 2007;36:1. doi: 10.1068/v070821. [DOI] [Google Scholar]
  31. Krakauer JW, Ghazanfar AA, Gomez-Marin A, MacIver MA, Poeppel D. Neuroscience Needs Behavior: Correcting a Reductionist Bias. Neuron. 2017;93:480–490. doi: 10.1016/j.neuron.2016.12.041. [DOI] [PubMed] [Google Scholar]
  32. Kwon JY, Dahanukar A, Weiss LA, Carlson JR. A map of taste neuron projections in the Drosophila CNS. Journal of Biosciences. 2014;39:565–574. doi: 10.1007/s12038-014-9448-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Laurent G. Thoracic intersegmental interneurones in the locust with mechanoreceptive inputs from a leg. Journal of Comparative Physiology A. 1986;159:171–186. doi: 10.1007/BF00612300. [DOI] [Google Scholar]
  34. Lee T, Luo L. Mosaic Analysis with a Repressible Cell Marker for Studies of Gene Function in Neuronal Morphogenesis. Neuron. 1999;22:451–461. doi: 10.1016/S0896-6273(00)80701-1. [DOI] [PubMed] [Google Scholar]
  35. Leifer AM, Fang-Yen C, Gershow M, Alkema MJ, Samuel ADT. 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]
  36. Luo L, Callaway EM, Svoboda K. Genetic Dissection of Neural Circuits: A Decade of Progress. Neuron. 2018;98:256–281. doi: 10.1016/j.neuron.2018.03.040. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Mamiya A, Gurung P, Tuthill JC. Neural coding of leg proprioception in Drosophila. Neuron. 2018;100:636–650. doi: 10.1016/j.neuron.2018.09.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Mann K, Gordon MD, Scott K. A pair of interneurons influences the choice between feeding and locomotion in Drosophila. Neuron. 2013;79:754–765. doi: 10.1016/j.neuron.2013.06.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Martin JP, Guo P, Mu L, Harley CM, Ritzmann RE. Central-complex control of movement in the freely walking cockroach. Current Biology. 2015;25:2795–2803. doi: 10.1016/j.cub.2015.09.044. [DOI] [PubMed] [Google Scholar]
  40. Mathis A, Mamidanna P, Cury KM, Abe T, Murthy VN, Mathis MW, Bethge M. DeepLabCut: markerless pose estimation of user-defined body parts with deep learning. Nature Neuroscience. 2018;21:1281–1289. doi: 10.1038/s41593-018-0209-y. [DOI] [PubMed] [Google Scholar]
  41. Mendes CS, Bartos I, Akay T, Márka S, Mann RS. Quantification of gait parameters in freely walking wild type and sensory deprived Drosophila melanogaster. eLife. 2013;2:e00231. doi: 10.7554/eLife.00231. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Namiki S, Dickinson MH, Wong AM, Korff W, Card GM. The functional organization of descending sensory-motor pathways in Drosophila. eLife. 2018;7:e34272. doi: 10.7554/eLife.34272. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Naumann EA, Fitzgerald JE, Dunn TW, Rihel J, Sompolinsky H, Engert F. From Whole-Brain data to functional circuit models: the zebrafish optomotor response. Cell. 2016;167:947–960. doi: 10.1016/j.cell.2016.10.019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. 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. 2015;33:E1074–E1081. doi: 10.1073/pnas.1507110112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Pelli DG. The VideoToolbox software for visual psychophysics: transforming numbers into movies. Spatial Vision. 1997;10:437–442. doi: 10.1163/156856897X00366. [DOI] [PubMed] [Google Scholar]
  46. Pereira TD, Aldarondo DE, Willmore L, Kislin M, Wang SS, Murthy M, Shaevitz JW. Fast animal pose estimation using deep neural networks. Nature Methods. 2019;16:117–125. doi: 10.1038/s41592-018-0234-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Portugues R, Severi KE, Wyart C, Ahrens MB. Optogenetics in a transparent animal: circuit function in the larval zebrafish. Current Opinion in Neurobiology. 2013;23:119–126. doi: 10.1016/j.conb.2012.11.001. [DOI] [PubMed] [Google Scholar]
  48. Ramdya P, Lichocki P, Cruchet S, Frisch L, Tse W, Floreano D, Benton R. Mechanosensory interactions drive collective behaviour in Drosophila. Nature. 2015;519:233–236. doi: 10.1038/nature14024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Ribeiro IMA, Drews M, Bahl A, Machacek C, Borst A, Dickson BJ. Visual projection neurons mediating directed courtship in Drosophila. Cell. 2018;174:607–621. doi: 10.1016/j.cell.2018.06.020. [DOI] [PubMed] [Google Scholar]
  50. Ristroph L, Bergou AJ, Ristroph G, Coumes K, Berman GJ, Guckenheimer J, Wang ZJ, Cohen I. Discovering the flight autostabilizer of fruit flies by inducing aerial stumbles. PNAS. 2010;107:4820–4824. doi: 10.1073/pnas.1000615107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Robie AA, Hirokawa J, Edwards AW, Umayam LA, Lee A, Phillips ML, Card GM, Korff W, Rubin GM, Simpson JH, Reiser MB, Branson K. Mapping the neural substrates of behavior. Cell. 2017;170:393–406. doi: 10.1016/j.cell.2017.06.032. [DOI] [PubMed] [Google Scholar]
  52. 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]
  53. Shiraiwa T, Carlson JR. Proboscis extension response (PER) Assay in Drosophila. Journal of Visualized Experiments. 2007:2–3. doi: 10.3791/193. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Siegler MV, Burrows M. Receptive fields of motor neurons underlying local tactile reflexes in the locust. The Journal of Neuroscience. 1986;6:507–513. doi: 10.1523/JNEUROSCI.06-02-00507.1986. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Soto-Padilla A, Ruijsink R, Sibon OCM, van Rijn H, Billeter J-C. Pattern-generation and pattern-transfer for single-digit nano devices. The Journal of Experimental Biology. 2018;34:4966556. doi: 10.1116/1.4966556. [DOI] [PubMed] [Google Scholar]
  56. Strauss R, Heisenberg M. Coordination of legs during straight walking and turning in Drosophila melanogaster. Journal of Comparative Physiology A. 1990;167:403–412. doi: 10.1007/BF00192575. [DOI] [PubMed] [Google Scholar]
  57. Tuthill JC, Wilson RI. Parallel Transformation of Tactile Signals in Central Circuits of Drosophila. Cell. 2016a;164:1046–1059. doi: 10.1016/j.cell.2016.01.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Tuthill JC, Wilson RI. Mechanosensation and adaptive motor control in insects. Current Biology. 2016b;26:R1022–R1038. doi: 10.1016/j.cub.2016.06.070. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Wu MC, Chu LA, Hsiao PY, Lin YY, Chi CC, Liu TH, Fu CC, Chiang AS. Optogenetic control of selective neural activity in multiple freely moving Drosophila adults. PNAS. 2014;111:5367–5372. doi: 10.1073/pnas.1400997111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Wu M, Nern A, Williamson WR, Morimoto MM, Reiser MB, Card GM, Rubin GM. Visual projection neurons in the Drosophila lobula link feature detection to distinct behavioral programs. eLife. 2016;5:e21022. doi: 10.7554/eLife.21022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Xu T, Rubin GM. Analysis of genetic mosaics in developing and adult Drosophila tissues. Development. 1993;117:1223–1237. doi: 10.1242/dev.117.4.1223. [DOI] [PubMed] [Google Scholar]
  62. Zavatone-Veth JA. FlyLimbOptoCode Source. Github. 2020 https://github.com/ClarkLabCode/FlyLimbOptoCode
  63. Zhang N, Guo L, Simpson JH. Spatial comparisons of mechanosensory information govern the grooming sequence in Drosophila. Curr Biol. 2020;30:988–1001. doi: 10.1016/j.cub.2020.01.045. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Zhou Y, Cao L-H, Sui X-W, Guo X-Q, Luo D-G. Mechanosensory circuits coordinate two opposing motor actions in Drosophila feeding mechanoreception detects physical forces in the senses of hearing, touch, and proprioception. Science Advances. 2019;5:5141–5163. doi: 10.1126/sciadv.aaw5141. [DOI] [PMC free article] [PubMed] [Google Scholar]

Decision letter

Editor: Ronald L Calabrese1

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

Thank you for submitting your article "Spatiotemporally precise optogenetic manipulation in freely moving animals" for consideration by eLife. Your article has been reviewed by three peer reviewers, and the evaluation has been overseen by Ronald Calabrese as the Senior Editor and Reviewing Editor. The reviewers have opted to remain anonymous.

The reviewers have discussed the reviews with one another and the Reviewing Editor has drafted this decision to help you prepare a revised submission.

Summary:

In this Advance to their recent eLife publication, DeAngelis and colleagues describe a new method for sparse optogenetic stimulation using a DLP projector. Specifically, they use the DLP system to randomly-scatter light at the wavelength necessary for optogenetic activation, and then, after the experiment, isolate the behavioral effects of stimulating as a function of where on the body the light hit. This method is cheaper and easier than more complicated methods that require real-time tracking and targeting for specific body parts. They first activate mechanosensory bristles in different parts of fly's body: stimulating the abdomen makes the fly speed up; stimulating the head, forelimbs, and thorax makes the fly slow down; activation on one side causes contralateral turning. They then activate sweet taste receptors (gr5a); here, flies tended to slow down when the head and body was stimulated, and slow down and turn toward the side of stimulation when legs were targeted. The paper qualifies nicely as an Advances article, as it produces novel results and methods important in directing future research.

Essential revisions:

While the reviewers were generally supportive there were concerns. First, the work appears presented more as a methods development than a scientific advance, leading to some confusion by the reviewers. Reviewer #1's confusion regarding the manuscript type would be best addressed by making clear that this is not a Tools and Resources paper but a scientific Advance. Second, the authors should more explicitly integrate this work with the previous publication – the continuous attractor dynamics play almost no role here. Some additional measurements (e.g., phase response curves, adaptation estimates, display of full variation rather than 95% c.i. of mean, etc.) would go a long way towards increasing the impact of the article. Reviewer #2's concerns should be fully addressed.

While reporting rigorous 95% CI's of the mean is certainly appropriate for many of the comparisons made some graphical presentation and quantification of the actual variation in the data would be useful for assessment of method applicability. We like the raw data plots of the fly body at the top of each figure, but it is hard to glean a number or distribution from this.

Reviewer #1:

In this Tools and Resources manuscript the authors build on their recent ELife publication to report a method for obtaining spatially and temporally selective optogenetic stimulation without real-time tracking or implanted devices. The key insight is to use patterned light and post-hoc analysis of high-speed video combined with extensively stochastic sampling. My major concerns are the lack of benchmarking and quantitative comparison to other methods and whether the methodology goes significantly beyond what might be appropriate for a Materials and methods section in a standard research article. The limitations of the proposed methods, common to many optogenetic approaches, are clearly articulated. The test cases are themselves a nice addition to the literature, enough so that this paper might be more appropriate as a research study in a more focused journal.

It is certainly a clever insight to use random sampling and post-hoc analysis to determine what category the stimulation fell under. However, this type of approach is certainly not unprecedented in other conditions such as multi-unit electrophysiology (e.g. Martin et al., 2015.). I have not seen it applied before in an optogenetics context, although I have not systematically looked, and it clearly does help in this situation. I think it quite evident that such method was useful in this case. However tools and techniques papers typical pose approaches that significantly improve upon existing data in a way that might resolve many open questions in the field. Combined with the lack of precise patterning of spikes, I am worried that the use cases here might be somewhat narrow.

eLife's guidelines for a new method in a Tools and Resources papers says "…the new method should be properly compared and benchmarked against existing methods used in the field."

This seems like a reasonable request, especially for this paper. Specifically, I would very much like to see a quantification of precision and the degree of selectivity that this technique can provide. It clearly can distinguish between legs and body, but is that the limit? The figures suggest it may be more precise given the localization of the target, but how far outside of this region does the physiological activation extend? What are the typical levels of activation that are achieved when light passes through the exoskeleton? For the specific application here, these questions did not require answers because the authors examined the differential response between body and leg stimulation. However, for general methodology these characterizations seem necessary.

Reviewer #2:

In this update to their recent eLife publication, DeAngelis and colleagues describe a new method for sparse optogenetic stimulation using a DLP projector. They first activate mechanosensory bristles in different parts of fly's body: stimulating the abdomen makes the fly speed up; stimulating the head, forelimbs, and thorax makes the fly slow down; activation on one side causes contralateral turning. They then activate sweet taste receptors (gr5a); here, flies tended to slow down when the head and body was stimulated, and slow down and turn toward the side of stimulation when legs were targeted.

Overall, I think this short paper provides a reasonable update to the previous publication.

This update could be better integrated with the original publication. For example, the authors' previous submission contained a figure showing that activation of forelimb bristle neurons resulted in turns that appear distinct from spontaneous turning behavior. Including that data here would help to link these new results to those in the original paper.

It would be useful to construct a phase response curve of optogenetic stimulation to understand whether and how flies respond to perturbations at different phases of the step cycle. It would also be helpful to know when the leg is stimulated within the step cycle. It is likely that the random stimulation induces a bias in the phase that the leg gets stimulated at. In particular, I would expect that the legs get stimulated more when they are extended than when contracted.

For clarity, the authors need to provide more information about the distribution of bristle and gr5a neurons across the flies body. Without this information, it is difficult to interpret the behavioral results. Given that this is already described in the literature, it could be simply included on each figure in schematic form. For example, are there a similar number of Gr5a expressing neurons in each leg? What about on the abdomen? If not, why does the fly slow down when the abdomen is stimulated? Does this reveal something about the spatial resolution of the method?

Reviewer #3:

In this Advances article, the authors build upon their previous publication from last year, describing a method for analyzing the effects of location-specific optogenetic manipulations in a post hoc manner. Specifically, they use a DLP system to randomly-scatter light at the wavelength necessary for optogenetic activation, and then, after the experiment, isolate the behavioral effects of stimulating as a function of where on the body the light hit. This method is cheaper and easier than more complicated methods that require real-time tracking and targeting for specific body parts. As a proof of concept, the authors show sensible effects for stimulating two different types of neurons: bristle sensory neurons and Gr5a taste receptors.

On the whole, I think that this method, while having its limitations (all clearly stated in the Discussion), would be an important tool in the fly behavioral neuroscience toolbox, and I encourage acceptance of the article (especially as more of a methods paper). I am somewhat skeptical of the bristle mechanoreceptor results, as there appear to be non-specific targeting – looking back at the original paper – but I think that the results are compelling enough to serve as a proof-of-concept here. This is a caveat that I think needs to be made explicit in the final version, but, again, I think that this is a solid advance, and I encourage publication.

eLife. 2020 Apr 22;9:e54183. doi: 10.7554/eLife.54183.sa2

Author response


Essential revisions:

While the reviewers were generally supportive there were concerns. First, the work appears presented more as a methods development than a scientific advance, leading to some confusion by the reviewers. Reviewer #1's comments are best addressed by making clear that this is not a Tools and Resources paper but a scientific Advance. Second, the authors should more explicitly integrate this work with the previous publication – the continuous attractor dynamics play almost no role here. Some additional measurements (e.g., phase response curves, adaptation estimates, display of full variation rather than 95% c.i. of mean, etc.) would go a long way towards increasing the impact of the article. Reviewer #2's concerns should be fully addressed.

The two essential revisions were (1) to make clear this is a scientific result, not just a tools paper and (2) to integrate this work better with our previous, related paper. To clarify the scientific contribution of this work and better connect it to our previous publication, we have extensively restructured our manuscript. Rather than presenting responses to bristle neuron and Gr5a-neuron activations sequentially, we now present these data in tandem, grouped by the location of stimulation. This organization better emphasizes the scientific insights generated by the activation method, and improves the overall clarity of the manuscript. Our title has also changed to emphasize the scientific content, rather than just the methodology.

Within this new framework, we have added several new figures to address questions raised by the reviewers, and which also more closely link the present results to our prior paper. First, we characterized the variability in evoked responses, showing that stimulation is followed by limb- and body-region-specific changes in kinematic variability across the population of stimulated flies (Figure 2—figure supplement 2 and Figure 3—figure supplement 2). Second, we now show how localized perturbations evoke changes in the geometry of limb coordination (Figure 4) and address the question of phase dependence in the responses (Figure 3—figure supplement 3). These two figures relate closely to the coordination patterns we studied in DeAngelis et al., 2019. Third, to address Reviewer 2’s question about the expression patterns of the R38B08 driver used to activate bristle neurons, we have acquired expression data, which show that this driver is expressed in neurons that appear to be associated with the sensory bristles on the ventral surface of the fly’s body (Figure 1—figure supplement 1).

While reporting rigorous 95% CI's of the mean is certainly appropriate for many of the comparisons made some graphical presentation and quantification of the actual variation in the data would be useful for assessment of method applicability. We like the raw data plots of the fly body at the top of each figure, but it is hard to glean a number or distribution from this.

To characterize the variability in responses, we have added two figures (Figure 2—figure supplement 2 and Figure 3—figure supplement 2), which show the mean absolute deviation of each of the components of the kinematics of the fly’s centroid as a function of time relative to stimulation onset. These plots quantify the variability in behavior and show that localized optogenetic stimulation evokes transient changes in the variability and stereotypy of kinematic behavior.

Reviewer #1:

[…] It is certainly a clever insight to use random sampling and post-hoc analysis to determine what category the stimulation fell under. However, this type of approach is certainly not unprecedented in other conditions such as multi-unit electrophysiology (e.g. Martin et al., 2015.). I have not seen it applied before in an optogenetics context, although I have not systematically looked, and it clearly does help in this situation. I think it quite evident that such method was useful in this case. However tools and techniques papers typical pose approaches that significantly improve upon existing data in a way that might resolve many open questions in the field. Combined with the lack of precise patterning of spikes, I am worried that the use cases here might be somewhat narrow.

eLife's guidelines for a new method in a Tools and Techniques papers says "…the new method should be properly compared and benchmarked against existing methods used in the field."

This seems like a reasonable request, especially for this paper. Specifically, I would very much like to see a quantification of precision and the degree of selectivity that this technique can provide. It clearly can distinguish between legs and body, but is that the limit? The figures suggest it may be more precise given the localization of the target, but how far outside of this region does the physiological activation extend? What are the typical levels of activation that are achieved when light passes through the exoskeleton? For the specific application here, these questions did not require answers because the authors examined the differential response between body and leg stimulation. However, for general methodology these characterizations seem necessary.

Our primary response to this comment is included with our response to the Essential Revision. Determining the precise extent of physiological activation produced by optogenetic stimulation methods can be challenging, even when electrophysiological access is available (see, for instance, Li et al., 2019). The resolution with which one can target the optogenetic activation is limited by both the camera and projector resolutions. For the experiments presented here, the size of individual activation patches was 0.215 mm. The temporal precision of stimulation is limited both by the projector used (in this case, giving a maximum frame rate of 1440 Hz) and by the timescale over which the channels of the optogenetic activator remain open (~20 ms current decay time constant as measured in vitro for CSChrimson as used in this work, see Klapoetke et al., 2014). We would like to emphasize that many of these limitations are not inherent to the method; rather, they result from our implementation. In particular, the spatiotemporal precision of activation is constrained by the projector, camera, and optical configuration used. Given different equipment and a different stimulus generation protocol, one could achieve higher precision. There are, of course, limitations imposed by the scattering of the cuticle, which decreases resolution for non-superficial neurons, and could also generate non-specific activation, if scattered light can activate neurons that are quite distant to the spot of light. We now mention these limitations explicitly in the manuscript.

Reviewer #2:

[…] This update could be better integrated with the original publication. For example, the authors' previous submission contained a figure showing that activation of forelimb bristle neurons resulted in turns that appear distinct from spontaneous turning behavior. Including that data here would help to link these new results to those in the original paper.

Our primary response to this comment is included with our response to the Essential Revision. Briefly, we have added visualizations to show how activation evokes changes in limb coordination.

It would be useful to construct a phase response curve of optogenetic stimulation to understand whether and how flies respond to perturbations at different phases of the step cycle. It would also be helpful to know when the leg is stimulated within the step cycle. It is likely that the random stimulation induces a bias in the phase that the leg gets stimulated at. In particular, I would expect that the legs get stimulated more when they are extended than when contracted.

Thank you for these suggestions. The reviewer’s expectation that random stimulation induces biases in the phase at which limbs are stimulated is well-founded, and we have revised the text to more clearly state this point. We have also added figures showing the distributions of limb phase at activation onset (Figure 3—figure supplement 3), which support these intuitions.

We agree that constructing phase response curves of optogenetic stimulation would be a useful and interesting analysis. However, to construct full phase response curves, one would ideally want a quantity of data sufficient to divide each cycle into at least four bins, ideally more. As we did not design our experiments with specific sample sizes in mind and did not perform any analysis until the full datasets were collected, we do not have enough data at our disposal to estimate phase response curves with high resolution.

To obtain a coarse-grained picture, we instead considered the mean responses to stimulation conditioned on whether the hit limb was in swing or stance phase at the time of stimulation (Figure 3—figure supplement 3). Under this analysis, average turning responses did not appear substantially phase-dependent. Stimulation of limbs during stance phase tended to evoke a greater degree of slowing than stimulation during swing phase, particularly for activation of Gr5a neurons on the flies’ midlimbs. However, control flies also displayed (qualitatively smaller) phase-dependent biases in walking speed, suggesting that this discrepancy could be at least partially accounted for by the sampling biases described above.

Yet, in this case, it remains unclear how to rigorously isolate possible phase-dependence in responses to stimulation from the underlying phase-dependence of slowing during walking behavior. One might seek to construct a shuffled internal control by resampling from the full dataset of stimulated flies. However, this is potentially problematic, due to the long timescale correlations present even in spontaneous fly walking behavior (see, for instance, Berman et al., 2016, Katsov et al., 2017, or Figure 1—figure supplement 2 of our previous eLife publication) and the possibility of longer-timescale behavioral effects of stimulation (such as the question of adaptation raised elsewhere). Beyond the fact that these effects make naïve resampling a poor control from a biological standpoint, they also can yield increased error rates in statistical tests (Politis et al., 1997, Canty et al., 2006). One could instead consider comparing against an external control, but one would then still have to contend with the issue of how closely pre-stimulation behavior should be matched. Furthermore, since these perturbations evoke substantial slowing, one would ideally want a control that accounts for potential phase-dependence in spontaneous slowing behavior. For these reasons, extracting a clear statistical picture of possible phase-dependence in responses is nontrivial, but an interesting avenue for future inquiry. We have revised the text to include these points, and we note the contrast in slowing for phase/swing hits in Gr5a midlimbs, but do not include statistical claims.

For clarity, the authors need to provide more information about the distribution of bristle and gr5a neurons across the flies body. Without this information, it is difficult to interpret the behavioral results. Given that this is already described in the literature, it could be simply included on each figure in schematic form. For example, are there a similar number of Gr5a expressing neurons in each leg? What about on the abdomen? If not, why does the fly slow down when the abdomen is stimulated? Does this reveal something about the spatial resolution of the method?

We have added a figure showing confocal imaging of superficial GFP-expressing cell bodies under the ventral cuticle of the fly (Figure 1—figure supplement 1), as well as diagrams showing the distribution of these neuron classes (Figure 1).

Reviewer #3:

[…] On the whole, I think that this method, while having its limitations (all clearly stated in the Discussion), would be an important tool in the fly behavioral neuroscience toolbox, and I encourage acceptance of the article (especially as more of a methods paper). I am somewhat skeptical of the bristle mechanoreceptor results, as there appear to be non-specific targeting – looking back at the original paper – but I think that the results are compelling enough to serve as a proof-of-concept here. This is a caveat that I think needs to be made explicit in the final version, but, again, I think that this is a solid advance, and I encourage publication.

We thank the reviewer for their comments and hope that our revisions to the manuscript have further improved its clarity. In particular, as we note in our response to the Essential Revision, we have added imaging data to characterize the expression of the Gal4 driver lines used and have further expanded our discussion of the limitations of this method and of optogenetic impulse perturbations more generally.

Associated Data

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

    Data Citations

    1. DeAngelis BD, Zavatone-Veth JA, Gonzalez-Suarez AD, Clark DA. 2020. Data from: Spatiotemporally precise optogenetic activation of sensory neurons in freely walking Drosophila. Dryad Digital Repository. [DOI] [PMC free article] [PubMed]

    Supplementary Materials

    Transparent reporting form

    Data Availability Statement

    The datasets of responses to optogenetic stimulation analyzed in this work are available from the Dryad Digital Repository: https://doi.org/10.5061/dryad.nzs7h44nk. The spontaneous turning data from DeAngelis et al. (2019) analyzed in Figure 4—figure supplement 1 are also available from the Dryad Digital Repository: https://doi.org/10.5061/dryad.3p9h20r. Matlab code to generate projector stimuli, reproduce all statistical analyses, and generate all figure panels is available at https://github.com/ClarkLabCode/FlyLimbOptoCode (Zavatone-Veth, 2020; copy archived at https://github.com/elifesciences-publications/FlyLimbOptoCode). 

    Source data were deposited on Dryad: https://doi.org/10.5061/dryad.nzs7h44nk. Analysis code is available here: https://github.com/ClarkLabCode/FlyLimbOptoCode (copy archived at https://github.com/elifesciences-publications/FlyLimbOptoCode).

    The following dataset was generated:

    DeAngelis BD, Zavatone-Veth JA, Gonzalez-Suarez AD, Clark DA. 2020. Data from: Spatiotemporally precise optogenetic activation of sensory neurons in freely walking Drosophila. Dryad Digital Repository.


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

    RESOURCES