Getting Started
This guide explains how to run each module using four demo video sessions from CaliAli/Demos, but the steps apply to your own data. The demo videos are pre-motion-corrected. Expected outputs and estimated runtimes are also covered.
Installation
First follow the CaliAli installation notes Installation and System Requirements
CaliAli Processing Steps Overview
This guide is based on 'Demo_pipeline.mlx'. Execute in the Matlab command windows open(Demo_pipeline)
to open the code.
How long it takes to process the Demo data?
Processing the demo data is expected to take approximately 5 minutes on a standard desktop computer. This includes the steps bellow:
In principle CaliAli operate in 5 steps:
Workflow:
sequenceDiagram
participant U as User
participant DS as CaliAli_downsample()
participant MC as CaliAli_motion_correction()
participant AT as CaliAli_align_sessions()
participant CN as CaliAli_cnmfe()
participant PP as Postprocessing
U->>DS: Select input video(s)
DS->>U: Downsampled .mat files output
U->>MC: Provide downsampled files for motion correction
MC->>U: Motion corrected video saved
U->>AT: Initiate inter-session alignment
AT->>U: Updated transformation parameters
U->>CN: Run CNMF‐e extraction on aligned videos
CN->>U: Neuronal components extracted and saved
U->>PP: Launch postprocessing for residual updates and manual review
PP->>U: Updated neuron data ready for further analysis
Schematic of the CaliAli pipeline for neuronal imaging analysis. The user (U) supplies raw videos to the downsampling module (DS), which are then motion-corrected (MC) and aligned (AT). CNMF-e extraction (CN) identifies neuronal components, and postprocessing (PP) refines and reviews these outputs. Arrows denote the flow of data and user interactions.
In principle, the entire CaliAli pipeline can be run on the demo data using just the following lines of code:
% Define CaliAli Parameters
CaliAli_options=CaliAli_demo_parameters(); % <-- Modify this function to analyze your own data.
% Do downsampling:
CaliAli_options=CaliAli_downsample(CaliAli_options);
% Do motion correction
CaliAli_options=CaliAli_motion_correction(CaliAli_options);
% Do Inter-session Alignment
CaliAli_align_sessions(CaliAli_options);
%Run Signal extraction from concatenated sessions
CaliAli_cnmfe()
Proceed to Setting CaliAli Parameters