<div dir="auto">Dear Johannes, <div dir="auto"><br></div><div dir="auto">which connectivity measure are you using? There is a potential bottleneck in the 'ft_connectivityanalysis', which can however be circumvented with custom code, at least for dwPLI. Then you won't even need to parcelate.</div><div dir="auto">We are currently working to incorporate it into the Fieldtrip code.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Stefan</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">пн, 4 окт. 2021 г., 11:06 Johannes Gehrig via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p><font face="Calibri">Dear Fieldtrip-user,</font></p>
<p><font face="Calibri">I am facing a problem using
ft_sourceinterpolate. I am following the "</font>Whole brain
connectivity and network analysis"- Tutorial and as I can not
compute the connectivity directly with the source data ("out of
memory") I would like to perform the source parcellation before
computing the connectivity. Unfortunately (fieldtrip 20211001 and
matlab2018b) ft_sourceparcellate crashes after calling it. Before
computing the source data the sourcemodel was interpolated with
the atlas using ft_sourceinterpolate. Therefore the amount of
positions in the atlas and the source data is the same (8004).</p>
<p>load('atlas_MMP1.0_4k.mat'); <br>
cfg = [];<br>
cfg.parcellation = 'parcellation';<br>
cfg.method = 'mean';<br>
cfg.parameter = 'all'; <br>
parc_sourceOn = ft_sourceparcellate(cfg, source_ON, atlas);<br>
</p>
<p><font face="Calibri">Error message:"<br>
there are in total 8004 positions, 4544 positions are inside the
brain, 8004 positions have a label<br>
4544 of the positions inside the brain have a label<br>
4544 of the labeled positions are inside the brain<br>
0 of the positions inside the brain do not have a label<br>
creating 362 parcels for parameter csd by taking the mean<br>
computing parcellation<br>
232 tmp(j,:,:) = cellmean1(dat(tissue==j));<br>
computing parcellation for L_V1_ROI<br>
Index exceeds array bounds.<br>
<br>
Error in ft_sourceparcellate>cellmean1 (line 494)<br>
y = x{1};<br>
<br>
Error in ft_sourceparcellate (line 232)<br>
tmp(j,:,:) = cellmean1(dat(tissue==j));</font></p>
<p><font face="Calibri">"</font></p>
<p><font face="Calibri">Any help and ideas are very much
appreciated!</font></p>
<p><font face="Calibri">Best regards, Johannes<br>
</font></p>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer 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 noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202<br></a><br>
</blockquote></div></div>