Physiological synchrony in EEG, electrodermal activity and heart rate reflects shared selective auditory attention
This repository contains the MATLAB scripts reproducing the results as presented in (Stuldreher et al., 2020). Please read carefully the information below. The presented analysis is dependent on lots of externally produced scripts, that are referred to here. For questions, please contact Ivo Stuldreher.
Reuse of the data and scripts is permitted under the CC-By Attribution 4.0 International license. Use is only allowed with a citation to (Stuldreher et al., 2020) in any publication.
The code in this repository is dependent on the following add-ons:
- The physiological data corresponding to this paper, that is publicly available through https://osf.io/8kh36/ under the name "data - BioSemi ActiveTwo II". The data files should be put in the directory 'data'. Note: you should not put this data in the pre-assigned folders 'eeg_processed' or 'aut_processed'.
- EEGLAB toolbox (https://sccn.ucsd.edu/eeglab/index.php)
- MARA plugin for EEGLAB
- Ledalab toolbox (http://www.ledalab.de)
- corrca.m from the Correlated Component Analysis package (https://www.parralab.org/corrca/) We here adapted this code to be compatible with Not a Number (NaN) instance, by changing 'cov' with 'nancov' functions and 'mean' with 'nanmean' functions.
- sigstar.m (https://nl.mathworks.com/matlabcentral/fileexchange/39696-raacampbell-sigstar)
- Pan-Tompkin algorithm (for instance: https://nl.mathworks.com/matlabcentral/fileexchange/45840-complete-pan-tompkins-implementation-ecg-qrs-detector)
- fdr_bh.m (https://nl.mathworks.com/matlabcentral/fileexchange/27418-fdr_bh)
- swtest.m (https://nl.mathworks.com/matlabcentral/fileexchange/13964-shapiro-wilk-and-shapiro-francia-normality-tests)
Stuldreher, I.V., Thammasan, N., Van Erp, J.B.F., Brouwer, A.M. (2020). Journal of Neural Engineering 17 046028 doi:10.1088/1741-2552/aba87d