[Eeglablist] Questions about setting channel location map/file as a parameter in script

Güliz Bulut gulizbulut at yahoo.com
Fri Nov 8 12:26:34 PST 2024


Hello Karen,

You can use ‘lookup' and the path as a key-value pair similar to those given in pop_chanedit docs: 

	EEG = pop_chanedit( EEG, 'key1', value1, 'key2', value2, ... );

So can you remove the curly brackets as below and then run again?

	EEG = pop_chanedit(EEG, 'lookup','C:\\Users\\clchan398\\AppData\\Roaming\\MathWorks\\MATLABAdd-Ons\\Collections\\EEGLAB\\functions\\supportfiles\\channel_location_files\\eeglab\\Standard-10-20-Cap81.ced');

Best,
Güliz

On 8 Nov 2024, at 11:24, Karen Chan via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

[image: Screenshot 2024-11-08 161426.png]
Dear all,

I would like to inquire about ways to set channel location map/file as
a parameter in script for automated preprocessing EEG data. While I see
that the EEGLAB interface allows for selecting the channel map/locations,
the pop-up window shows up for each dataset during the analysis loop in the
script. This results in multiple interruptions as it prompts for channel
map input for every dataset processed. So I was wondering if there is a way
to set the channel map as a parameter in the code so that I don't have to
select it manually for each dataset?

I have used EEGLAB history (eegh) and tried the following code snippet, but
it did not work as intended:

EEG = pop_chanedit(EEG,
{'lookup','C:\\Users\\clchan398\\AppData\\Roaming\\MathWorks\\MATLAB
Add-Ons\\Collections\\EEGLAB\\functions\\supportfiles\\channel_location_files\\eeglab\\Standard-10-20-Cap81.ced'
});

Thank you for your time and assistance.

Best regards,
Karen
_______________________________________________
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



More information about the eeglablist mailing list