Back to the main page.

Bug 33 - Error in ft_timelockstatistics

Status CLOSED INVALID
Reported 2010-02-03 14:33:00 +0100
Modified 2011-07-13 14:46:41 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Stephen Whitmarsh
URL:
Tags:
Depends on:
Blocks:
See also:

Yuka Okazaki - 2010-02-03 14:33:17 +0100

** Error ** ??? Undefined function or variable "sens". Error in ==> ft_neighbourselection at 77 if ~isstruct(sens) Error in ==> neighbourselection at 17 [varargout{1:nargout}] = funhandle(varargin{:}); Error in ==> statistics_wrapper at 225 cfg.neighbours = neighbourselection(cfg,varargin{1}); Error in ==> ft_timelockstatistics at 80 [stat, cfg] = statistics_wrapper(cfg, varargin{:}); ** Run code ** ft_timelockstatistics was applied to the date from preprocessing, timelockanalysis, planar gradient, and grandaveraging (gavg_ac1, gavg_ac2). gavg_ac1 = label: {273x1 cell} fsample: 600 avg: [273x1200 double] var: [273x1200 double] time: [1x1200 double] individual: [6x273x1200 double] dimord: 'subj_chan_time' cfg: [1x1 struct] gavg_ac2 = label: {273x1 cell} fsample: 600 avg: [273x1200 double] var: [273x1200 double] time: [1x1200 double] individual: [6x273x1200 double] dimord: 'subj_chan_time' cfg: [1x1 struct] nsub = 6; cfg = []; cfg.channel = {'MEG'}; cfg.latency = [0 1]; %cfg.avgoverfreq = 'yes'; cfg.method = 'montecarlo'; cfg.statistic = 'depsamplesT'; cfg.correctm = 'cluster'; cfg.clusteralpha = 0.05; cfg.clusterstatistic = 'maxsum'; cfg.minnbchan = 2; cfg.tail = 0; cfg.clustertail = 0; cfg.alpha = 0.025; cfg.numrandomization = 500; design = zeros(2,2*nsub); for i = 1:nsub design(1,i) = i; end for i = 1:nsub design(1,nsub+i) = i; end design(2,1:nsub) = 1; design(2,nsub+1:2*nsub) = 2; cfg.design = design; cfg.uvar = 1; cfg.ivar = 2; [stat] = ft_timelockstatistics(cfg, gavg_ac1, gavg_ac2);


Jan-Mathijs Schoffelen - 2010-02-04 07:03:26 +0100

Your report is not a bug. Gradiometer info is missing from the data. Probably got lost along the way when combining planar gradients. Please contact first line of defence (=group members from neural oscillations group) for a fix. There should be knowledge to deal with this problem (Barbara or Stephen would be good candidates). The problem of neighbourselection has been brought up in your group, according to my information. Refer to that discussion please. I assigned this 'bug' to Saskia to ensure that it will be followed up and documented on the fieldtrip wiki.


Robert Oostenveld - 2011-07-13 14:46:41 +0200

changed the status for a whole bunch of resolved bugs to CLOSED