Dear Frederic,<div><br></div><div>It is possible to keep the .grad structure, with updated .grad.tra, by including, in the third argument to ft_rejectcomponent, the original data structure, like this:</div><div><span style="font-family:arial,helvetica,sans-serif;background-color:rgb(255,255,255);white-space:pre-wrap"><br>
</span></div><div><span style="background-color:rgb(255,255,255);font-family:arial,helvetica,sans-serif;white-space:pre-wrap">comp=ft_componentanalysis(cfg1,rawdata)</span></div><div><span style="font-family:arial,helvetica,sans-serif;background-color:rgb(255,255,255);white-space:pre-wrap"><br>
</span></div><div><span style="font-family:arial,helvetica,sans-serif;background-color:rgb(255,255,255);white-space:pre-wrap">cleanedraw=ft_rejectcomponent(cfg2,comp,rawdata);</span></div><div><span style="font-family:arial,helvetica,sans-serif;background-color:rgb(255,255,255);white-space:pre-wrap"><br>
</span></div><div><span style="font-family:arial,helvetica,sans-serif;background-color:rgb(255,255,255);white-space:pre-wrap">Best,</span></div><div><span style="font-family:arial,helvetica,sans-serif;background-color:rgb(255,255,255);white-space:pre-wrap">Johanna</span></div>
<div><br><div class="gmail_quote">2012/5/7 Frederic Roux <span dir="ltr"><<a href="mailto:fredericroux@hotmail.de" target="_blank">fredericroux@hotmail.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Dear all,<br><br>I am using ICA prior to beamforming for artefact cleaning (EOG & ECG).<br><br>After running ft_componentanalysis I noticed that the gradiometer structure<br>is removed from the data, which is required by ft_sourceanalysis.<br>
<br>In a prior post I read that one could just add the grad structure from a previous version<br>of the data before the ICA cleaning. <br><br><a href="http://mailman.science.ru.nl/pipermail/fieldtrip/2012-March/004877.html" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/2012-March/004877.html</a><br>
<br>Can anyone tell me if this is the best solution, or if there is any other strategies out there?<br><br>Best,<br>Fred<span class="HOEnZb"><font color="#888888"><br><br>-- <br>Frédéric Roux, PhD student<br>Department of Neurophysiology<br>
Max Planck Institute for Brain Research<br>D-60529 Frankfurt am Main<br><a href="mailto:Frederic.Roux@brain.mpg.de" target="_blank">Frederic.Roux@brain.mpg.de</a><br><a href="tel:%2B49%280%2969630183225" value="+4969630183225" target="_blank">+49(0)69630183225</a><br>
<br><br> </font></span></div></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>