Back to the main page.

Bug 2328 - ft_sourcestatistics with cfg.roi yields NaN clusters

Status ASSIGNED
Reported 2013-10-20 08:39:00 +0200
Modified 2017-12-15 09:59:40 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks: 3391
See also:

Vitoria Piai - 2013-10-20 08:39:49 +0200

(Using version 20131010) cfgst.atlas = 'aal\ROI_MNI_V4.nii'; cfgst.roi = 'Temporal_Mid_L'; cfgst.avgoverroi = 'yes'; cfgst.hemisphere = 'left'; cfgst.inputcoord = 'mni' ; stat = ft_sourcestatistics(cfgst, iRel{:}, iIde{:}); % these are participants' MNEs averaged over a time window, interpolated to the MNI template with .pos and .dim fields copied from the template_grid onto the subjects' source. If cfgst.avgoverroi == 'yes'; error: ??? In an assignment A(:) = B, the number of elements in A and B must be the same. Error in ==> clusterstat at 187 tmp(cfg.inside) = postailobs; Error in ==> ft_statistics_montecarlo at 326 [stat, cfg] = clusterstat(cfg, statrand, statobs,'issource',issource); Error in ==> statistics_wrapper at 298 [stat, cfg] = statmethod(cfg, dat, design, 'issource',issource); Error in ==> ft_sourcestatistics at 107 [stat, cfg] = statistics_wrapper(cfg, varargin{:}); If cfgst.avgoverroi == 'no'; ft outputs only NaNs in stat.posclusters/negclusters. This is regardless of whether cfgst.roi is one label or a cell array. (I can provide example data if necessary, just not attaching now coz I don't have them at home).


Raghavan Gopalakrishnan - 2014-07-02 20:08:22 +0200

Can someone please address this issue? I am having the same error. Thanks, Raghavan


Robert Oostenveld - 2014-07-03 12:18:24 +0200

(In reply to Raghavan Gopalakrishnan from comment #1) can you share your data and cfg so that we can reproduce the error? see http://fieldtrip.fcdonders.nl/faq/how_should_i_send_example_data_to_the_developers


Raghavan Gopalakrishnan - 2014-07-07 15:32:46 +0200

(In reply to Robert Oostenveld from comment #2) I have shared my data. I appreciate your help


Robert Oostenveld - 2014-07-07 16:18:41 +0200

(In reply to Raghavan Gopalakrishnan from comment #3) I have received the data and will look at it. Robert