<div dir="ltr">Hi Dave,<div><br></div><div>Thanks! I was also able to do it using the line</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier">bad_channels_ARS = find(EEG.etc.clean_channel_mask==0)</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier">My follow up question is about interpolation: I thought that the second argument of pop_interp was supposed to be a list of the indices of bad channels, but originalEEG.chanlocs is a data structure with everything...how exactly is interpolation working then if all channels instead of just the bad ones are being taken into account? I was trying to find a way to use the bad channels I retrieved as the second argument but that doesn't work with the EEG input since ARS deletes the channels from that dataset. Also, I will be re-referencing to the mastoids instead of an average reference...does the interpolation line you wrote above still work for that (with the originalEEG.chanlocs) or does this really only work if re-referencing to the average? </p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier">Thank you!</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier">Anna</p></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 11, 2018 at 6:28 PM David Ryan <<a href="mailto:ryand1@goldmail.etsu.edu">ryand1@goldmail.etsu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>This is the script I use. I'm sure there is a more efficient way: <br></div><div><br></div><div dir="ltr">originalEEG = EEG; % copy EEG before clean_raw<br></div><div dir="ltr">EEG = clean_rawdata(EEG, 5, [0.25 0.75], 0.8, 4, 5, 0.5);  % Run clean_raw<br></div><div dir="ltr">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<br></div><div dir="ltr">EEG = pop_interp(EEG, originalEEG.chanlocs, 'spherical');% Interpolate channels removed. <br></div><div dir="ltr"><br></div><div>Hope this helps,</div><div>Dave</div><div><br></div><div dir="ltr"><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 10, 2018 at 1:41 PM Tarik S Bel-Bahar <<a href="mailto:tarikbelbahar@gmail.com" target="_blank">tarikbelbahar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">Hello Anna,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">Best way to find out is to look inside the actual code of the function</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">and find the variables that store that information. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">You may need to add a few lines of code to "store" the chan information for your further use.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">From my understanding the ASR tool doesn't adequately updated the EEG.structure.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">There have been past eeglablist messages that mention the fields in question, try googling them.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)">Once you find a good solution, please consider sharing so that other ASR/eeglab users can benefit.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,255)"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 10, 2018 at 3:19 AM Anna Kasdan <<a href="mailto:avkasdan@gmail.com" target="_blank">avkasdan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<br><br>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. <br><br>Also, once these indices have been identified, are these the ones we should use in channel interpolation? <br><br>Thank you!<br><br>Best,<br>Anna Kasdan  <br></div>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></blockquote></div>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-3645228988616416176gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><a name="m_-3645228988616416176_SignatureSanitizer_SafeHtmlFilter__MailAutoSig"><span><font size="3" face="Calibri" color="#000000">David
Ryan, Ph.D.</font></span></a></p><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri" color="#000000">Research Health Specialist </font></span></span></p><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri" color="#000000">Mountain Home VA Health Care System (621)</font></span></span></p><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri" color="#000000">Auditory Vestibular Research Enhancement Award Program (REAP)
</font></span></span></p><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri" color="#000000">Research Service</font></span></span></p><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri" color="#000000">(423)-926-1171 Ext. 7575</font></span></span></p><font size="3" face="Times New Roman" color="#000000">

</font><p style="margin:0in 0in 0pt"><a href="http://www.avreap.research.va.gov/" target="_blank"><span><span style="color:blue;font-size:12pt"><font face="Calibri">www.avreap.research.va.gov</font></span></span></a><span><span style="font-size:12pt"><font face="Calibri" color="#000000"> </font></span></span></p><font size="3" face="Times New Roman">

</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>