[FieldTrip] ROI for ft_sourcestatistics

Kaelasha Tyler ktyler at swin.edu.au
Mon Feb 16 06:19:33 CET 2015

Hi all,

I'm having some difficulty restricting source statistics to a region of interest.

I am running the ft_sourcestatistics with the following cfg for ROI:

cfg.atlas = ft_read_atlas('~/MATLAB/fieldtrip-20140910/template/atlas/aal/ROI_MNI_V4.nii')
cfg.roi ={-5,0,3};
cfg.inputcoord   = 'mni';

This results in the following error:

Error using ft_volumelookup (line 131)
either specify cfg.sphere or cfg.box

Error in statistics_wrapper (line 140)
        tmp = ft_volumelookup(tmpcfg, varargin{1});

Error in ft_sourcestatistics (line 112)
    [stat, cfg] = statistics_wrapper(cfg, varargin{:});

I had understood that this should have chosen the grid position (-5, 0, 3) and then then selected grid points within a 3cm radius around this point as the ROI. These variables are just for trying it out, and are not what I will be using once I get this code working.

Any help much appreciated.

P.s. I had thought that the following code would return anatomical labels for this ROI. Instead it just returns a matrix of zeros with the dimensions of source.dim.

cfg = [];
cfg.atlas = atlas;
cfg.inputcoord = 'mni';
cfg.roi ={-5,0,3};
labels = ft_volumelookup( cfg, sourceData)

Again, any help will be much appreciated!

Kaelasha Tyler

PhD Candidate
Brain and Psychological Sciences Research Centre
Swinburne University of Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150216/4d19940a/attachment-0001.html>

More information about the fieldtrip mailing list