<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr">Dear Eelke,<div><br></div><div>We are following the tutorial that you have send us but we want to perform <i>ft_sourceparcellate </i>before connectivity to group the centroide of the voxels into regions, since we want to reduce the grid. Otherwise, computing the lines requieres computationally big effort which causes MEMORY errors.</div><div><br></div><div><div><img src="cid:ii_jvf35whm0" alt="image.png" width="472" height="126"><br></div></div><div><br></div><div>The problem cames because in our <i>source</i>, which is obtained from<i> ft_sourceanalysis ,</i> the number of<i> source.pos </i>is really big and matlab does not work with this. We have seen that if we increase the size of the grid when we create the leadfield we do not have Memory problems, but we think that is not very accurate. That is why we want to create before <i>ft_connectivityanalysis </i>different regions to perform connectivity analysis between them and do not have computatioinal probems. <br></div><div><div><br></div></div><div>Thanks for your help.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hau idatzi du Eelke Spaak (<a href="mailto:e.spaak@donders.ru.nl">e.spaak@donders.ru.nl</a>) erabiltzaileak (2019 mai. 8, az. (11:59)):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Elene,<br>
<br>
Have a look at ft_sourceparcelllate and the following tutorial,<br>
particularly the part about parcellation:<br>
<a href="http://www.fieldtriptoolbox.org/tutorial/networkanalysis/" rel="noreferrer" target="_blank">http://www.fieldtriptoolbox.org/tutorial/networkanalysis/</a> .<br>
<br>
Cheers,<br>
Eelke<br>
<br>
<br>
On Wed, 8 May 2019 at 08:57, Elene Beitia Loinaz<br>
<<a href="mailto:elene.beitia@alumni.mondragon.edu" target="_blank">elene.beitia@alumni.mondragon.edu</a>> wrote:<br>
><br>
> Dear all,<br>
><br>
> Continuing with the connectivity issue, we have seen that the problem of memory come from the size of the leadfield`s grid used previously for source reconstruction and now for connectivity. The variable related with that grid is data.pos,  which was created in ft_prepareleadfield. This value contains the coordinates of the centroids' voxels, related with the grid. As this variable is too large, it supposes really high computational effort that matlab cannot handle.<br>
><br>
> We want to cluster the data.pos voxels coordinates into different brain regions such as: temporal area, frontal field....<br>
><br>
> Does anyone know how we can group those coordinates into regions in order to decrease the size of data.pos variable needed in ft_connectivityanalysis function?<br>
><br>
> Thank you in advanced.<br>
><br>
> Hau idatzi du Elene Beitia Loinaz (<a href="mailto:elene.beitia@alumni.mondragon.edu" target="_blank">elene.beitia@alumni.mondragon.edu</a>) erabiltzaileak (2019 mai. 7, ar. (11:11)):<br>
>><br>
>> Hi Fieldtripers,<br>
>><br>
>> We are trying to perform a conectivity analysis using source reconstructed data. We have seen that ft_connectivityanalysis can be calculated using the output of ft_freqanalysis or ft_sourceanalysis. Someone knows which are the benefits of using the results obtain in ft_sourceanalysis to perform the connectivity analysis?<br>
>><br>
>> Furthemore, we have problems when we compute the choerence approach with the source reconstructed data.<br>
>><br>
>> Our code:<br>
>><br>
>> cfg           = [];<br>
>> cfg.method    = 'coh'<br>
>> coh           = ft_connectivityanalysis(cfg, beamformer);<br>
>><br>
>> The error that we obtain is:<br>
>> Out of memory. Type "help memory" for your options.<br>
>><br>
>> Error in univariate2bivariate (line 314)<br>
>>          data.crsspctrm = (transpose(mom)*conj(mom))./nrpt;<br>
>><br>
>> Error in ft_connectivityanalysis (line 449)<br>
>> [data, powindx, hasrpt] = univariate2bivariate(data, 'mom', 'crsspctrm', dtype, 'cmb', cfg.refindx,'keeprpt', 0);<br>
>><br>
>> This segment of code has been concluded following the tutorials below:<br>
>> <a href="http://www.fieldtriptoolbox.org/tutorial/networkanalysis/" rel="noreferrer" target="_blank">http://www.fieldtriptoolbox.org/tutorial/networkanalysis/</a><br>
>> <a href="http://www.fieldtriptoolbox.org/tutorial/connectivity/" rel="noreferrer" target="_blank">http://www.fieldtriptoolbox.org/tutorial/connectivity/</a><br>
>> <a href="http://www.fieldtriptoolbox.org/workshop/meg-uk-2015/fieldtrip-connectivity-demo/" rel="noreferrer" target="_blank">http://www.fieldtriptoolbox.org/workshop/meg-uk-2015/fieldtrip-connectivity-demo/</a><br>
>><br>
>> Thank you in advanced,<br>
>><br>
>> Waiting for your answer.<br>
><br>
> _______________________________________________<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>
<br>
_______________________________________________<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>