<div dir="ltr">Alternate possible solution!!<br>I thought I would add that the reason I am trying to import grand averaged ERPs from ERPlab is because I am running into some issues with the ft_timelockgrandaverage function when I use it on individual ERPs in fieldtrip. If I do cfg.keepindividual = 'yes' (which is required for cluster permutation analysis), the "avg" field is missing from the results. I only see the avg field if I specify "no" to keepindividual. I saw that someone had an issue with this in 2015 (<a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2015-March/021876.html">https://mailman.science.ru.nl/pipermail/fieldtrip/2015-March/021876.html</a>). I have tried to combine the grand average ERP by doing it once with keepindividual='yes' and once with keepindividual='no'. See below:<div>    [avgERP2]          =  ft_timelockgrandaverage(cfg);<br>    avgERP.individual = avgERP2.individual; %avgERP has only the "avg" field and is missing "individual". The opposite is true for avgERP2<br>    avgERP.dimord = avgERP2.dimord;<br></div><div><br></div><div>All of this matters because when I try to apply ft.math on this data to compare conditions I get the following error:    'the requested parameter is not present in the data'. <br>It doesnt specify which field, so I am worried that there is some error in the way ft_timelockgrandaverage is working. <br>If you can help out with this issue, I wouldn't need to import already grand averaged ERP files from ERPlab.</div><div>Thanks so much for your prompt response.  </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>