[Eeglablist] problems with ERP
Gabriel Mograbi
gabriel.mograbi at gmail.com
Fri Dec 13 12:52:13 PST 2019
Dear All,
I have sent an email asking for help as I processed my first block with all
success but EEGlab does not allow me to do ERPs (the buttom appears grey)
for my second block even if I had go though the same preprocessing. Using
the newest version of EEGlab, I received a message I have not received
ussing olders versions:
"Cannot load file 'X.icatopo'
Note that plotting ICA component ERPs require
to precompute ICA topographies (see tutorial)
(Error occurred in function correcfile() at line XXX)
That sounds quite strange as I ran ICA (fastICA) in all these files.
That was the command lines I used for preprocessing:
files = dir('*.cnt');
for i = 1:length(files)
EEG = pop_loadcnt(files(i).name, 'dataformat', 'auto', 'memmapfile', '');
EEG = eeg_checkset( EEG );
EEG = pop_select(EEG,'nochannel',{'EKG', 'EMG', 'HEO', 'VEO'});
if EEG.srate ~= 500
EEG = pop_resample( EEG, 500)
end
EEG = eeg_checkset(EEG);
EEG = pop_eegfiltnew(EEG, 'locutoff',0.5,'hicutoff',50,'plotfreqz',1);
EEG = eeg_checkset( EEG );
EEG=pop_chanedit(EEG,
'lookup','C:\\Users\\gabri\\Desktop\\eeglab2019_0\\plugins\\dipfit\\standard_BESA\\standard-10-5-cap385.elp');
EEG = eeg_checkset( EEG );
originalEEG = EEG;
EEG = clean_rawdata(EEG, 5, [-1], 0.8, -1, 5, 0.25);
%EEG = clean_rawdata(EEG, 5, 'off', 0.8, 4, 20, 'off');
EEG = pop_interp(EEG, originalEEG.chanlocs, 'spherical')
EEG = pop_reref( EEG, []);
EEG = eeg_checkset( EEG )
EEG = pop_runica(EEG,'icatype','fastica');
artcomps = MARA(EEG);
EEG = pop_subcomp(EEG,artcomps,0);
EEG = eeg_checkset( EEG );
pop_saveset(EEG,'filename',[files(i).name
'_preprocessed.set'],'filepath',pwd)
end
I see all triggers and all components available in all files. Also I
checked to see the answer to icaweights.
The answer to the question
size(EEG.icaweights)
was for
*each and all subjects *
ans =
25 64
Anyone could help me out diagnosing the problem? I am really running
against time to present my results as I am for short period abroad doing
this job.
Best,
Gabriel
More information about the eeglablist
mailing list