[Eeglablist] Automation
Clemens DICKHUT
clemens.dickhut at uni.lu
Thu Aug 18 00:45:53 PDT 2016
Hi Mike,
you can use eegh (eeglab command history: EEG.history) to see what functions were called. To automatise processing you would usually start with a for loop that repeats for each subject. Within the for loop put the analyses you want to perform at the particular point. See basic example below. (Also check: https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts)
PATHIN = '/Users/raw'
PATHOUT = '/resampled_filtered'
subj = {'1', '2', '3', '4', '5', '6', '7', '8', '9', '10'};
[ALLEEG EEG CURRENTSET] = eeglab;
for s = 1:length(subj)
% Load
EEG = pop_loadbv(PATHIN, [subj{s}, '_nback.vhdr'],[], [1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 ...
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64]);
[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'gui','off');
EEG = pop_chanedit(EEG, 'lookup','/Users/Study 1/eeglab13_5_4b/plugins/dipfit2.3/standard_BESA/standard-10-5-cap385.elp');
% Pre-proc
EEG = recode_nback(EEG);
EEG = pop_resample( EEG, 250);
EEG = pop_eegfiltnew(EEG, 0.5, 45, 1650, 0, [], 1);
% Safe
[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'setname','resampled_filtered','overwrite','on','gui','off');
EEG = pop_saveset(EEG,'filename',[subj{s}, '_nback_resampled_filtered.set'],'filepath', PATHOUT);
end
Best,
Clemens
On 15 Aug 2016, at 23:12, Mike Urich <michaelurich210 at gmail.com<mailto:michaelurich210 at gmail.com>> wrote:
Hi all,
Is there an easy way to see what functions are being called as you click through eeglab? I have a workflow of importing data from a text file, filtering, removing the mean, and running ICA and then viewing a Component Scroll plot. I need to perform this sequence on many datasets and it’ll be the same process for each one, so it would be fantastic to be able to automate this. Does anyone have any suggestions?
Thanks!
Mike Urich
michaelurich210 at gmail.com<mailto:michaelurich210 at gmail.com>
_______________________________________________
Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160818/9e0dd23b/attachment.html>
More information about the eeglablist
mailing list