[FieldTrip] Dynamic ROI for cluster-based permutation statistics

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Fri Jun 4 10:37:36 CEST 2021

Hi Cihan,

I don’t understand the question. Also, I don’t understand what you mean with ‘defining a ROI in cfg.neighbours’.

Do you want to

1. constrain for each time point the set of channels that enter into the clustering algorithm?


2. use a different spatial neighbourhood matrix for each time point?

These are two different things I think.

Best wishes,


On 19 May 2021, at 13:04, Cihan Dogan <CDogan1994 at hotmail.co.uk<mailto:CDogan1994 at hotmail.co.uk>> wrote:

Dear FT,

Currently I have an experiment setup to run a cluster-based permutation tests on time-frequency data regressing against some behavioural variables using the ft_statfun_indepsampleregrT function.

I have a prior precedent for using a particular ROI which I have defined in cfg.neighbours, however, I wish to change this ROI dynamically through time. So essentially for each timestep get the set of neighbours and use this to cluster at that point in time rather than apply a static ROI for the entire duration.

I was wondering if in FieldTrip it is possible to apply a dynamic region of interest through time? And if not, how much of a job it would be to make this addition myself.

I’ve started to look at some of the underlying code such as clusterstat.m and findcluster.m to make this addition /amendment and was wondering if anyone in the community has made such a change.

Many thanks,
fieldtrip mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210604/21ecb2cf/attachment.htm>

More information about the fieldtrip mailing list