[Eeglablist] Clean Rawdata ASR error
Will Decker
jdecke5 at lsu.edu
Thu Jul 13 12:55:54 PDT 2023
Hi,
I am attempting to run data through clean rawdata's ASR method however, some of my data produces an error while other files do not. I have tried used the GUI, the pop_clean_rawdata() function and the clean_asr() function as well as a few other troubleshooting methods and I am still receiving the same error. Below is my code and the error produced.
CODE
%% clean_rawdata ASR
a = linspace(0, 100, 5);
a1 = 5;
a2 = a(2);
a3 = a(3);
a4 = a(4);
a5 = a(5);
params = {a1, a2, a3, a4, a5};
paramstr = {'_a1', '_a2', '_a3', '_a4', '_a5'};
for i = 1:length(params)
for s = 1:numsubjects
subject = subject_list{s};
[ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
EEG = pop_loadset('filename',[subject '_crd_channels.set'],'filepath',channelsdir);
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
EEG = eeg_checkset( EEG );
EEG = clean_asr(EEG, params{i});
EEG = pop_saveset(EEG, 'filename',[subject paramstr{i} '_crd_ASR.set'],'filepath',[workdir filesep]);
end
end
ERROR
Error using asr_calibrate (line 190)
No enough reference data, call the function from the command line and try changing the 'BurstCriterionRefTolerances'
parameters (to -10 to 10 for example)
Error in clean_asr (line 180)
state = asr_calibrate(ref_section.data,ref_section.srate,cutoff, [], [], [], [], [], [], [], maxmem);
Error in devERP_symbol_search_crd_ASR (line 42)
EEG = clean_asr(EEG, params{i});
--------------------------------------------------------------------------------------------------------------------------------
I have attached two files: symbsearch-001_crd_channels.set DOES NOT produce this error while symbsearch-006_crd_channels.set DOES produces this error. Any help would be greatly appreciated. [https://urldefense.com/v3/__https://res.cdn.office.net/assets/mail/file-icon/png/zip_16x16.png__;!!Mih3wA!HsvKy2LWgghlOQCjq6pXgvkAFE0SxWe_5LmbVbEnr1ySkLARpRYzeXAZXSe3ZygJnzsudYEuWuAfg9ejBXudhg$ ] asr_error_files 3.zip<https://urldefense.com/v3/__https://lsumail2-my.sharepoint.com/:u:/g/personal/jdecke5_lsu_edu/EeG-UciQxWdDnnJYnP8MwK8BYIR604Ug8Ldaggwc90nZpA__;!!Mih3wA!HsvKy2LWgghlOQCjq6pXgvkAFE0SxWe_5LmbVbEnr1ySkLARpRYzeXAZXSe3ZygJnzsudYEuWuAfg9ebZjaAxA$ >
Best,
Will Decker
More information about the eeglablist
mailing list