prerequisite: your matlab has following toolbox:
- Curve fitting
- Signal Processing
- Statistics and Machine Learning
create your own copy of define_covariate_factor_idx for your project
User Manual:
-
clone the codes.
-
copy paste cc034 from here to the same folder as the code
-
unzip cc034-4_whisker.zip
-
run run_GLM_session
inputs in the codes are:
- 'directory/anm/session': directory for raw data
- ROI_list: leave it empty if you don't have specific neurons to cover, or in this format: {'neuron1','neuron2'}
- Project = 'CRACK';% find TODO Project and add your project and your define_covariate_factor_idx
- includeWhisker = 0; % 1 if you have whisker data
- coupling = 0; %1 if you want include coupling,(ref Dense functional and molecular readout of a circuit hub in sensory cortex)
- denoise = 1; %1 if your raw data has been preprocessed by the deepinterpolation
- plot_whiskers = 0;
- enhsup = 0; %only 1 if your data has a enhance suppression case, (ref Context dependent sensory processing across primary and secondary somatosensory cortex)