I'm trying to do a paired-t test using the fieldtrip cluster analysis on whole brain source data. I have installed fieldtrip in the plugin tab as the tutorial specified, but there is an error message when I try to run the function, the message is as as follows. How should I address that?
Thank you for your time!
You are apparently testing files that have different 3D positions:
You can only test sources computed on the same cortex surface.
If your test involves multiple subjects with individual anatomies, you need to project all the sources on a template first. Read the tutorials on these topics.
Victoria! I am running in to this same problem despite having created my forward models (leadfield) and source reconstruction from a template grid included in fieldtrip (see below). Mind sharing any details on how you solved this? Thanks!
template_grid = sourcemodel;
cfg = ;
cfg.method = 'basedonmni';
cfg.template = template_grid;
cfg.nonlinear = 'yes';
cfg.mri = mri_resliced;
cfg.unit = 'cm';
subject_grid = ft_prepare_sourcemodel(cfg);