<div dir="ltr">Hi Fieldtripers,<div><br></div><div>I'm trying to conduct cluster-based permutation test to source activation within anatomically pre-defined spatial ROIs.</div><div><br></div><div>In the <i>ft_sourceanalysis</i> function, the cfg.roi doesn't seem to work. In an earlier post in the discussion list (<a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2016-August/010835.html" target="_blank">https://mailman.science.ru.nl/pipermail/fieldtrip/2016-August/010835.html</a>), Haris hacked it by replacing the activation values outside of the ROIs as NaN and setting up the "source.inside" field to contain the index values of the ROI voxels only.</div><div><br></div><div>However, this method returns significant clusters for all spatial clusters, because the resulted values within result.posclusters.clusterstat are Inf.</div><div><br></div><div>Is there another way to run the analysis?</div><div><br></div><div>Thank you!</div><div>Lin</div></div>