You may need change the file path to match your configuration. 
For two-photon imaging data analysis, please follow the insturctions is in ./Dataset related to Li et al. 2020/two_photon_dataset_and_codes/codes/ Readme.rtf.
For wide-field imaging data analysis, please follow the insturctions is in ./Dataset related to Li et al. 2020/wide_field_dataset_and_codes/codes/ Readme.rtf.
The raw data acquired using wide-field imaging are particular large, so that I put them in a separate .zip file. You don't need it to generate all figures. If you are interested, please unzip them to the folder ./Dataset related to Li et al. 2020/wide_field_dataset_and_codes/dataset/AO2