Set of functions and scripts to process the data used in the submission: "Distributed context-dependent choice information in mouse posterior cortex"
- MATLAB R2020 or after
- For locaNMF (based on pyTorch). See: https://github.com/ikinsella/locaNMF
- For the RNN (standard tensorflow2 installation with GPU support)
main.mis used to prepare already preprocessed imaging and behavioral data from Attention separates sensory and motor signals in the mouse visual cortexrunLocaNMF.ipynb- Python notebook to run locaNMF (after main.m)locaNMFplots.m- Produce output plots from locaNMF statisticscomputeStateVectors.m- main state vector computation used in the manuscriptplotStateVectors.m- several plots related to the state vectorsRNNmodel.py- generates synthetic data following the animals psychometric responses and trains the RNNs used in the manuscriptfiguresfolder contains .mat files and .m scripts to generate most of the figures presented in the paper