Dirigo: a future Python alternative to Scanimage?

Over the last 20 years, many microscopes that are capable of resonant scanning two-photon microscopy have converged on using ScanImage, a powerful software package with many strengths but also two downsides: First, it is no longer open-source, and second, it is written in Matlab, a framework that many scientists and developers now find less attractive compared with more flexible languages such as Python. But how exactly would we replace ScanImage if we could design a microscope control software from scratch?

Tim Weber has been working on these ideas. He has developed a framework called Dirigo that may serve as a modular, extensible backend for scientific image acquisition. One aspect of the design I particularly appreciate is its clean separation of responsibilities. Dirigo organizes its functionality into four independent “workers” – self-contained threads with a stop event and an inbox queue – which handle the core tasks of acquisition, processing, display, and logging. Based on my own experience building and rebuilding resonant-scanning microscope software (see my earlier blog post), this separation makes a great deal of sense. It not only creates components that can be flexibly combined, but also naturally distributes acquisition, computation, and visualization across threads. For anyone interested in online processing or closed-loop experiments, Dirigo’s structure looks like a very promising foundation.

If you’re curious and have a bit of time, take a look at the project on GitHub. Tim has also written a series of short posts on the Image.sc forum that go into the design in more detail:

  1. Designing Dirigo: a flexible, extensible backend for scientific image acquisition
  2. Demo & Pipeline
  3. Hardware extensibility: the digitizer interface for talking to DAQs cleanly
  4. Unit quantities
  5. Worker Products

I especially recommend posts #2 and #3. Post #2 includes a demo video and gives a clear explanation of how the worker model functions in practice. Post #3 digs into the digitizer interfaces, covering systems from National Instruments and Alazar to several boards I hadn’t encountered before but that look quite promising (and are also described in the GitHub README).

These and other hardware interfaces are a crucial part of any microscope control system, since they define how the software communicates with the acquisition hardware itself. If you’re interested in contributing – whether by adding wrappers for specific devices or by expressing interest in particular hardware interfaces – I am pretty sure that Tim would be very happy to hear from you!

Posted in Calcium Imaging, Imaging, Microscopy, neuroscience | Tagged , , , , | Leave a comment

Interesting papers on astrocyte ultrastructure and function

Astrocytes are brain cells that are often completely overlooked and dismissed or, in the opposite extreme, presented as mysterious devices that somehow solve all problems of computational neuroscience. The truth is somewhere in the middle, but it is not clear yet where exactly. First of all, we still do not understand even the basic mechanistic rules by which individual astrocytes operate. For neurons, we have precise, often even mathematical ideas how they receive input via synapses, how they depolarize, and how depolarizations propagate to the soma and elicit action potentials. For astrocytes, this mechanistic book of rules is still missing – and this gap limits our ability to interpret experiments or build coherent theories.

As part of the effort to close this gap, some of my own research focuses on how astrocytes respond to neuromodulatory input and how they process these responses through subcellular calcium signals (Rupprecht et al., 2024). These signals depend not only on passive propagation – somewhat analogous to passive dendritic spread in neurons – but also on the fine astrocytic morphology (branches, branchlets, leaflets/perisynaptic astrocytic processes, and endfeet) and on the subcellular organelles (endoplasmic reticulum and mitochondria) that shape calcium dynamics.

Below, I highlight a few recent studies that may advance our understanding of astrocytic structure and function, and illustrate both how far we have come and how far we still need to go.

Synapses are partially wrapped by astrocytic processes

A central concept in astrocyte biology is the “tripartite synapse”. This describes the idea that a neuronal synapse, consisting of a presynapse and a postsynapse, is wrapped by a third component (hence the “tri”), an astrocytic process, creating a microenvironment where the astrocytic process interacts with the synaptic partner for neuronal plasticity, neurotransmitter clearance and maybe other purposes. However, it was not clear how much of the synaptic landscape is actually “covered” by astrocytic processes.

A recent study by Nam et al. (2025) reported that over 85% of synapses in the dentate gyrus of hippocampus have an astrocytic process within 120 nm of some part of the synaptic perimeter. This study comes from the Harris lab, which is worth mentioning since Kristen Harris was one of the key researchers to establish the concept of the tripartite synapse (Ventura and Harris, 1999). Another recent study by Yener et al. (2025) from the Helmstaedter lab examined synaptic coverage in mouse somatosensory cortex. This is how the 3D reconstruction of a tripartite synapse looks like (taken from Figure 1 of Yener et al. (2025), under CC BY-NC-ND 4.0 license):

Using a stringent criterion (“≥50% of synaptic perimeter covered by astrocytic membrane within 40 nm”), they found that only ~23% of synapses were wrapped by PAPs. At first glance, this seems surprisingly low, first compared to the concept of tripartite synapses, and second compared to the study by Nam et al. (2025), who reported much higher coverages.

But when we look more closely, we can see that this number heavily depends on the definition of “wrapping.” When the authors relaxed the distance and coverage criteria (e.g., 20% coverage within 100 nm), the proportion increased dramatically – up to ~78%, which would be again more consistent with the study by Nam et al. (2025). Yener et al. (2025) also provide this nice plot below to make these relationships transparent (taken from Figure 1 of Yener et al. (2025), under CC BY-NC-ND 4.0 license):

Therefore, the datasets are relatively consistent; what differs is how authors interpret which distances and coverage percentages are biologically meaningful – and this is an important point. Structural metrics are only interpretable in the context of hypotheses about how astrocytes interact with synapses and what temporal precision is required for that interaction.

On that note, it is interesting to see that both Yener et al. (2025) and Nam et al. (2025) relate their structural findings to synaptic plasticity. However, they use very different methods to infer or generate synaptic plasticity – using LTP and LTD protocols in slices by Nam et al. (2025), and co-variances of spine sizes by Yener et al. (2025), a method that was – interesting coincidence – partially established by Bartol et al. (2015), which was a collaboration where Kristen Harris’ lab contributed the experimental part. Back to Yener et al. (2025) and Nam et al. (2025): The results from the two approaches about synaptic coverage as a function of LTD vs. LTP are, unfortunately, not really consistent, and there are too many possible reasons for the differences to be worth discussing. It will in any case require additional future work to get a clear picture.

Multiple astrocytic processes combine to wrap multiple synapses

A study that challenges our textbook view of astrocyte-synapse interactions is by Benoit et al. (2025) from the labs of Karin Pernet-Gallay and Andrea Volterra. This study directly questions the concept of the “tripartite synapse” – where the idea is that a functional unit is formed by one presynaptic terminal, one postsynaptic terminal, and one astrocytic process wrapping around.

Astrocytes form small processes (10-20 nm) that are called “leaflets” or, when wrapping around neuronal synapses, “perisynaptic astrocytic processes (PAPs)”. These astrocytic processes are too small to be resolved by light microscopy but can be identified by electron microscopy. Benoit et al. use large-volume electron microscopy to demonstrate that the smallest astrocytic processes (leaflets/PAPs) do not primarily wrap individual synapses but instead form multi-leaflet networks that, connected via gap junctions, ensheath groups of 1–20 synapses. This is a very interesting finding that might change how we think about ensembles of synapses and how they may be controlled as a group of synapses by mediation of this shared ensheathing by a common leaflet, forming – as the authors put it – a “tripartite synaptic network”. Here is an example from their paper which nicely illustrates the idea – even though the choice of colors is one of the worst I have ever seen for color-blind people like me, with leaflets in green, axonal boutons in yellow, spine in orange and synaptic cleft in red (from Figure 2 of Benoit et al., 2025, under the CC BY 4.0 license):

With their analysis, they also add a data point to the question of “astrocytic coverage” discussed above. Consistent with the interpretation of Yener et al. (2025), they find low coverage of synapses by individual leaflets – however, they find that the majority of synapses receives a larger “astrocytic coverage” by a larger ensheathing by multiple leaflets.

Benoit et al. (2025) go one step further, attempting to image functional signals in leaflets vs. calcium signals in other processes of astrocytes. Because leaflets are too small to resolve with standard in vivo imaging, the authors used a creative indirect approach. Since mitochondria are absent from leaflets but present in larger astrocytic processes, they image mitochondrial markers in a secondary channel and can thus infer which calcium signals originated from leaflet vs. non-leaflet regions. This approach, of course, cannot deliver the same precision as electron microscopy, but is a very interesting tool to functionally dissect subcellular structures in astrocytes. For more details, check out the paper – it is worth it.

Astrocytes as mediators of neuromodulatory feedback

A final recent study I would like to mention is by Xin et al. (2025) from the lab of Hailan Hu. It is not about ultrastructural properties but about the function of astrocytes in brain-wide circuits. Hailan Hu’s lab is well-known for their expertise on the lateral habenula and its role in depression. Here, they pull off an impressive array of experiments (fiber photometry, pharmacological and genetic perturbations of cell types or signaling pathways, behavior, etc.) that could have easily been several distinct and interesting papers.

Their main observation is that the lateral habenula (LHb) is activated (based on fiber photometry) before many other brain regions during stress. This activity in turn switches on the locus coeruleus (LC), which is known to project to a large part of the brain including cortex and hippocampus – where I have studied its long-range effects on astrocytes (Rupprecht et al., 2024), and where slice work indicates that these activated astrocytes release ATP/adenosine and thereby inhibit neurons in CA1 (Lefton et al., 2025). But LC also projects back to LHb, where it also activates astrocytes. Interestingly, Xin et al. (2025) observe that these astrocytes not only release adenosine but also glutamate, which results in a net activation of LHb neurons in a second wave. This claim is, however, not as solidly supported by the data as it appears at first glance: In Figure 4k (which I cannot show here due to copyright restrictions), Xin et al. (2025) test multiple antagonists against glutamate receptors, adenosine receptors, GABA receptors, etc. They see a small reduction after superfusing the antagonist, which is, however, only significant for glutamate, ATP-R and A2AR antagonists. Each of those experiments is done with 2-3 slices, but they perform statistics based on single cells. Of course, one would expect batch effects between slices, and the actual power of the experiment is much lower than reported. This is a common fallacy that can be seen in most papers. The proper way to deal with this statistical problem would be to use hierarchical statistics, for example based on linear mixed-effect models.

Despite these minor concers, I still find it a very interesting study, full of many advanced technical approaches. Personally, I would have preferred to go in much more depth for individual experiments with more detailed analyses. As they are, many results are only minimally discussed (due to space constraints). They nicely act as puzzle pieces within the bigger story. But they are not dicussed – and with “discussed”, I mean “analyzed” – beyond this limited horizon of interest. To give an example, Xin et al. (2025) use complex behaviors such as foot shocks to elicit stress responses; but it would have been interesting to simultaneously monitor motor and other behavior to better relate the temporal components of the neuronal responses to what is going on with the animal. But I can understand why it also makes sense to condense this massive amount of diverse experiments into a single paper in order to highlight the story and the main finding. In any case, if you work on astrocytes or locus coeruleus, this is a must-read.

References

Bartol, T.M., Bromer, C., Kinney, J., Chirillo, M.A., Bourne, J.N., Harris, K.M., Sejnowski, T.J., 2015. Nanoconnectomic upper bound on the variability of synaptic plasticity. eLife 4, e10778. https://doi.org/10.7554/eLife.10778

Benoit, L., Hristovska, I., Liaudet, N., Jouneau, P.-H., Fertin, A., De Ceglia, R., Litvin, D.G., Di Castro, M.A., Jevtic, M., Zalachoras, I., Kikuchi, T., Telley, L., Bergami, M., Usson, Y., Hisatsune, C., Mikoshiba, K., Pernet-Gallay, K., Volterra, A., 2025. Astrocytes functionally integrate multiple synapses via specialized leaflet domains. Cell 188, 6453-6472.e16. https://doi.org/10.1016/j.cell.2025.08.036

Lefton, K.B., Wu, Y., Dai, Y., Okuda, T., Zhang, Y., Yen, A., Rurak, G.M., Walsh, S., Manno, R., Myagmar, B.-E., Dougherty, J.D., Samineni, V.K., Simpson, P.C., Papouin, T., 2025. Norepinephrine signals through astrocytes to modulate synapses. Science 388, 776–783. https://doi.org/10.1126/science.adq5480

Nam, A.J., Kuwajima, M., Parker, P.H., Bowden, J.B., Abraham, W.C., Harris, K.M., 2025. Perisynaptic Astroglial Response to In Vivo Long-Term Potentiation and Concurrent Long-Term Depression in the Hippocampal Dentate Gyrus. J. Neurosci. 45, e0943252025. https://doi.org/10.1523/JNEUROSCI.0943-25.2025

Rupprecht, P., Duss, S.N., Becker, D., Lewis, C.M., Bohacek, J., Helmchen, F., 2024. Centripetal integration of past events in hippocampal astrocytes regulated by locus coeruleus. Nat Neurosci 27, 927–939. https://doi.org/10.1038/s41593-024-01612-8

Ventura, R., Harris, K.M., 1999. Three-Dimensional Relationships between Hippocampal Synapses and Astrocytes. J. Neurosci. 19, 6897–6906. https://doi.org/10.1523/JNEUROSCI.19-16-06897.1999

Xin, Q., Wang, J., Zheng, J., Tan, Y., Jia, X., Ni, Z., Xu, Z., Feng, J., Wu, Z., Li, Y., Li, X.-M., Ma, H., Hu, H., 2025. Neuron-astrocyte coupling in lateral habenula mediates depressive-like behaviors. Cell 188, 3291-3309.e24. https://doi.org/10.1016/j.cell.2025.04.010

Yener, Y., Motta, A., Helmstaedter, M., 2025. Connectomic analysis of astrocyte-synapse interactions in the cerebral cortex. https://doi.org/10.1101/2025.02.20.639274

Posted in Astrocytes, Calcium Imaging, Data analysis, Microscopy, neuroscience, Reviews | Tagged , , , | Leave a comment

I never meant to study the brainstem

I was recently invited to contribute a guest post on Substack by Vijay Iyer – some years ago one of the main developers of ScanImage in the lab of Karel Svoboda, and more recently a strong advocate for ME/CFS awareness and for communication pathways between brain and body. Earlier this year, we had a series of conversations about circuit neuroscience and the potential of dissecting brainstem circuits. Here’s my write-up on substack, where I describe why I believe that brainstem nuclei may be ideal targets for brain-interfaces, in particular when interfacing (indirectly) with astrocytes: I never meant to study the brainstem.

Posted in Astrocytes, Brain machine interface, Calcium Imaging, hippocampus, Locus coeruleus, Microscopy, writing | Tagged , , , , , , , | Leave a comment

Displaying the hippocampus as EM image on the office wall

One of the most amazing methods in modern neuroscience is dense volumetric electron microscopy of the brain. I have mentioned some openly accessible datasets before (see my previous blog post), but many additional datasets have been released since then – most prominently from drosophila, but also from zebra finch, zebrafish, mouse, and even the human brain.

My own research in the lab is primarily focused on the hippocampus, so I am always specifically curious about hippocampal datasets. There’s a relatively old one by Bloss et al. (2018) obtained from mouse hippocampus. However, when I saw a new hippocampal dataset published earlier this year, I was quite intrigued. This new dataset, described by Corteze et al. (2025) in a preprint from Helene Schmidt‘s lab in Frankfurt, was acquired in “coronal” slices, resembling how the rodent hippocampus (or at least dorsal CA1) is often visualized in standard histology. This acquisition modality clearly reveals the hippocampal layers, making it easy to navigate, even for non-experts not familiar with electron microscopy data. You can browse the dataset just by clicking for example on this link: https://wklink.org/7023

The layering of the hippocampus that can be seen in these images is really beautiful (see picture below). At the top, you see the myelinated axons of the corpus callosum, then the small dendrites of the stratum oriens, then the dense layer of pyramidal neurons’ cell bodies. Going further, you can clearly trace the huge apical dendrites of pyramidal cells – if you ever wondered why apical dendrites are visible even under regular light microscopy while smaller dendrites are not, here is your answer. What a beautiful layering; and how difficult to visualize without extensive scrolling!

Derived from the dataset published by Corteze et al. (2025), downloaded from the server using a custom-written script which you can find on GitHub.

Unfortunately, all the fine details like small dendrites, axon myelin sheaths or mitochondria are barely visible when you zoom out on a normal screen; and the overall architecture of the hippocampus, in return, becomes hard to see when you zoom in. To visualize both scales, I decided to print out the hippocampal “column” and use it to decorate a small section of my office wall.

Downloading the data takes a bit of coding. A screen capture doesn’t work because the data browser adapts the resolution of the currently rendered view (using a multi-resolution pyramid data format). So, I wrote a small script (on GitHub) which downloads one single coronal imaging plane from the server to my own hard disk. (Downloading the whole dataset would be prohibitive due to its size.) Then I selected the hippocampal “column” that I wanted to have on my walls.

Next, I printed the hippocampal EM image as a poster – actually, it was three A0 posters to span the full height of my office, which is over 3 meters. To stabilize the posters, I glued them onto thin wooden panels bought from a local hardware store.

Next, I measured the boundaries of the surrounding walls and doors to make the panels fit into the shapes of walls, door, and ceiling. Stefan Giger and Martin Wieckhorst, who have access to a bench saw at the institute, kindly cut the panels to make them fit into the space. I covered the connecting edges where two panels met with black insulation tape, and used short nails to attach the panels to the walls.

For the next iteration, I would probably use a more expensive glossy print. However, overall I’m quite happy with the result. Here’s a glimpse of how the corpus callosum with its myelinated axons nicely fits the ceiling:

Posted in Data analysis, hippocampus, Imaging, Microscopy, Network analysis, neuroscience | Tagged , | 3 Comments

Interesting papers on the role of cell organelles of neuronal dendrites in calcium signaling

Many researchers, including myself, use calcium imaging to read out the activity of neurons in the living brain. This method relies on the fact an action potential – the “spike” of neuronal activity – opens voltage-gated calcium channels, transiently increasing the calcium concentration in the cell.

Calcium influx during action potentials, mediated by voltage-gated calcium channels. Left: Scheme of calcium-related processes in neurons. Right: Electrophysiological measurement of calcium current influx upon an action potential in the Calyx of Held. Figure with excerpts from Gerard et al. (1998) and Helmchen (2012).

However, calcium isn’t just an indicator of action potentials; it’s a seemingly universal signaling molecule used in most if not all living cells on Earth. In neurons, calcium concentration is also influenced by influx from cell organelles, in particular the endoplasmatic reticulum (ER, a loose web that is weaved through the cytoplasm) and the mitochondria (the “powerhouse” of the cell). These organelles are present not only in the cell body but also in its dendrites and axons. As an expert for calcium imaging (check out my latest work on calcium sensors) with a long-standing interest in dendrites, I thought it would make sense to have a glimpse into the current literature on calcium signals coming from neuronal cell organelles. Here are three papers from the last years that I selected to read more carefully – but I’m happy to receive pointers to additional ones that might be equally relevant!

Calcium signaling at junctions between plasma membrane and endoplasmic reticulum

This paper might be especially interesting for you if you are curious about the role of dendritic spines. In this impressive study, Benedetti et al. (2025) investigate the structural basis of a key player for calcium signaling in neuronal dendrites, the endoplasmic reticulum (ER). They use an amazing array of techniques, from super-resolution lattice light sheet microscopy, volumetric electron microscopy, dual-color calcium imaging in cytosol and ER, extensive pharmacology, to two-photon glutamate uncaging – there is something for almost everybody.

Their main finding is that the ER forms regular junctions with the plasma membrane, spaced by 1 μm, while the rest of the ER is floating in the cytosol like a weave (see figure excerpt below).

The ladder-like structure of the endoplasmic reticulum (ER, green) in cross-sections of dendrites, imaged with high-resolution volumetric electron microscopy (FIB-SEM). Excerpt of Figure 2 from the preprinted paper, under CC BY-NC-ND 4.0 license.

Benedetti et al. show that these junctions are also functionally relevant because they concentrate specific calcium channels and result in local activation of CaMKII. Maybe the most important aspect: The ER can reach into spine heads, and activation of single spines can propagate as calcium signal within the ER up to 20 μm along the dendrite. This observation is important since dendritic spines have often been speculated to be distinct compartments that are, by virtue of the high spine neck resistance, insulated from the neighboring dendritic compartment (that’s still a matter of debate). Here, Benedetti et al. show that the ER can bypass this insulation, not by electrotonic propagation but by calcium signaling.

In summary, a very beautiful paper – where spatially resolved cell biology meets neuroscience.

Suggested scheme of calcium signaling from a spine that propagates along the dendrite through the endoplasmic reticulum (ER) and activates calcium channels (Cav2.1, Cav2.2) locally at junctions of the ER with the plasma membrane. Excerpt of Figure 7 from the preprinted paper, under CC BY-NC-ND 4.0 license.

Cytosolic calcium signals couple only loosely to mitochondrial calcium in vivo

In this interesting work, Lin et al. (2019) study the relationship between cytosolic and mitochondrial calcium signals in the intact mouse brain. To this end, they use dual color-imaging with the green calcium indicator GCaMP expressed in mitochondria and the red-shifted indicator RCaMP in the cytosol.

Previous work from cultured neurons or slices had suggested that there is tight coupling between mitochondrial and cytosolic calcium transients, but these findings were based on artificial stimulation. Here, Lin et al. find a less reliable coupling, with only 3-10% of cytosolic transients being reflected in mitochondrial calcium signaling, with the fraction depending on the processing load of the respective cortical areas (visual or motor cortex). This loose coupling during natural conditions is interesting and also raises the question to which extent artificial stimulation – e.g., the glutamate uncaging experiments performed by Benedetti et al. – relates to physiological stimulation levels.

Lin et al. find a couple of variables to explain which events are coupled and which ones are not. Yet, they conclude that the coupling seems still quite random (“probabilistic”). However, they find that CamKII, a self-phosphorylating kinase also involved in neuronal plasticity, is necessary to enable such coupling.

Another interesting point: Lin et al. find that mitochondrial calcium signals are not limited to small compartments but are synchronized across separate mitochondrial compartments across >15 μm. Since these compartments are only connected by small “nano-tunnels” of the ER, it is likely that calcium signals do not propagate across mitochondrial compartments but are orchestrated by a hidden global factor that could not be clearly observed during this study.

Intracellular calcium release shapes plasticity and place cells in hippocampus

O’Hare et al. (2022) investigate how intracellular calcium release from organelles affects dendritic and calcium signals and plasticity in hippocampal neurons of awake mice.

The key method of this study is single-cell in vivo electroporation, which enables the targeted insertion of plasmids for 1) expression of a calcium indicator, 2) expression of an optogenetic actuator, and 3) activation of a conditional knockout in a single visually targeted pyramidal cell. This method is described in more detail in this recent paper by Gonzalez et al., 2025 from the same lab.

Single-cell, two-photon targeted in vivo electroporation to express the optogenetic activator bReaChes, the calcium indicator jGCaMP7b, and to induce the cell-specific deletion of a protein related to mitochondria-ER coupling. Excerpt of Figure 1 from the preprinted paper, under CC BY-NC-ND 4.0 license.

By genetically knocking out a gene responsible for ER-mitochondria coupling (Pdzd8), O’Hare et al. showed that the spatial extent of calcium signaling across the apical dendrites became more widespread (see figure excerpt below). This is a significant finding because extent of calcium signaling coupling between dendritic segments has been a long-standing question that is still not well-understood. This study shows that the functional coupling of intracellular organelles directly influences how calcium signals are compartmentalized within dendrites. In addition, the study demonstrates that this change of intradendritic spread of calcium signals is accompanied by functional plasticity (place cell properties; see the paper for details).

Knockout of the gene of interest increases the coupling length of calcium signals along the apical but not basal dendrite of hippocampal pyramidal neurons. Excerpt of Figure 4 from the preprinted paper, under CC BY-NC-ND 4.0 license.

Conclusion

In summary, these papers show an important part of neurons that is often completely forgotten by systems neuroscientists – the cellular biology. A reason why such results are ignored is that they are often obtained in cell cultures or similar artificial systems where the cell organelles and stimulation patterns can be quite different. Lin et al., for example, demonstrate that the tight coupling of mitochondrial to cytosolic calcium is not observed in vivo, underlining the importance of research done in vivo.

A second aspect why there are few such studies is their technical difficulty. Obtaining clean and interpretable signals from two different calcium indicators as done by Lin et al. is very challenging (but see Moret et al., 2025 for the promising development of the chemigenetic sensor HaloCaMP specifically for mitochondria and ER). Similarly, the in vivo electroporation technique by O’Hare et al. is definitely a highly challenging method that I haven’t seen used widely.

Another method where I see a lot of potential for future analyses of cell organelle function in neuronal dendrites is volumetric high-resolution electron microscopy. Existing datasets that are publicly available might contain important information about the interplay of endoplasmic reticulum, mitochondria, the plasma membrane, and the cytosol. Maybe we only need to ask the right question.

References

Benedetti, L., Fan, R., Weigel, A.V., Moore, A.S., Houlihan, P.R., Kittisopikul, M., Park, G., Petruncio, A., Hubbard, P.M., Pang, S., Xu, C.S., Hess, H.F., Saalfeld, S., Rangaraju, V., Clapham, D.E., De Camilli, P., Ryan, T.A., Lippincott-Schwartz, J., 2025. Periodic ER-plasma membrane junctions support long-range Ca2+ signal integration in dendrites. Cell 188, 484-500.e22. https://doi.org/10.1016/j.cell.2024.11.029

Gerard, J., Borst, G., Helmchen, F., 1998. Calcium influx during an action potential, in: Methods in Enzymology. Elsevier, pp. 352–371. https://doi.org/10.1016/S0076-6879(98)93023-3

Gonzalez, K.C., Noguchi, A., Zakka, G., Yong, H.C., Terada, S., Szoboszlay, M., O’Hare, J., Negrean, A., Geiller, T., Polleux, F., Losonczy, A., 2025. Visually guided in vivo single-cell electroporation for monitoring and manipulating mammalian hippocampal neurons. Nat Protoc 20, 1468–1484. https://doi.org/10.1038/s41596-024-01099-4

Helmchen, F., 2012. Calcium imaging, in: Brette, R., Destexhe, A. (Eds.), Handbook of Neural Activity Measurement. Cambridge University Press, pp. 362–409. https://doi.org/10.1017/CBO9780511979958.010

Lin, Y., Li, L.-L., Nie, W., Liu, X., Adler, A., Xiao, C., Lu, F., Wang, L., Han, H., Wang, X., Gan, W.-B., Cheng, H., 2019. Brain activity regulates loose coupling between mitochondrial and cytosolic Ca2+ transients. Nat Commun 10, 5277. https://doi.org/10.1038/s41467-019-13142-0

Moret, A., Farrants, H., Fan, R., Zingg, K., Gee, C.E., Oertner, T.G., Rangaraju, V., Schreiter, E.R., De Juan-Sanz, J., 2025. An expanded palette of bright and photostable organellar Ca2+ sensors. https://doi.org/10.1101/2025.01.10.632364

O’Hare, J.K., Gonzalez, K.C., Herrlinger, S.A., Hirabayashi, Y., Hewitt, V.L., Blockus, H., Szoboszlay, M., Rolotti, S.V., Geiller, T.C., Negrean, A., Chelur, V., Polleux, F., Losonczy, A., 2022. Compartment-specific tuning of dendritic feature selectivity by intracellular Ca2+ release. Science 375, eabm1670. https://doi.org/10.1126/science.abm1670

Posted in Calcium Imaging, Data analysis, hippocampus, Microscopy, neuroscience, Reviews | Tagged , | 2 Comments

Interesting papers on VIP interneurons in cortex and hippocampus

Interneurons are inhibitory neurons in the brain that are thought to shape the computations performed by principal cells. The effects of inhibition can be rather diverse, depending on which neurons – or which parts of a neuron (dendrites, soma, or the axon hillock) – are targeted. A particularly interesting inhibitory motif that is the disinhibitory motif, which depends on a specific interneuron type known as VIP neuron. VIP neurons primarily inhibit another interneuron type called SST neurons (also written as “‘SOM”), which in turn inhibits principal or pyramidal cells, often by targeting their dendrites. Therefore, activating VIP neurons releases pyramidal neurons from SST-mediated inhibition, possibly creating a window for plasticity and learning.

Unfortunately, both VIP and SST neurons are not homogeneous classes but consist of multiple subtypes which might also vary across cortical and neocortical areas. Below, I’ll highlight a few recent studies on VIP neurons that caught my attention. Let me know if you know others that are similarly interesting!

A role for hippocampal VIP neurons in place cell remapping

In this well-designed and easy-to-read paper, Neubrandt, Lenkey et al. (2025) from the Vervaeke lab investigate how VIP neurons in the hippocampus contribute to place cell remapping. Place cell remapping is a form of hippocampal plasticity where pyramidal cells change their spatial firing fields in response to environmental novelty.

Neubrandt, Lenkey et al. use optogentic tools to activate (ChrimsonR) and inactivate (ArchT) VIP neurons while performing calcium imaging of pyramidal neurons. They find that inactivation decreases remapping and activation increases remapping of pyramidal neurons. The effects are relatively subtle but seem convincing, and align with the idea that VIP neurons facilitate plasticity by disinhibiting pyramidal neurons.

Effect of activating or inactivating VIP neurons on pyramidal neuron patterns. From Neubrandt, Lenkey et al. (2025), under CC BY 4.0 license (Figure 2L).

The authors additionally analyze their data with respect to a specific plasticity rule in pyramidal cells termed behavioral timescale synaptic plasticity (covered before on this blog), which results in a more complex picture that is less straightforward to interpret. The authors conclude that in addition to VIP activity other factors (e.g., neuromodulatory input) may be necessary to induce remapping.

Overall, this study nicely shows how novelty activates VIP interneurons to help control plasticity in pyramidal neurons, presumably via SST neurons. Their findings are consistent with and extend previous results from Turi et al. (2019) that demonstrated a necessary role of VIP neurons for reward location learning in hippocampal place cells.

The subtypes of VIP neurons in neocortex

Dellal, Zurita et al. (2025) from Bernardo Rudy’s lab investigate subtypes of VIP neurons in neocortex (somatosensory cortex). They do so in a very systematic study with transgenic animal crossing strategies that enable identification of various subtypes. I really do not want to know how much work it was to cross and validate all these mouse lines! As a result, Dellal, Zurita et al. find four subtypes of VIP neurons.

The most distinctive feature of these subtypes is whether the protein CCK is expressed or not. CCK-negative VIP neurons and in particular CCK-negative CR-positive VIP neurons target mostly SST neurons, while CCK-positive VIP neurons target also pyramidal cells directly and are there not only disinhibitory but also inhibitory for pyramidal cells. It is interesting that very similar findings have been made earlier for hippocampal circuits, where two such subtypes of VIP neurons were found in the 1990s (Acsády et al., 1996; Gulyás et al., 1996).

Effect for VIP subtypes on different hippocampal neuron types. From Dellal, Zurita et al. (2025), under CC BY 4.0 license (Figure 4B).

With the increasingly refined functional classification of interneuron subtypes, it becomes more and more difficult to not get confused by the different classification approaches. Other studies (e.g., in Figure 7 by Geiller et al., 2020) used slightly different markers to delineate VIP subclasses, making it quite a puzzle to connect the dots between publications!

A detail that I found particularly interesting as somebody working on the noradrenergic system is the following finding: CR-positive VIP neurons, which target SST neurons but not pyramidal neurons, were not significantly activated by bath-applied noradrenaline (Fig. 6M,N); this is suprising because I would have expected noradrenalin to have a disinhibitory effect on the local circuit and therefore to act via VIP-CR interneurons – which does not seem to be the case. CCK-positive VIP cells as well as CCK-negative CR-negative VIP neurons (the fourth class found by the authors) were, however, activated by noradrenaline. So maybe all the disinibitory action through noradrenaline goes through CCK-negative CR-negative neurons? This definitely needs more follow-up experiments. I would be very curious to see these same experiments done in hippocampus …

Response of VIP subtypes towards bath-application of noradrenaline. From Dellal, Zurita et al. (2025), under CC BY 4.0 license (Figure 6M,N).

The main take-away from this paper is quite clear: perturbations of VIP neurons using transgenic VIP lines do affect multiple subtypes with partially opposing signature, with both disinhibitory effects (via CCK-negative interneurons) and inhibitory effects directly on pyramidal cells (via CCK-positive interneurons). This confound from using VIP transgenic lines is also discussed by the above study of Neubrandt, Lenkey et al., (2025). Targeting interneurons more specifically seems essential for future studies to manipulate or replicate the disinhibitory effect of (a subset of) VIP neurons, in neocortex as well as in hippocampus.

Hippocampal interneurons with all-optical methods

In an beautiful technical achievement, Yang et al. (2025) from Yoav Adam’s lab provide a systematic study of the functional characteristics of different neuron types in hippocampus (principal cells, VIP, SST, PV). They combine 1P voltage imaging (with the voltage sensors somArchon1 and QuasAr6b) and optogenetic activation of the same neurons (somCheRiff) to both record and manipulate specific neurons in vivo. Pretty cool! I liked how they focused on recording from and perturbing only very few neurons at a time, but at a apparently high quality.

Voltage imaging from various cell types in mouse hippocampus in vivo. From Yang et al. (2025), under CC BY 4.0 license (Figure 1C).

To describe these results, the authors analyze how optogenetic depolarization as well as state (walking vs. quiet) influences several cellular characteristics: the response to input, the amplitude of theta oscillations, and – for pyramidal neurons – the bursting propensity.

In a second step, Yang et al. use modeling to better interpret these descriptive findings. These single-cell conductance-based models are interesting to consider and consistent with the experimental results. However, I believe that the data itself and its pure description remain the strongest part of the paper. Such a dataset with voltage recordings and perturbations of several cell types in hippocampus would have been difficult to imagine just 10 or 15 years ago. I sincerely hope that the dataset will be curated and shared openly during the publication process!

References

Acsády, L., Görcs, T.J., Freund, T.F., 1996. Different populations of vasoactive intestinal polypeptide-immunoreactive interneurons are specialized to control pyramidal cells or interneurons in the hippocampus. Neuroscience 73, 317–334. https://doi.org/10.1016/0306-4522(95)00609-5

Dellal, S., Zurita, H., Kruglikov, I., Valero, M., Abad-Perez, P., Geron, E., Meng, J.H., Prönneke, A., Hanson, J.L., Mir, E., Ongaro, M., Wang, X.-J., Buzsáki, G., Machold, R., Rudy, B., 2025. Inhibitory and disinhibitory VIP IN-mediated circuits in neocortex. https://doi.org/10.1101/2025.02.26.640383

Geiller, T., Vancura, B., Terada, S., Troullinou, E., Chavlis, S., Tsagkatakis, G., Tsakalides, P., Ócsai, K., Poirazi, P., Rózsa, B.J., Losonczy, A., 2020. Large-Scale 3D Two-Photon Imaging of Molecularly Identified CA1 Interneuron Dynamics in Behaving Mice. Neuron 108, 968-983.e9. https://doi.org/10.1016/j.neuron.2020.09.013

Gulyás, A.I., Hájos, N., Freund, T.F., 1996. Interneurons Containing Calretinin Are Specialized to Control Other Interneurons in the Rat Hippocampus. J. Neurosci. 16, 3397–3411. https://doi.org/10.1523/JNEUROSCI.16-10-03397.1996

Neubrandt, M., Lenkey, N., Vervaeke, K., 2025. VIP interneurons control hippocampal place cell remapping through transient disinhibition in novel environments. https://doi.org/10.1101/2025.02.01.636072

Turi, G.F., Li, W.-K., Chavlis, S., Pandi, I., O’Hare, J., Priestley, J.B., Grosmark, A.D., Liao, Z., Ladow, M., Zhang, J.F., Zemelman, B.V., Poirazi, P., Losonczy, A., 2019. Vasoactive Intestinal Polypeptide-Expressing Interneurons in the Hippocampus Support Goal-Oriented Spatial Learning. Neuron 101, 1150-1165.e8. https://doi.org/10.1016/j.neuron.2019.01.009

Yang, Q., Baror-Sebban, S., Kipper, R., London, M., Adam, Y., 2025. All-optical electrophysiology reveals behavior-dependent dynamics of excitation and inhibition in the hippocampus. https://doi.org/10.1101/2025.03.20.644347

Posted in Calcium Imaging, Data analysis, hippocampus, Imaging, Neuronal activity, neuroscience, Reviews | Tagged , | Leave a comment

Accurately computing noise levels for calcium imaging data

It is fascinating how much data quality can vary between different calcium imaging data sets. In this blog post, I will discuss a metric to quantify and compare data quality and in particular shot noise between calcium imaging datasets.

This variation of data quality depends on potential artifacts due to movement or instrument noise, the frame rate of the microscope, and the flux of fluorescence photons. The photon flux determines the shot noise level for each neuron and therefore whether calcium transients due to action potentials can be detected from the recording. Photon flux depends on factors such as neuron size (in pixels), indicator expression levels, and baseline brightness. As a result, it varies not only between recordings but also across neurons within the same session.


Two example ΔF/F traces from neurons of high (“8”) and low (“2”) standardized noise levels. Examples taken and modified from Rupprecht et al. (2025), under CC BY 4.0 license.

In our 2021 study on spike inference from calcium imaging data with CASCADE (Rupprecht et al., 2021), we took advantage of the fact that the slow calcium signal is typically very similar between adjacent frames. Therefore, the noise level can be approximated by

\nu  = \frac{Median_t \mid \Delta F/F_{t+1} - \Delta F/F_t \mid}{\sqrt{f_r}}

The median excludes outliers due to fast onset dynamics of calcium signals. Normalization by the square root of the frame rate f_r makes the metric comparable across datasets with different frame rates. (I have discussed the application of this metric to various datasets in an earlier blog post.)

However, this metric is to some degree biased, as it assumes the ideal scenario of zero neuron activity. In the presence of neuronal activity, however, the ups and downs of calcium transients will increase the apparent noise level systematically. Recently, David Hildebrand brought up this issue, and I decided to look into it more carefully.

I used ground-truth spike patterns from electrophysiological recordings of cortical pyramidal neurons (mouse visual cortex, see Fig.2 Suppl.1), convolved them with a linear calcium kernel, and added Gaussian noise of known magnitude. Then, I quantified how precisely \nu was able to recover the true noise value.

First, the metric generally overestimated the true noise level by about 20%. This overestimation was largely independent of the noise level but slightly increased for lower noise level. This makes sense: the relative effect of the same amount of a fixed level of neuronal activity is greater when the baseline noise is zero. However, the overall effect was relatively small – 20% is not dramatic for such a coarse metric:

Second, for low frame rates, the overestimation became more substantial, reaching up to 50% on average for a frame rate of 1-2 Hz. This is a significant bias that should be kept in mind. If you use the metric \nu to quantitatively compare between recordings of different frame rates. it may be good to correct for this bias. In most other cases, this effect is likely negligible:

Finally, the overestimation also depended on the true spike rate of the respective recording. In the plot below, each point represents the quantification derived from the ground truth recording of an individual neuron with a its specific spike rate. As one would expect, the overestimation of noise levels is minimial for neurons that are almost silent, and grows almost linearly with the true spike rate:

Altogether, I still believe that the standardized noise level \nu is a very useful (and probably under-used) metric to compare data quality across recordings. The above analyses provide context that should ideally be considered for quantitative comparisons – by quantifying how much the metric is affected by noise level, frame rate and individual spike rate.

Posted in Calcium Imaging, Data analysis, electrophysiology, Imaging, machine learning, Neuronal activity, neuroscience | Tagged , , , , | Leave a comment

Open PhD position in my research group

Are you a finishing Master’s student with a quantitative background and are interested in neuroscience? This is your opportunity.

Project: You will be supervised by Dr. Peter Rupprecht and Prof. Fritjof Helmchen at the Brain Research Institute, University of Zurich. The project will be to study animal behavior in mice (left) together with the dynamics of subcellular calcium signals in neurons and astrocytes (middle), and how they are controlled by axonal projections from the brainstem (right). The activation of astrocytes is important for arousal and stress and therefore also for stress-related disorders. You will study the biological principles underlying subcellular activation of astrocytes, building upon previous work (Rupprecht et al., Nat Neuro, 2024). In a second branch of the project, you will study the role of astrocytes for memory consolidation and neuronal oscillations in a joint project with an optics engineer in the lab. Of course, there will always be possibilities to adapt projects to your specific skills.

Scope: You will learn how to use high-end two-photon microscopes to image the activity of neurons and astrocytes in the brain of a living animal. You will analyse large datasets in Python and/or Matlab. You will build models of subcellular signal integration to explain your experiments. You will have the opportunity to become creative and develop new methods for data analysis or microscopy. You will receive direct guidance from an expert on new methods for calcium imaging and data analysis (Peter Rupprecht) and from an experienced and world-reknown professor of neuroscience (Fritjof Helmchen).

Requirements: You have a background in physics, biophysics, neuronal engineering, or another quantitative discipline, and you are interested in performing neurophysiological experiments as well as extensive analyses and modeling.

Application: Please send your application including a CV and your transcript of records to Peter Rupprecht (rupprecht [snailsymbol] hifo.uzh.ch). Please include a letter of motivation that covers the following aspects: What talents or previous experience of yours are possibly relevant to this project? If you have coding or experimental experience, what was your most challenging previous program or project so far?

Starting date: Anytime.

Posted in Calcium Imaging, Data analysis, hippocampus, Imaging, machine learning, Microscopy, Neuronal activity, neuroscience | Tagged , , , , , | Leave a comment

How to compute ΔF/F from calcium imaging data

Many neuroscientists use calcium imaging to record the activity from neurons (or other cells in the brain). The video below was recorded by Sian Duss and me in hippocampal CA1 pyramidal cells in mice.

To make calcium imaging traces comparable across cells and recordings, most researchers use a method called ΔF/F (“delta F over F”) to normalize the fluorescence traces. However, there are different ways to compute ΔF/F, and it is not always obvious how to choose the best method and how to interpret the result.

In a guest blog post for the Scientifica Resource Center, I summarized key suggestions and guidelines on how to compute ΔF/F and how to interpret the results, in particular for GCaMP calcium indicators: How to compute ΔF/F from calcium imaging data.

Let me know if you have any feedback on my suggestions and guidelines!

Posted in Calcium Imaging, Data analysis, hippocampus, Imaging, Microscopy, neuroscience | Tagged , | Leave a comment

Online spike inference with GCaMP8

Calcium imaging is used to record the activity of neurons in living animals. Often, these activity patterns are analyzed after the experiments to investigate how the brain works. Alternatively, it is also possible to extract the activity patterns in real time, decode them and control a device or computer with them. Such brain-computer-interface (BCI) or closed-loop paradigms have one important limiting factor: the delay between the neuronal activity and the control that this activity exerts over the device or computer.

For calcium imaging, this delay comprises the time to record the calcium images from the brain, but it is also limited by the slowness of calcium indicators. How are calcium indicators limiting such an online processing step in practice? And how is this limitation potentially mitigated by the family of GCaMP8 indicators, which have been shown to exhibit faster rise times than previous genetically indicators (<10 ms)?

We addressed this question using a supervised algorithm for spike inference (CASCADE), which extracts spiking information from calcium transients. We slightly redesigned the algorithm such that it only has access to a small fraction of the time after the time point of interest:

Spike inference using ony a few frames after the time point of interest (“Time after AP”). From Rupprecht et al, 2025, under CC BY 4.0 license (Figure 5c).

This modification of the algorithm was very simple since it is a simple 1D convolutional network, and we simply shifted the receptive field in time very slightly. The time defined in the scheme, which we call “integration time”, determines the delay for closed-loop application like BCI paradigms for calcium imaging. To achieve a very good performence in inferring the spiking activity from calcium signals, an integration time of 30-40 ms was required for GCaMP8 and 50-150 ms for GCaMP6.

Time after AP (see scheme above) to reach 90% of the maximal performance for spike inference. From Rupprecht et al, 2025, under CC BY 4.0 license (Figure 5d).

The CASCADE models trained for online spike inference are available online on our GitHub repository. The model names are starting with an “Online”, are listed as usual in this text file, and can be used as any other CASCADE models. For example, you can perform spike inference with your normal CASCADE model, and then perform the same spike inference with an “online” model, which will give you an impression how well the model performs. The only difference is that the “online” model takes only a few time points from the future, while the regular CASCADE model uses typically 32 time points from the future.

What does “a few time points” mean? Let’s look at a model’s name to break this down, for example the model Online_model_30Hz_integration_100ms_smoothing_25ms_GCaMP8. This model is trained for calcium imaging data acquired at 30 Hz with the calcium indicators GCaMP8 (the ground truth consisted of all GCaMP8 variants), with a smoothing of 25 ms. The crucial parameter is the integration time, here indicated as 100ms. This means that the model uses 100 ms from the future, which is 3 frames for the 30 Hz model.

If you are not sure which model to select for your application, or if you need another pretrained model for online spike inference, just drop me an email or open an issue for the GitHub repository.

For more details about the analysis and how the best choice of integration time for online spike inference depends on the noise levels of the calcium imaging recordings or potentially also other conditions such as calcium indicator induction methods or temperature, check out our recent preprint, where we also analyzed several other aspects of spike inference with a specific focus on GCaMP8: Spike inference from calcium imaging data acquired with GCaMP8 indicators.

Posted in Brain machine interface, Calcium Imaging, closed-loop, Data analysis, electrophysiology, Imaging, machine learning, neuroscience | Tagged , , , , , | Leave a comment