Back to the main page.

Bug 1133 - neighbourplot does not plot neuromag306 layout&neighbours correctly

Status CLOSED FIXED
Reported 2011-11-10 14:50:00 +0100
Modified 2011-11-11 11:19:55 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Jörn M. Horschig
URL:
Tags:
Depends on:
Blocks:
See also:

Jörn M. Horschig - 2011-11-10 14:50:13 +0100

From Marco Vuiatti (FieldTrip list): Dear Fieldtrippers, I have a problem with ft_neighbourplot. Data from Neuromag 306 channels. Running on Linux 64 bits, Matlab version 7.12.0 Neighbours in the Fieldtrip layout seem ok to me. However, when plotting them with ft_neighbourplot, the layout is clearly incorrect, it includes only about one third of the channels and when clicking on single channels, the output is incorrect (it always displays the same channel labels). I think this is a very useful command, so I would like to be able to use it! Below I have copied the corresponding commands. Am I doing anything wrong? Any help? Thanks Marco >> data data = hdr: [1x1 struct] label: {306x1 cell} time: {1x300 cell} trial: {1x300 cell} fsample: 1000 sampleinfo: [300x2 double] trialinfo: [300x1 double] grad: [1x1 struct] cfg: [1x1 struct] >> cfg=[]; cfg.method='template'; cfg.template='/neurospin/local/fieldtrip/template/neighbours/neuromag306mag_neighb.mat'; >> neighbours = ft_prepare_neighbours(cfg, data) Trying to load sensor neighbours from a template Successfully loaded neighbour structure from /neurospin/local/fieldtrip/template/neighbours/neuromag306mag_neighb.mat there are on average 6.9 neighbours per channel the call to "ft_prepare_neighbours" took 0 seconds and an estimated 0 MB neighbours = 1x104 struct array with fields: label neighblabel >> cfg=[];cfg.neighbours=neighbours; >> ft_neighbourplot(cfg,data) Using the gradiometer configuration from the dataset. the call to "ft_neighbourplot" took 1 seconds and an estimated 0 MB Selected channel MEG1941, which has 10 neighbours: MEG0121, MEG0131, MEG0141, MEG0341 Selected channel MEG2411, which has 9 neighbours: MEG0121, MEG0131, MEG0141, MEG0341 Selected channel MEG2411, which has 9 neighbours: MEG0121, MEG0131, MEG0141, MEG0341 Selected channel MEG2131, which has 6 neighbours: MEG0121, MEG0131, MEG0141, MEG0341 Selected channel MEG2211, which has 6 neighbours: MEG0121, MEG0131, MEG0141, MEG0341 -- Marco Buiatti, PhD CEA/DSV/I2BM / NeuroSpin INSERM U992 - Cognitive Neuroimaging Unit Bât 145 - Point Courrier 156 Gif sur Yvette F-91191 FRANCE Ph: +33(0)169.08.65.21 Fax: +33(0)169.08.79.73 E-mail: marco.buiatti@gmail.com http://www.unicog.org/pm/pmwiki.php/Main/MarcoBuiatti *********************************************** _______________________________________________ fieldtrip mailing list fieldtrip@donders.ru.nl http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


Jörn M. Horschig - 2011-11-10 16:10:47 +0100

Fix was provided by Mark Noordenbos: Hi Jörn, Sorry, I just found a small typo in the script. I think line 195 of ft_neighbourplot of should be str = sprintf('%s, ', cfg.neighbours(curSensId).neighblabel{:}); Best, Mark


Robert Oostenveld - 2011-11-11 11:19:55 +0100

I closed all bugs that were recently resolved.