Custom code to compute centripetal propagation patterns (delay maps) from astrocytic calcium recordings using pixel-wise correlation functions.
This image shows mean fluorescence (left) and computed delay maps (right). Delays are positive close to astrocytic somata and negative far from somata (middle). These delay maps illustrate that astrocytic calcium signals propagate from distal processes to somatic compartments for individual astrocytes.
The code computes the delay with respect to a reference time trace for each pixel of a 3D movie. The reference time trace is generated by averaging across the entire field-of-view. This enables to extract typical spatio-temporal delays with respect to a mean time trace across the movie. It works best for either long or relatively noise-free movies. The details of the algorithm are described in Fig. 6 and the associated supplementary figures in this study published in 2024 in Nature Neuroscience.
-
The code includes extensive comments and should be mostly self-explanatory.
-
The code is not optimized for performance, in order to keep it as simple as possible. Parallelization is implemented for the Matlab but not for the Python version.
-
The scripts
Demo_analysis_Matlab.m
andDemo_analysis_Python.py
use a calcium imaging recording as a tif-file and produce a delay map as shown here. -
The code is provided as scripts in Matlab (tested with Matlab R2020b) and Python 3 (tested with various Python 3 versions) and with an example dataset (small 80x80 FOV excerpt covering a single astrocyte). The Python version requires the standard packages
numpy
,glob
,tifffile
,skimage
, andmatplotlib
for visualization. -
The small FOV excerpt was chosen to minimize the size of the Github repository. It is possible to run the code on much larger files.
-
Centripetal propagation requires either noise-less or rather long recordings. We denoised our recordings and used 10-20 min recordings. Patterns might however also be visible in short recordings, depending on the recorded calcium activity and behaviors.
-
Centripetal propagation requires behavioral events that lead to arousal, e.g., running episodes or negative valence-stimuli like air puffs.
-
Centripetal propagation requires neuromodulation as control factor. Centripetal propagation will normally not be observed under anesthesia or in slices.
-
We do not know whether astrocytes in brain regions other than hippocampus and cortex will also exhibit centripetal propagation.
If you use these scripts in its original or in a modified version, please cite the following publication as reference:
Rupprecht, P., Duss, S.N., Becker, D., Lewis, C. M., Bohacek, J., & Helmchen, F. Centripetal integration of past events by hippocampal astrocytes regulated by locus coeruleus. Nature Neuroscience, (2024). https://www.nature.com/articles/s41593-024-01612-8
Any questions should be addressed to Peter Rupprecht. Alternatively, file an issue on our Github page.