Hi everyone,
I just need a suggestion. I am creating a protocol with a global channel file. I am loading data from a EEGlab preprocessed resting state, with no individual anatomy, so every subject will have the same channel location and the same Default anatomy.
What I do is that I create a new subject, editing the subject with the global channel location, and then I import the data, in the following way:
[sSubject, iSubject] = db_add_subject(subjName,[ ],1,2);
sImported = bst_process('CallProcess', 'process_import_data_time', [], [], ...
'subjectname', subjName, ... % target Brainstorm subject
'condition', condName, ... % condition/folder name
'datafile', {thisSetPath, 'EEG-EEGLAB'}, ... % EEGLAB file
'timewindow', [], ... % full time
'split', 0, ...
'channelalign', 0, ...
'ignoreshort', 1, ...
'usectfcomp', 0, ...
'usessp', 0, ...
'freq', [], ...
'baseline', [], ...
'blsensortypes', 'EEG');
However, when I import the data the global channel location is changed. When I do from gui I can import the data and it asks if I want to delete the previous channel location. But from code even if I use the argument “ 'channelalign', 0, ...” the global channel location is changed. How can import the data without changing the global channel location of the protocol?
Thanks