This repository contains the MATLAB scripts as well as the raw data used to analyze behavioral and calcium imaging data in the following paper:
Yuan, W, Zhang, XQ, Xin, Q, et.al., "Flexible Motor Sequence Generation during Stereotyped Escape Responses" eLife, June 5, 2020.
The code is written by Qi Xin with the help from Xiaoqian Zhang and Yuan Wang.