The experimental data for the findinds reported in the main figures of Barbosa & Stein et al. (2020) can be downloaded from Data (monkeys) from an OSF repository (human EEG), and from an OSF repository (human TMS).
We include here the Python codes that produce each of the main figures in this article. These custom scripts were developed for Python 2.7 (monkey data, human TMS data, and computational modeling) and for Python 3.7.4 (human EEG data).
Data folder constains raw or minimaly processed data.
If you need less preprocessed data, please contact Christos Constantinidis for 🐒 data or Heike Stein for 👧 EEG data.
Each figure folder contains 3 files:
This file loads preprocessed files from the preprocessed_data and generates the final figure. Statistics are usually done in this script, but might be done in a previous preprocessing state too (see below).
This folder contains all the preprocessed data used by the plot_figure.py file.
This folder contains all the scripts that generate preprocessed data from the raw data in Data/ folder. Preprocessed data is saved in the preprocessed_data folder.
This folder contains the model script that generates two consequetive trials and saves some of their details (eg. spike times, calcium variable).
If you have any questions, please write to the corresponding author Albert Compte ✉️, to Joao Barbosa ✉️ (monkey & TMS code), or Heike Stein ✉️ (human EEG code).