<div dir="ltr">Hi Julian,<div>Sorry I posted the wrong one - I get the same error when I use timelock as the option</div><div><br></div><div>comp = eeglab2fieldtrip(ERP, 'timelock')<br>Reference to non-existent field 'icachansind'.<br><br>Error in eeglab2fieldtrip (line 54)<br> header.label   = { tmpchanlocs(EEG.icachansind).labels };<br></div><div><br></div><div>Please let me know if you have any ideas on what could be going wrong.</div><div>Amna</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2019 at 10:37 PM Julian Keil <<a href="mailto:julian.keil@gmail.com">julian.keil@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 style="overflow-wrap: break-word;">Hi Amna,<div><br></div><div>is there a specific reason why you want to export the ERPs as ICA components?</div><div>eegla2fieldtrip has the option to use ’timelock’ as the second input option, which might be more sensible in your case.</div><div><br></div><div>Hope that helps,</div><div><br></div><div>Julian<br><div><div><br><blockquote type="cite"><div>Am 27.11.2019 um 02:23 schrieb Amna Hyder <<a href="mailto:hyder.amna@gmail.com" target="_blank">hyder.amna@gmail.com</a>>:</div><br><div><div dir="ltr">Hi, <div>I did all my preprocessing in EEGlab and ERPlab and wanted to put in my ERP files into fieldtrip to do the cluster permutation analysis on my ERPs. I tried using the function eeglab2fieldtrip as specified in the following link: <a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2006-March/000441.html" target="_blank">https://mailman.science.ru.nl/pipermail/fieldtrip/2006-March/000441.html</a></div><div>I used the 'component analysis' option eg: <span style="white-space:pre-wrap">comp = eeglab2fieldtrip(ERP, 'componentanalysis').</span></div>However, I get the following error: <div>Reference to non-existent field 'icachansind'.<br>Error in eeglab2fieldtrip (line 54)<br> header.label   = { tmpchanlocs(EEG.icachansind).labels };</div><div><br></div><div>When I comment out these lines I run into another error:</div><div>Reference to non-existent field 'icaact'.<br><br>Error in eeglab2fieldtrip (line 119)<br>        if isempty(EEG.icaact)<br></div><div><br></div><div>It seems that this function requires ICA information in the EEGLAB ERP file, which isnt stored in the way that it is called. Can someone take a look into the function? Do I have to get the ERPs again in fieldtrip?</div><div>Amna</div></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br><a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br></div></blockquote></div><br></div></div></div>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>