Within this repository is the code used for analyze the data for the eLife manuscript entitled "Dorsal Periaqueductal gray ensembles represent approach and avoidance states," organized into folders by topic.
Miniscope videos were preprocessed/motion corrected using code available at https://github.com/daharoni/Miniscope_Analysis
Calcium activity extracted using code available at https://github.com/zhoupc/CNMF_E