[Eeglablist] Retrieving bad channel indices from ASR clean_rawdata

David Ryan ryand1 at goldmail.etsu.edu
Tue Dec 11 16:28:30 PST 2018


This is the script I use. I'm sure there is a more efficient way:

originalEEG = EEG; % copy EEG before clean_raw
EEG = clean_rawdata(EEG, 5, [0.25 0.75], 0.8, 4, 5, 0.5);  % Run clean_raw
Channels_Removed = setdiff
({originalEEG.chanlocs.labels},{EEG.chanlocs.labels}, 'stable');  % Make a
variable to show what's different between the original and new channel
labels
EEG = pop_interp(EEG, originalEEG.chanlocs, 'spherical');% Interpolate
channels removed.

Hope this helps,
Dave



On Mon, Dec 10, 2018 at 1:41 PM Tarik S Bel-Bahar <tarikbelbahar at gmail.com>
wrote:

> Hello Anna,
> Best way to find out is to look inside the actual code of the function
> and find the variables that store that information.
> You may need to add a few lines of code to "store" the chan information
> for your further use.
> From my understanding the ASR tool doesn't adequately updated the
> EEG.structure.
> There have been past eeglablist messages that mention the fields in
> question, try googling them.
> Once you find a good solution, please consider sharing so that other
> ASR/eeglab users can benefit.
>
>
> On Mon, Dec 10, 2018 at 3:19 AM Anna Kasdan <avkasdan at gmail.com> wrote:
>
>> Hi all,
>>
>> I was wondering how you can retrieve the bad channel indices that are
>> identified during ASR clean_rawdata. I tried EEG.etc but this didn’t give
>> me the information I was looking for.
>>
>> Also, once these indices have been identified, are these the ones we
>> should use in channel interpolation?
>>
>> Thank you!
>>
>> Best,
>> Anna Kasdan
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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



-- 

David Ryan, Ph.D.

Research Health Specialist

Mountain Home VA Health Care System (621)

Auditory Vestibular Research Enhancement Award Program (REAP)

Research Service

(423)-926-1171 Ext. 7575

www.avreap.research.va.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20181211/fb188922/attachment.html>


More information about the eeglablist mailing list