This is a pipeline for converting dual-channel TEMPO microscopy recordings to dF/F movies with physiological and recording artifacts removed via convolution unmixing procedure.
This pipeline was tested in MATLAB 2019b, 2021b, and 2023a.
Add all folders (except pipelines) to MATLAB path. Add all dependencies to MATLAB path.
see dependencies_utils.txt
Inpaint_nans\inpaint_nans.m
NoRMCorre\dftregistration_min_max.m
For .dcimg to .h5 conversion, binary files dcimgmex.mexw64 / dcimgmatlab.mexw64, dct_readtimestamps.exe, and drives from Hamamatsu are required
Browse the example pipelines in pipelines folder.
pipelines\pipeline_preprocessing_2xmoco.m
Data preprocessing that includes independent motion correction of both channels and registration of the reference channel to the signal channel.
pipelines\pipeline_unmixing.m
Unmixing of physiological and recording artifacts. Decrosstalking, high-pass filtering, convolutional unmixing, and F0 normalization.
This processing pipeline is described in upcoming biorxiv link Haziza et al., 2024. The convolutional unmixing procedure was first introduced in a talk Kruzhilin et al., 2023. Please cite us if you use this pipeline in your own work.