"P300 is generated by alpha rhythm" accompanying code
p_compute_bsi.py - pipline for computation of baseline-shift indices (BSI) in sensor space. This pipeline generates data derrivatives for figs. 3, 4, S4a.
p_compute_bsi_in_source_space.py - pipline for computation of baseline-shift indices (BSI) in source space. This pipeline generates data derrivatives for figs. 7, S4b.
p_read_erp_alpha_save.py - pipline for computation of saving ERs, alpha envelopes, and their trial-by-trial correlation in sensor space. This pipeline generates data derrivatives for figs. 1, 2, S3.
p_save_covariance_apply_csp.py - pipeline for computation of covariance matries and CSP filter and pattern. This pipeline generates data derrivatives for figs. 8a, 8c.
p_source_reconstruction.py - pipline for computation of saving ERs, alpha envelopes, and their trial-by-trial correlation in source space. This pipeline generates data derrivatives for figs. 5, 6.
plot_simulated.py - pipeline for plotting using simulated data (without statistical assessment)
plots.py - pipeline for plotting fig. 1-8
simulations_figs.py - simulates non-zero mean oscillations for figure in Introduction and Methods section, and in Supplementary file
tools_external.py - functions from other researchers
tools_general.py - functions for loading and saving files, and some statistics
tools_lifedataset.py - functions for handling LIFE data
tools_plotting.py - functions for plotting
tools_signal.py - functions for signal processing and data processing
Anonymized data will be made available upon request through the application procedure carried out by the LIFE-Study administration (https://www.uniklinikum-leipzig.de/einrichtungen/life).
Simulated data of two participants can be downloaded from https://osf.io/ak5de/.
To run pipelines using simulated data, the directories should be adjusted in settings/dir_files.