Introduction

All animals use different sensory modalities to perceive the surrounding environment. This includes vision, hearing, taste, smell, and touch. Between these, olfaction is for many insects the most important sensory modality to ensure survival and reproductive success.

Thanks to recent advances in physiology and genetics, much is known about how Drosophila melanogaster encodes odour stimuli in its brain. In fact, it is one of the most used animal models in neuroscience to investigate the logic of olfaction1; the reasons are several: anatomical similarity to the vertebrate olfactory system, reduced brain dimensions facilitating the optical access, precise description of synaptic connections, availability of a vast set of genetic tools for its manipulation, and a large number of paradigms to test olfactory perception.

The majority of olfactory sensilla are located at the distal part of the antenna. Olfactory receptor neurons (ORNs) within the sensilla extend their axons to the first olfactory centres in the brain, the antennal lobes (ALs), the analogue of the olfactory bulbs (OBs) in mammals. Specifically, the ORN axons terminate in spherical substructures, the glomeruli. In an AL there are 43 glomeruli, each of which receives input from a single type of olfactory receptor2; local interneurons (LNs) interconnect different glomeruli3 and projection neurons (PNs) forward the glomerular activity to higher brain centres. Odour stimuli produce stereotypical glomerular activation patterns in the ALs, which can be observed via calcium imaging in fruit flies4, but also in other insects like bees5 as well as in the mammalian OBs6. Both spatial and temporal degrees of freedom contribute to odour coding7,8,9,10,11,12. PN axons connect to higher processing centres like the calyces of the mushroom bodies (MBs) and dorso-lateral regions of the protocerebrum called lateral horns (LHs). This information transfer from ALs to higher centres has been intensively studied13,14,15. At the MBs level, information is read out by ca. 2000 Kenyon cells (KCs) which are sparsely activated without an evident stereotypical spatial patterning. KCs integrate different combinations of inputs, each from ca. 7 PNs, maximizing stimulus discrimination performance16.

Large efforts are currently being made to study connectivity between and within these brain regions. Besides spectacular results showing anatomical connections down to the single synapse17, functional connectivity is studied with various approaches, e.g. by combining Ca-imaging with bath-applied adenosine triphosphate (ATP) pulses18, electrophysiological stimulations and readout of single LNs and PNs19, or by correlating spontaneous activity20. First efforts are made to precisely connect anatomical and functional data21. These and other studies gave a good insight into connectivity properties, however, there is one bottleneck in all works which investigate the olfactory system at the network level: how to combine single network node stimulation with whole-brain readout. While in electrophysiological studies, to perfectly shape single neuron stimuli, the response can be recorded only in a few neurons, whole-brain studies use spontaneous activity to determine the resting state connectivity or use odour stimuli which usually elicit responses in a large number of input neurons cross-linked in the AL, typically producing a broad activity pattern.

To shed light on the olfactory network and its coding mechanisms, it would be of great advantage to access also single network nodes and follow the produced activation in space and time. This would help to explore the direct and indirect coupling between single cells, enabling systematic studies on how single odour properties are encoded in this high-dimensional system.

The selective interaction with single neurons became feasible by the experimental implementation of optogenetics, a technique based on the integration of light-sensitive ion channels (opsins) into the cell membrane to modulate its ionic permeability upon illumination with specific wavelengths22. Since the first proof-of-principle experiments23,24,25, scientists have developed a large toolset of opsins to excite or inhibit single neurons26,27. In combination with spatially and temporally resolved readout, e.g. via calcium imaging, this provides a powerful all-optical approach to studying neuronal networks28,29.

However, the combined use of optogenetics and calcium imaging is experimentally challenging: besides the costs and complexity of integrating and controlling two laser light sources (one for the activation, one for the readout), the spectral overlap between the molecules responsible for optical activation and calcium activity detection represents one of the biggest problems24. The best performing activity sensors in transgenic animals, the genetically encoded calcium indicators GCaMP630, GCaMP731, and GCaMP832 are overlapping with the most common opsin, Channelrhodopsin-2 (ChR2)24. Wavelength-shifted opsins and calcium sensors are less efficient33 but still widely chosen to avoid this problem34. Alternative ways to minimize this cross-talk in an all-optical activation and readout system would be the targeting of spatially separated areas for stimulation and imaging or optimization of laser powers for the two different tasks35,36,37,38,39.

By now, the power of all-optical neuronal manipulation and imaging has been successfully demonstrated in different animal models and various parts of the brain40. The applicability of these setups was extended by advanced stimulus delivery and imaging techniques41,42,43,44,45. Also in Drosophila, the all-optical approach has been applied to various brain regions and neuronal populations27,46. But among those, only a single work concentrated on the olfactory system of adult flies. The experimental approach was, contrary to this work, the stimulation of a single type of ORN which was targeted by selective expression of ChR2 and not by spatially selective illumination47. In a further study in Drosophila larvae, ChR2 was expressed in all ORNs, but also here light patterning was not applied, since a response of all ORNs was desired48. Thus, to our knowledge, the here presented methods are the first, that show how to dissect the olfactory network in flies via a selective illumination of single glomeruli. However, the benefits of such an approach within the olfactory system have already been demonstrated in fish49 and mice50,51,52.

To fill this gap and to solve the aforementioned limitations, we implemented optogenetics to selectively stimulate functional units in the Drosophila olfactory system via a diode laser and to read out the activation via two-photon fluorescence microscopy providing high resolution and penetration depth. We present new transgenic lines of Drosophila, expressing a combination of the best-performing actuators and sensors, the opsin ChR2-XXL53 at the level of the ALs and the calcium indicator GCaMP6 pan-neuronally.

Our results demonstrate that these flies qualify as a reliable and versatile tool to stimulate specific nodes in the primary olfactory network while monitoring the associated neuronal response throughout the brain in vivo.

Results

Antennal lobe stimulation and olfactory pathway connectivity

To validate our all-optical system and transgenic model, we monitored the entire fly brain activity, stimulating only one antennal lobe. The validation aimed to confirm and investigate already known functional connections across different brain areas, with a particular focus on ALs and MBs.

The correlations between the response signals of different brain areas (Fig. 1a) were calculated, including the left and right ALs, the left and right MBs and the left and right posterior brain (superior medial protocerebrum) (Fig. 1b). In all cases, correlations are higher for the left side stimulation, which is likely influenced by the specific area that was targeted. Looking at the ipsilateral correlations, the largest ones are those between the stimulated AL and the ipsilateral MB (r = 0.79 ± 0.09 (mean ± sem) for the left, r = 0.51 ± 0.10 for the right side stimulation); they then reduce between stimulated AL and posterior brain (r = 0.60 ± 0.32 for the left and r = 0.17 ± 0.06 for the right side). Of major interest are the contralateral couplings which are relatively low between antennal lobes (r = 0.30 ± 0.30 under left stimulation, r = 0.13 ± 0.29 under right stimulation) and increase substantially between ALs and contralateral MBs (r = 0.62 ± 0.20 under left stimulation, r = 0.38 ± 0.24 under right stimulation) and between both MBs (r = 0.60 ± 0.25 under left stimulation, r = 0.61 ± 0.09 under right stimulation).

Figure 1
figure 1

Whole brain imaging. (a) Cross-section fluorescence image of a whole brain, with different ROIs delimiting brain areas involved in olfactory processing (1,2 ALs; 3,4 MBs; 5,6 posterior brain areas). The red circles represent the two different stimulation points (in two different experiments). Scale bar 80 µm. (b) Cross-correlation analysis between different areas of the fly brain, following an antennal lobe stimulation. The Pearson’s correlation coefficients across brain regions are represented as a colour code The results show an average over three stimulus repetitions in a single brain experiment.

The results confirmed the feasibility of this tool to investigate functional connectivity between different macro-areas of the brain, showing the possibility to spot familiar brain connections.

Single glomerulus stimulation and power threshold

This second experiment aimed at testing the applicability of our setup to target a single functional unit, namely a single glomerulus inside the AL. To explore the resolution of our setup and test the feasibility to solely stimulate neurons within a single glomerulus of interest, we stimulated three spots consecutively, targeting two different glomeruli and, as a control, an area outside the AL (respectively glo1, glo2, and ctrl, marked by red points in Fig. 2a).

Figure 2
figure 2

Glomeruli stimulation. (a) Cross-section image of an AL, highlighting two glomeruli (white ROIs) and three stimulation points (red circles). Scale bar 20 µm. (b) Temporal response curves averaged over the two different ROIs (glomerulus 1 above and glomerulus 2 below); red vertical lines indicate the times of stimulation: the first stimulation targets glomerulus 1, the second glomerulus 2, and the third a point outside the AL (ctrl). The interval between stimuli is 20 s. Consistently, the highest response for each glomerulus is in correspondence with the relative stimulation, while the control point illumination doesn’t elicit any neuronal activity. The figure shows a single representative experiment.

The temporal response curves manifest that the stimulus elicits a strong response signal in the targeted glomerulus while stimulating the control region outside the AL does not elicit any glomerular activity (Fig. 2b). However, when targeting one glomerulus, a reduced response was visible also in the other, non-targeted glomerulus. The comparable distance to the control suggests that this might not be a direct activation due to a limited resolution of the activation pattern, but rather an excitatory coupling between glomeruli via local neurons54.

To clarify this, we tested neuronal responses in the neighbouring regions of the stimulated glomerulus. A single glomerulus (orange ROI 1 in Fig. 3a) was repeatedly activated with increasing blue laser power. The time-dependent response curve shows a strong activation of this glomerulus already for the lowest power p1 = 0.02 mW (orange curve in Fig. 3b). An increase of the activation by exposure to higher powers seems to lead always to a similar jump of the signal; the total increase derives from the fact that previous stimulus activity persists. After p5 a saturation effect can be observed. The nearest neighbour glomerulus (blue curve in Fig. 3b) shows no activation for the lowest power p1, followed by a slow increase with increasing stimulus intensity until p4 when its response becomes comparable to the targeted glomerulus. An even clearer picture is drawn by a seeded cross-correlation map (Fig. 3c) that shows an extremely coherent signal within the stimulate glomerulus, with r ≈ 1 that abruptly drops to r ≈ 0 at the glomerular boundary, proving the activation is limited to a single glomerulus for stimulation with p1.

Figure 3
figure 3

Increasing power stimulation. (a) ROIs selection: glomerulus 1, orange ROI; glomerulus 2, blue ROI; the stimulation point in glomerulus 1 is marked by a red circle, scale bar 20 µm. (b) Temporal response profile averaged over each of the two ROIs during 10 stimulations with ascending blue laser power from p1 = 0.02 mW to p10 = 0.05 mW; black steps show the progressive increase in power for the different 10 stimulations. (c) Three examples of seed-based correlation maps with respect to the stimulation point for three stimulations powers p1, p3, and p5. The correlation between each pixel and the stimulated pixel (white circle) is shown as a colour code: the coherently activated area (red pixels) invades more glomeruli with increased stimulation power. The figure shows a single representative experiment.

When the activation power is increased, a progressive extension of activation to neighbouring glomeruli can be observed (Fig. 3c).

The results prove the possibility to activate single units of a neural network, in this case single glomeruli, by appropriate tuning of the stimulation power. Also did the use of the reported efficient sensors together with the right choice of imaging laser power avoid previously reported problems of re-excitation during the combined use of optogenetics and calcium imaging.

Elicited coupled oscillations

As an example of effects observed under single glomerulus stimulation that have not yet been reported under classical odour stimulation of the antennae, we would like to present the following deviation from the typical tonic responses limited to the stimulus period.

The example reports the activation of a single glomerulus (glomerulus 1 in Fig. 4a) which shows spontaneous activity before the stimulus. After the stimulation, this glomerulus maintains its oscillatory activity, although with slightly increased intensity. However, most interestingly, after the stimulation, other glomeruli start to respond in high synchrony to the targeted glomerulus (compare correlation matrices of Fig. 4b,c, respectively before and after the stimulation), partially with very high amplitudes that keep increasing until long after the stimulus (Fig. 4d). The synchrony of these oscillations is nicely visible in Supplementary Video S1.

Figure 4
figure 4

Oscillatory glomerulus stimulation. (a) Antennal lobe with ROIs on different glomeruli, and an activation point within glomerulus 1 marked by a red circle, scale bar 20 µm. Cross-correlation matrices in time windows of 10 s before (b) and after (c) the stimulation. The colour code shows the cross-correlations between responses of individual glomeruli: the stimulation of a single glomerulus, induces highly correlated activity across all recorded neighbours. (d) Temporal activity profiles before and after the 200 ms stimulation, the latter is marked by the red vertical line. All data stem from experiments in a single fly.

To investigate the dynamics of these oscillations more in detail, a time–frequency analysis of coherence was performed (Fig. 5). The example shows the coherence between the spontaneously oscillating glomerulus that was stimulated (glomerulus 1 in Fig. 4a) and its neighbouring glomerulus (ROI 2 in Fig. 4a).

Figure 5
figure 5

Time–frequency analysis of the elicited oscillations. Magnitude-squared wavelet coherence between the targeted glomerulus 1 and glomerulus 2 of Fig. 4a. Stimulus at the red vertical line; the white dashed line represents the cone of influence and the arrow directions indicate the phase shift between both signals. This shows how at 2 s after the stimulation an in-phase (horizontal arrows) coherence appears between 0.5 and 2 Hz (red box), suggesting that glomerulus 2 starts to fire in synchronicity with the targeted glomerulus 1, at that specific frequency.

The results suggest fluctuating coherences above 1 Hz with an arbitrarily fluctuating phase before the stimulus. After the stimulus, a new component comes up between 0.5 and 2 Hz where both signals are well in phase, manifested by the right-pointing vector, suggesting coherent oscillations around this frequency. This is the frequency band in which the collective oscillations are observed (Fig. 4d, Supplementary Video S1).

This shows the existence of coupling phenomena, which should be further quantified with the methods proposed here and then compared with current theoretical models of the antennal lobe to understand the exact mechanism behind it and to verify the completeness of these models55.

Discussion

In this work, we designed and implemented an all-optical approach to study the Drosophila olfactory system. It provides all the necessary tools to dissect this neuronal network, with applicability on different scales, from the entire brain to single network nodes.

To optimize neuronal activation and response detection efficiency, two of the best performing molecules (ChR2-XXL and GCaMP6) were used, which so far were rarely expressed in combination, given their spectral overlap.

The method was first tested at the scale of the entire brain while stimulating a small region within one single antennal lobe. The elicited response patterns were analysed by looking at the temporal correlations between the activity in different brain regions. The correlation amplitudes (Fig. 1b) confirm the well-known pathways of the olfactory information, i.e. information being directly forwarded by projection neurons into the ipsilateral mushroom body and lateral horn. This is reflected in the clearly increased correlations between ipsilateral AL and MB compared to that between AL and the contralateral MB. An important difference is visible in the homotopic connectivity: some correlations are present also between antennal lobes, although with smaller amplitudes. This confirms how in Drosophila56,57, differently from other insect species58, ORNs target also the homotopic glomerulus in the contralateral AL. The fact that in these regions the correlations are not as high as the ipsilateral ones with the MBs is likely due to the different local network structures created by modulatory interneurons that couple ipsilateral glomeruli. In honey bees, it was shown that also the antennal lobe output signals are therefore not fully bilaterally symmetric59. Contralateral correlations increase substantially between MBs, confirming the enhanced bilateral coupling of these neuropils60.

To reveal more details on these couplings, the system needed to be tested under increased spatial and temporal resolution. Experiments on targeting individual glomeruli demonstrated that the choice of laser power is the most crucial factor for the selectivity of glomerular stimulation (Fig. 3). With high spatial resolution and precise control of the activation laser power, a correlation measurement shows how to find an optimal threshold to elicit activation perfectly confined to the targeted glomerulus (Fig. 3c). At the same time, it showed how the massive coupling within each glomerulus produced perfect correlations across the glomerular area. The abrupt decay to zero at the glomerular boundaries is proving that the above mentioned spectral overlap between opsin and the calcium-sensor could be well controlled by keeping the two-photon laser intensity reasonably low. The unwanted re-excitation of the opsin during the imaging phase would have been visible as a background in the correlation analysis.

When the activation laser power was successively increased, the neuronal activation reached over into neighbouring glomeruli, likely due to the laser intensity surpassing the activation threshold in more and more neighbouring areas. Although this spillover has to be avoided in protocols targeting single glomeruli, there are also possible applications for it. It has been shown that glomeruli responsive to specific odours tend to cluster topographically; moreover, similar chemical classes of odours and even response profiles of odours with equal hedonic valence highly overlap61. It follows that, just by intensity tuning, a single optogenetic activation could produce activity patterns mimicking specific odours, broader odour classes, or even odour valence properties. This may also allow comparing the fundamentally different odour coding strategies of combinatorial coding versus single glomerulus labelled lines15,62 by directly transitioning between these patterns just by modulating the laser power. The required laser powers depend on various parameters, among those the sample staining, the imaging depth, the type and the position of the targeted glomeruli: thus, calibration needs to be performed before each experiment by the presented experimental scheme.

Besides measuring the static coupling between neural network nodes based on average response amplitudes, we showed that this setup allows accessing also dynamical features of this coupling. The presented example (Fig. 4 and Supplementary Video S1) showed how optical stimulation hardly changed the activity in a stimulated glomerulus that was already showing a spontaneous response, but at the same time caused a long-lasting coupling between this glomerulus and its neighbours. This highlights the potential of this approach for studying also the dynamical coupling under well-defined conditions, limiting the excitation to a single glomerulus. An odour stimulus would have likely activated several neighbouring glomeruli, thus overshadowing the effect. The phenomenon is likely caused by excitatory interneurons54 and represents a great opportunity to test current computational models of the antennal lobe to see if and under which conditions such effects can be reproduced55.

In summary, these proof-of-principle experiments show how optogenetics can be used as a powerful tool to study signal propagation and functional connectivity in the Drosophila olfactory system. It will be possible to reconstruct the functional connectome of different brain regions with odour-independent optogenetic stimulation of single network nodes. It allows, moreover, to follow the dynamics of information propagation from single, well-defined sources.

Methods

Drosophila lines

All fly lines used in this study were reared on standard cornmeal-agar medium with yeast, at 20 °C in 60% humidity-controlled chambers under 12 h light/dark cycles. The fly lines were obtained from the Bloomington Drosophila Stock Center: orco-GAL4 (#26,818); UAS-ChR2-XXL (#58,374); nSyb-LexA (#52,247); LexAop-GCaMP6m (#44,275).

The flies used in the experiments were obtained by combining both Gal4-UAS and LexA-LexAOP binary systems into one fly, simultaneously performing two manipulations of gene expression in vivo. In our tests we used 5 days old flies nSyb-LexA/UAS-ChR2-XXL; LexAop-GCaMP6m/orco-GAL4 which express the channelrhodopsin in olfactory sensory neurons and the calcium sensor in all the neurons of the brain.

Correct and precise expression of transgenes was checked by performing immunohistochemistry on dissected brains, following a standard protocol63 using primary antibodies specific to GCaMP (chicken anti-GFP, Thermo Fisher Scientific) and ChR (mouse anti-ChR2 supernatant 1:1, 15E2, mfd Diagnostics). Secondary antibodies were goat anti-chicken Alexa Fluor-488 and goat anti-mouse 1:250, respectively (Thermo Fisher Scientific). The expression levels in the fly brain are shown in Fig. 6. The opsin expression is limited to the antennal lobes (Fig. 6b, magenta in Fig. 6d, their schematic positions is shown in Fig. 6a), the calcium sensor is found in all neurons (Fig. 6c, green in Fig. 6d).

Figure 6
figure 6

Fly brain and molecules expression. (a) Scheme of the fly olfactory system. Odours are received by the odour receptor neurons (ORNs) at the level of the antennae. The activation is passed to the antennal lobes (ALs) and further to the mushroom bodies (MBs) and the lateral horns (LHs). (b–d) Images of a dissected and fixed fly brain, marked with anti-ChR2 (b, magenta) for ChR2-XXL identification and anti-GFP (c, green) for calcium sensor GCaMP identification. The opsin is expressed in the antennal lobes, GCaMP pan-neuronally. (d) is the merge of (b,c). Scale bar 100 µm.

Drosophila preparation

Sample preparation and drosophila brain exposure are adapted from a well-established procedure64,65.

  1. 1.

    Custom-made plexiglass mounting blocks (Fig. 7a) are used to allow easy mounting and dissection of the fly, blocking the animal by the neck. A copper disc (125 µm slot, Copper 3.05 mm, Agar Scientific) is glued and levelled on the block to create a “collar”, with the slit centred above the hole of the block. The flaps on both sides of the slit are folded down to stay close to the block surface. A thin wire (attached to a plastic U-shaped coverslip, across the top of the “U”; Fig. 7b) is used to push fly antennae.

  2. 2.

    Flies of the appropriate genotype are anaesthetized by cooling on ice, females are chosen for their bigger dimensions. Holding the fly by the wings, it is introduced into the mounting block by the neck and rotated until it is looking downwards. When the head is levelled with the top of the block, the fly is blocked with a cactus spine above the proboscis and a drop of glue (Super Attak, Loctite) on the sides of the head (Fig. 7c).

  3. 3.

    Fly antennae are pushed away from the head with the thin wire attached to the plastic U-shaped coverslip (Fig. 7d). This wire is inserted in the cuticular fold between head and antennae and the screws built into the mounting block are used to gently adjust the wire position.

  4. 4.

    An antennal shield composed of a circular slot in a not-sticky piece of tape surrounded by a plastic coverslip is placed on the top of the head. The slit has the same dimensions as the head, not extending beyond the eyes. This shield prevents the preparation from leaking, keeping the antennae completely dry (Fig. 7d).

  5. 5.

    The gap between the tape and the cuticle is sealed with two-component silicon (Kwik-Sil, WPI), in a thin layer; a drop of Drosophila Ringer’s solution (130 mM NaCl, 5 mM KCl, 2 mM MgCl2, 2 mM CaCl2, 36 mM saccharose, 5 mM HEPES, pH 7.3) is then placed on the head.

  6. 6.

    The head cuticle is cut using a sapphire blade (Single/Double Edge Lancet, 1.00 mm wide, angled 45°, WPI), carving along the borders of the eyes and across the ocelli on the back. After removing gently the piece of cuticle, glands and trachea are removed with fine forceps (Dumont Tweezers #5SF, 0.025 × 0.005 mm, WPI), and the fly’s brain is ready to be imaged.

Figure 7
figure 7

Drosophila preparation. (a) Schematic of the fly mounting setup. (b) Picture of the plexiglass mounting block, with the copper disc on the top. The insight shows the mounted wire that is used to position the antennae, attached to its plastic U-shaped support. (c) The fly is blocked with a cactus spine after being inserted in the copper disc by the neck. (d) The antennae are pushed by the wire (insight in b) and they are covered with a plastic shield.

Microscopy setup

Our optical setup consists of a two-photon microscope (Ultima IV, Bruker) combined with a femtosecond pulsed Ti:Sa laser (MaiTai DeepSee, Spectra-Physics), tunable between 690 and 1040 nm. The output power is controlled by a Pockels cell. Two-photon imaging of GCaMP worked best at a wavelength of 940 nm.

The beam is scanned in the plane by galvo-mirrors and in height by a fast piezo scanner (150 µm travel range) and a stepper motor (travel range of 25 mm), which move the water-immersion objective (20 × NA 1.0, Olympus). Fluorescence is separated by a dichroic beam-splitter (660 nm, ChromaTechnology), filtered by an IR-blocking filter (< 650 nm) and divided by a dichroic beam-splitter (575 nm) into two channels equipped with two different band-pass filters (607/45 nm and 525/70 nm, ChromaTechnology) and detected by multi-alkali PMT detectors (Hamamatsu). The complete setup is placed on an air-damped optical table (RS4000 Newport).

To stimulate the opsin, an additional diode laser emitting at 473 nm with a maximum output power of 100 mW (iBeam Smart 473 nm, Toptica Photonics) is overlapped with the imaging beam. In the experiment, the output power of the blue laser is always less than 0.05 mW and the stimulations are point-like, with a duration of 200 ms. All reported power values are measured over the entire beam after the objective. A notch filter (405/473–488/NIR m) blocks the blue light in the fluorescence detection arm. The blue laser spot dimensions (i.e. the limit for single point stimulation) are estimated by bleaching a homogeneous fluorescent sample (fluorescent marker pen on coverslip). The obtained point spread function doesn’t exceed 5 × 5 µm2 in the focal plane and has an extension of less than 20 µm along the axial direction. The activation scanning and the imaging beam are handled by the same galvo-mirror pair, switching within 1 ms between the continuous 2D line-by-line scanning during imaging and random access scanning of a series of predefined activation points. Moreover, an optional spiralling over these points can be set to increase the exposed areas. As a compromise between spatial and temporal resolution, the imaging experiments are performed using 128 × 128 pixels with a 5 Hz repetition rate. The microscope is controlled by the software PrairieView (Bruker).

In vivo imaging

Antennal lobe stimulation and olfactory pathway connectivity

We monitored the entire fly brain activity, in response to the stimulation of a single antennal lobe; activation was performed either within the left AL or within the right one (Fig. 1). The stimulation was a single-point blue-laser activation, with a power < 0.03 mW for a duration of 200 ms. Activity propagation was quantified via correlation analyses between different brain areas (see below for a detailed description of the analysis). All results were averaged over three stimulus repetitions.

Single glomerulus stimulation and power threshold

In a first experiment, three spots were stimulated consecutively, targeting two individual glomeruli and an area outside the AL. The sequence of stimulation was the following: glomerulus 1, 2, and a control point outside the AL, with a delay of 20 s between stimuli (Fig. 2). The stimulations were point-like, with a power p < 0.03 mW for a duration of 200 ms.

In a second experiment, a single glomerulus was repeatedly activated with increasing blue laser power (corresponding to powers ranging from p1 = 0.02 mW to p10 = 0.05 mW; Fig. 3). The response intensity was measured with high resolution in the surrounding of the glomerulus. Seeded cross-correlation maps were constructed to monitor the correlations of different AL areas with the activation point, at increasing power (see below for a detailed description of the analysis).

Elicited coupled oscillations

We activated a single glomerulus that was showing a spontaneous oscillatory activity before the stimulus (Fig. 4). The stimulation was point-like, with a power < 0.03 mW for a duration of 200 ms. A time–frequency analysis of the magnitude-squared coherence between the oscillatory signal of the targeted glomerulus and the surrounding ones was performed (Fig. 5,  details below).

Analysis of fluorescence activity and data correlation

Image processing and data analysis were performed using custom scripts in Matlab (R2019, MathWorks). Neuronal responses to stimulation are measured as the change in fluorescence \(F\) with respect to a baseline value \({F}_{0}\) (average fluorescence before stimulation). All response data are normalized with respect to this baseline to allow comparison between different samples and subjects:

$$\frac{\Delta F}{{F}_{0}}\left[\mathrm{\%}\right]=100\frac{F-{F}_{0}}{{F}_{0}}.$$

The data analysis includes correlation analyses that are based on Pearson’s correlation, the plotted correlation coefficients between two ROIs A, B in Figs. 1b and 4b,c or two pixels A, B in Fig. 3c are given by

$$\rho \left(A,B\right)= \frac{1}{N-1}\sum_{i=1}^{N}\left(\frac{{A}_{i}-{\mu }_{A}}{{\sigma }_{A}}\right)\left(\frac{{B}_{i}-{\mu }_{B}}{{\sigma }_{B}}\right),$$

were µ and σ indicate the mean and standard deviation of the measurements \({A}_{i}\) and \({B}_{i}\), respectively, at N time points. That was implemented via the Matlab function corrcoef.

To evaluate the responses in the time–frequency domain8, a wavelet coherence analysis is used, following the procedure described by Grinsted et al.66. It uses for the transformation into the frequency domain instead of a moving Fourier transform a convolution with complex Morlet wavelets of the form

$${\psi }_{0}\left(\eta \right)= {\pi }^{-1/4}\mathit{exp}\left(-\frac{1}{2}{\eta }^{2}\right) exp(i{\omega }_{0}\eta ),$$

which have gaussian envelopes in frequency and time, \({\omega }_{0}\) is dimensionless frequency and \(\eta\) is dimensionless time. Wavelets serve as bandpass filters to the time-series. They are stretched in time by varying the scale s in \(\eta =s\cdot t\) so that all wavelets contain the same number of cycles. We used \({\omega }_{0}\) = 5. For a time series of N points \({x}_{n}\) with timesteps \(\delta t\) the wavelet transform becomes

$$W_{n}^{X} \left( s \right) = \sqrt {\delta t/s} \mathop \sum \limits_{n^{\prime} = 1}^{N} x_{n^{\prime}} \psi_{0} \left[ {\left( {n^{\prime} - n} \right)\delta t/s} \right],$$

the wavelet power is \(\left| {W_{n}^{X} \left( s \right)^{2} } \right|\). The cross wavelet transform of two time-series \({x}_{n}\) and \({y}_{n}\) is \({W}^{XY}={W}^{X}{W}^{Y*}\). Highly correlated time-series exhibit high cross wavelet power \(\left|{W}^{XY}\right|\). Plotted in Fig. 5 is the magnitude squared cross-wavelet coherence:

$$R_{n}^{2} \left( s \right) = \frac{{\left| {S\left( {s^{ - 1} W_{n}^{XY} \left( s \right)} \right) } \right|^{2} }}{{S\left( {s^{ - 1} \left| {W_{n}^{X} \left( s \right)} \right|^{2} } \right) \cdot S\left( {s^{ - 1} \left| {W_{n}^{X} \left( s \right)} \right|^{2} } \right)}}$$

where \(S\) are smoothing operators in scale and time66. This function is available in Matlab via the command wcoherence. The plotted arrows represent the phase differences between the components of the two time-series. Their angles \({a}_{m}\) are obtained by circular means over single regions:

$${a}_{m}=\mathrm{arg}\left(X,Y\right) {\text{with}}\, X=\sum_{i=1}^{n}\mathrm{cos}\left({a}_{i}\right) , Y=\sum_{i=1}^{n}\mathrm{sin}\left({a}_{i}\right).$$

All the aforementioned analyses were implemented into a custom graphic user interface and are publically available (Supplementary Figs. S1S3).