**Code and Data to Accompany Paper "Human sleep spindles track experimentally excited brain circuits"**
**Requirements:**
- FieldTrip-20240101
- ColorBrewer 3.2.5
- Matlab R2024
**Guide to Files and Scripts:**
\data:
- behavioral_data_table.csv --- Preprocessed table containing data of participant learning behavior
- participant_conditions.txt --- Text file containing codes of the stimulation conditions for each participant
- pre_post_sleep_behaviour_table.csv --- Table of pre and post sleep behaviour data
- so_metrics.csv --- Table of SO metrics, used for analyzing SO topography
- spindle_metrics.csv --- Table of spindle metrics, used for analyzing SO topography
- sub-02.rar and sub-03.rar --- Preprocessed EEG and event data in a fieldtrip format for two example participants. To examine the data, unpack the files and open in MATLAB.
\helper_files:
- helperfile_acticap_layout.mat --- Layout file with details of EEG cap for Fieldtrip topography analysis
- helperfile_acticap_neigbors.mat --- Neighbors file with details of EEG cap for Fieldtrip topography analysis
\analysis_scripts:
- Analysis scripts are labelled in the order they should be excecuted
- "beh_" are behaviour analysis and "eeg_" are EEG analysis