[Eeglablist] Question about IClabel

Renzo Lanfranco renzo.lanfranco at gmail.com
Sat Nov 25 04:36:11 PST 2023


Thanks Velu and Swantje, that solved my problem :)



From: Velu Prabhakar Kumaravel <vpr.kumaravel at gmail.com>
Date: Saturday, 25 November 2023 at 09:55
To: Renzo Lanfranco <renzo.lanfranco at gmail.com>
Cc: Kirandeep Kaur via eeglablist <eeglablist at sccn.ucsd.edu>
Subject: Re: [Eeglablist] Question about IClabel
Hi Renzo,

Check the variable EEG.reject.gcompreject if it contains the flagged IC components.

Best,
Velu

On Sat, Nov 25, 2023, 08:21 Renzo Lanfranco via eeglablist <eeglablist at sccn.ucsd.edu<mailto:eeglablist at sccn.ucsd.edu>> wrote:
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
_______________________________________________
Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu<mailto: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<mailto:eeglablist-request at sccn.ucsd.edu>


More information about the eeglablist mailing list