<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Lene,
<div class=""><br class="">
</div>
<div class="">Is your fMRI volumetric? If so, I think it would be easiest to provide your data as a type ’source’ structure, and use ft_sourcestatistics instead. This does not require a ’neighbours’ structure, because it treats the spatial dimension automatically
 as 3D-space (provided the input data is well-defined).</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 17 Jul 2019, at 09:53, Lene Schmidt <<a href="mailto:lene.schmidt@gmx.at" class="">lene.schmidt@gmx.at</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div style="font-family: Verdana;font-size: 12.0px;" class="">
<div class="">Dear community,</div>
<div class=""> </div>
<div class="">I would like to run a cluster-based permutation test on fMRI data. I organized my data as one would do running ft_timelockstatistics on EEG data. The only difference is that I provide a neighbours structure referencing a three-dimensional layout.
 When running ft_timelockstatistics, I get an error in the findcluster function (line 56) which seems to check whether the layout is two-dimensional (which it is not).</div>
<div class=""> </div>
<div class="">Does anyone know if rewriting the findcluster function will suffice to successfully run a cluster test or if there will be more errors in other functions? Has anyone else found a good workaround for this problem?</div>
<div class=""> </div>
<div class="">Any help is greatly appreciated.</div>
<div class=""> </div>
<div class="">Best,</div>
<div class="">Lene</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>