Skip to content

comptelab/RedundantPrefrontalHemispheres

 
 

Repository files navigation

Code accompanying the preprint:

This repository contains the code used to generate the main figures and supplementary analyses presented in the preprint. The code includes simulations, data analysis, and plotting routines.

Getting started:

To reproduce the results, we recommend using the environment provided in environment.yml. You can create the environment using:

conda env create --name <env-name> --file=environment.yml
conda activate <env-name>

The environment is compatible with both, data analysis and model simulations. (Installation time ~10 min.)

Demo-Data availability

The Demo-Data (example session) with all analysis run can be found here: https://drive.google.com/file/d/1IhDjsYeaPJ3Vtto3sO_bfINDxADJa-Hk/view?usp=sharing

  • Unzip the file
  • Move contents to your local ./Results folder
  • All monkey analyses can be run with the Demo-Data, though figures may change appearance (for Fig. 7, also download the human data (see below)).

Data availability

To reproduce the full figures (not just the example session), you can download the full data set (4GB) To download the data, go to:

Data preprocessing

The full monkey data is downloaded as Matlab-files. To combine these files into the here used data frames, run the scripts from the main folder:

  • read_MatFiles.py: transforms the individual files into one data frame and aligns the eye tracker.
  • create_sequentialDataframe.py: creates a behavioral dataframe from this information using only correct, sequential trials.

Repository structure and analyses:

  • Folders: Folders contain the available code to replicate each figure.
  • Jupyter notebooks: Notebooks replicate all panels of a figure. The notebooks create figures directly, using preprocessed data and simulation results. (running the notebooks on precomputed data should be fast <10 minutes)
  • Python scripts: Scripts contain more computationally expensive processing steps or simulations, which generate the results used for plotting. Therefore the scripts should typically be run before the jupyter notebooks. (Some analyses may take several hours on a standard computer)
  • Results: The Results folder is empty for now, fill it with files from the Demo-Data or run yourself.

Contact

If you have any questions, encounter issues, or would like to discuss the methods or paper, feel free to reach out via github or email (mel.tschiersch@gmail.com)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 97.0%
  • Python 3.0%