Data analysis for Gauthey et al. 2025 [1]. This repository contains the code to reproduce the figures in [1] and a signal extraction pipeline. The raw data for a representative trial can be found at https://doi.org/10.5281/zenodo.17613016 and the preprocessed data can be found at https://doi.org/10.5281/zenodo.17618684. Both can also be found at https://doi.org/10.34770/s5hx-1x75.
To run the analysis code you will need scipy, numpy, pandas, scikit-learn. For the signal extraction pipeline you will need ANTsPy (https://github.com/ANTsX/ANTsPy.git). For visualizing ROIs on slices you will need the packages included in roi_plotting_requirements.txt.
To run the signal extraction pipeline you need to follow these steps:
- Run Sliding_window.m on raw TIFF files to have the data in the right ordering
- Run batch_tiff_to_dff_mean_brain_RigE.sh to create a mean brain
- Run batch_tiff_to_dff_mc_RigE.sh to compute motion correction
- Run batch_tiff_to_dff_concat_RigE.sh
- Run batch_signal_to_supervoxel_roi_RigE.sh to extract signal
[1] Gauthey W., Lin A., Ahmed O.M., Leifer A.M., Murthy M., Thiberge S.Y., 2025 (https://www.biorxiv.org/content/10.1101/2025.06.18.660371v1)
Albert Lin, Wayan Gauthey, Sama Ahmed