Skip to main content
. 2018 Sep 11;12:586. doi: 10.3389/fnins.2018.00586
Script Function
00_fetch_data.py downloads the openfmri ds117 dataset and extracts it
01_anatomy.py runs the FreeSurfer recon-all program on the anatomical MRI data and uses the FLASH images to create surface meshes
02_filter.py performs band-pass filtering between 1 Hz to 40 Hz on the MEG data
03_ica.py uses ICA to decompose the MEG signal into independent components. Finds at most two ICA components that correlate with heart beats (ρ> 0.05), at most two components that correlate with eye blinks (ρ> 0.1), and flags these components for removal.
04_epochs.py cuts the continuous MEG data into epochs from -0.2 s to 2.9 s relative to the onset of the stimuli. Removes ICA components that were flagged in the previous step. Removes epochs where the signal amplitude of one or more gradiometer channels exceed 3 × 10-10 T/cm or one or more magnetometer channels exceed 4 × 10-12 T.