You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/11_Scripting/automated_pipeline.md
+68-2Lines changed: 68 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Download the data from [https://openneuro.org/datasets/ds003061/](https://openne
28
28
29
29
Alternatively, use one of the available [EEGLAB studies](../tutorial_data.html). Note that some of these studies already have their data preprocessed and may not be suitable for automated processing.
30
30
31
-
Running the pipeline
31
+
Running an ERP pipeline
32
32
----------------
33
33
34
34
The pipeline below takes the raw data from all subjects, clean the data, extracts epochs of interest, and plots the grand average ERP.
@@ -51,7 +51,73 @@ pop_editoptions( 'option_storedisk', 1); % only one dataset in memory at a time
51
51
[STUDY, ALLEEG] = pop_importbids(filepath, 'studyName','Oddball', 'subjects', [1:2]); % when using all subjects, one subject is truncated and cause the pipeline to return an error
52
52
53
53
% remove non-ALLEEG channels (it is also possible to process ALLEEG data with non-ALLEEG data
chanlocs = eeg_mergelocs(ALLEEG.chanlocs); % get all channels from all datasets
95
+
STUDY = std_specplot(STUDY,ALLEEG,'channels', {chanlocs.labels}, 'design', 1);
96
+
97
+
% revert default option
98
+
pop_editoptions( 'option_storedisk', 0);
99
+
```
100
+
101
+
Running an spectral pipeline
102
+
----------------
103
+
104
+
The pipeline below takes the raw data from all subjects, clean the data, extracts epochs of interest, and plots the spectrum to compare conditions. It is very similar to the ERP pipeline above.
105
+
106
+
```matlab
107
+
% check folder
108
+
eeglab;
109
+
if ~exist('task-P300_events.json', 'file')
110
+
error('Download the data from https://openneuro.org/datasets/ds003061/ and go to the downloaded folder');
pop_editoptions( 'option_storedisk', 1); % only one dataset in memory at a time
117
+
[STUDY, ALLEEG] = pop_importbids(filepath, 'studyName','Oddball', 'subjects', [1:2]); % when using all subjects, one subject is truncated and cause the pipeline to return an error
118
+
119
+
% remove non-ALLEEG channels (it is also possible to process ALLEEG data with non-ALLEEG data
0 commit comments