Back to the main page.

Bug 1850 - ft_channelrepair usind 'spline' method fails for CTF MEG data

Status CLOSED FIXED
Reported 2012-11-26 11:52:00 +0100
Modified 2014-01-29 13:28:35 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Eelke Spaak
URL:
Tags:
Depends on: 1721
Blocks:
See also:

Jörn M. Horschig - 2012-11-26 11:52:34 +0100

See Tom's mail in the FT list: ----------------- cfg=[] cfg.method='template'; cfg.template='CTF275_neighb.mat'; n=ft_prepare_neighbours(cfg); This structure of course contains all 275 MEG channels, including the ones that are missing from my data. So I try to reinterpolate: % get the 'full' list of channel names for i=1:length(n) allchans{i,:}=n(i).label; end % find the names of the channels that were not recorded missingchans=setdiff(allchans,data.label); % repair cfg=[]; cfg.missingchannel=missingchans; cfg.neighbours=n; cfg.method='spline'; data_r=ft_channelrepair(cfg,data); this fails with: ??? Error using ==> minus Matrix dimensions must agree. Error in ==> ft_channelrepair at 279 d = sens.chanpos - repmat(c, numel(sensidx), 1); -------------- The problem seems to be due to some error in defining the set of missing sensors from the sensor definition.


Jörn M. Horschig - 2012-11-26 13:27:49 +0100

good, that one's solved. But now I realized that SSI does not work for missing channels because the sensor is not present in the grad, so the function does not know at what position the sensor is and thus should be interpolated... gonna need some grad templates, see bug 1721


Jörn M. Horschig - 2012-12-12 10:15:14 +0100

closing this one as the initial problem is fixed.


Robert Oostenveld - 2012-12-15 17:23:40 +0100

Hi Jorn, At this moment it fails, see http://fieldtrip.fcdonders.nl/development/dashboard/r7198/test_bug1850 Can you add test_bug1850.mat to home/common and add the full path to the filename so that the test can be reproduced? Tnx


Eelke Spaak - 2012-12-18 14:12:55 +0100

Test script fixed in rev 7229.


Eelke Spaak - 2014-01-29 13:28:35 +0100

changing lots of bugs from resolved to closed.