[Eeglablist] Question about IClabel

Renzo Lanfranco renzo.lanfranco at gmail.com
Fri Nov 24 18:42:58 PST 2023


Hi all,

I have a question about IClabel. I’ve been using it to reject ICA components using specific thresholds for each component category. However, I’m trying to add it to my preprocessing pipeline, and I haven’t found a way to suppress the window that pops up when the components have been flagged and are about to be rejected:

This is the relevant snippet:

EEG = iclabel(EEG, 'default');
EEG = pop_icflag(EEG, [NaN NaN; 0.70 1; 0.70 1; 0.70 1; 0.70 1; 0.70 1; NaN NaN]); % 70% threshold for ICA rejection: Brain, Muscle, Eye, Heart, Line noise, Channel noise, Other.
EEG = pop_subcomp(EEG);


When the script reaches the pop_subcomp function, the window pops up asking “do you confirm that you want to delete “ etc etc. In the pop_subcomp function, it says that if you specify the list of components to delete, then said window won’t pop up. Do you know how to specify this when the components to delete have been flagged by iclabel? More specifically, by the pop_icflag component.

Thanks in advance!
Renzo


More information about the eeglablist mailing list