This repository contains code and notebooks for analyzing population-level neural activity in area 2 of the somatosensory cortex during active and passive movements. It accompanies the manuscript "Flexible integration of corollary discharge and sensory feedback signals in somatosensory cortex".
Standard python scientific libraries listed in the requirements.txt. Typical install time 5-10 minutes.
Clone the repository:
git clone https://github.com/glaserlab/area2_population_analysis
cd area2_population_analysis
pip install -r requirements.txtTypical install time 5-10 minutes.
After installation, run Example.ipynb for a demo on extracting corollary discharge and sensory feedback signals on a real data subset.
Expected output is provided in the notebook, with run time < 5 minutes.
Main script to recreate paper figures (area2_actpas_auto.ipynb) relies on source Neurodata Without Borders (.nwb) file format and is auto executed by papermill.ipynb. An example data subset is provided (/data/example.npz) for demo.