[FieldTrip] Fwd: ft_megplanar problem for planar gradient calculation
"Jörn M. Horschig"
jm.horschig at donders.ru.nl
Thu Feb 23 10:26:21 CET 2012
Hi,
I might be mistaken since I am not using a neuromag system, but as far
as I know a Neuromag system already has planar gradiometers? If so, then
there would be no need to apply ft_megplanar (and actually, it would be
an meaningless operation)
Best,
Jörn
On 2/23/2012 10:11 AM, jan-mathijs schoffelen wrote:
>
>
> Begin forwarded message:
>>
>> ---------- Forwarded message ----------
>> From: *Ion Lavado* <lavado at gmail.com <mailto:lavado at gmail.com>>
>> Date: 2012/2/21
>> Subject: ft_megplanar problem for planar gradient calculation
>> To: fieldtrip-request at donders.ru.nl
>> <mailto:fieldtrip-request at donders.ru.nl>
>>
>>
>> Hello, i'm doing the cluster based permutations tests on
>> time-frequency data tutorial. I'm using an Elekta neuromag with 306
>> channels. My problem comes when i try to calculate the planar
>> gradient. This is what i do:
>>
>> %************ READ WORD EVENT ************
>> cfg = [];
>> cfg.dataset = '21_muti.fif';
>> cfg.trialdef.eventtype = 'STI101';
>> cfg.trialdef.prestim = 1;
>> cfg.trialdef.poststim = 1;
>> cfg.trialdef.eventvalue = 1;
>> cfg = ft_definetrial(cfg);
>> cfg.channel = {'MEG'};
>> cfg.demean = 'yes';
>> cfg.baselinewindow = [-0.5 0];
>> dataMuti21_words = ft_preprocessing(cfg);
>> %************ READ PICTURES EVENT ************
>> cfg = [];
>> cfg.dataset = '21_muti.fif';
>> cfg.trialdef.eventtype = 'STI101';
>> cfg.trialdef.prestim = 1;
>> cfg.trialdef.poststim = 1;
>> cfg.trialdef.eventvalue = 6;
>> cfg = ft_definetrial(cfg);
>> cfg.channel = {'MEG'};
>> cfg.demean = 'yes';
>> cfg.baselinewindow = [-0.5 0];
>> dataMuti21_pictures = ft_preprocessing(cfg);
>>
>>
>>
>> %******* CALCULATE PLANAR GRADIENT ******
>> cfg = [];
>> cfg.planarmethod = 'sincos';
>> cfg_neighb.method = 'distance';
>> cfg.grad = avg_words.grad;
>> cfg.neighbours = ft_prepare_neighbours(cfg_neighb,
>> dataMuti21_pictures);
>> avg_words_planar = ft_megplanar(cfg, dataMuti21_words);
>> avg_pictures_planar = ft_megplanar(cfg, dataMuti21_pictures);
>>
>>
>> HERE IS WHERE I GET THE ERROR:
>> ??? Error using ==> ft_checkdata at 359
>> This function requires ctf151, ctf275, bti148, bti248, itab153,
>> yokogawa160 or yokogawa64 data as input, but you are giving
>> neuromag306 data.
>>
>> Error in ==> ft_megplanar at 107
>> data = ft_checkdata(data, 'datatype', {'raw' 'freq'}, 'feedback',
>> 'yes', 'hassampleinfo', 'yes', 'ismeg', 'yes', 'senstype',
>> {'ctf151', 'ctf275', 'bti148', 'bti248', 'itab153', 'yokogawa160',
>> 'yokoga
>>
>>
>> Can't i use neuromag306 data type sens for this function? any
>> solution? THANKS IN ADVANCE
>>
>> Ion
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel: +31-(0)24-36-68493
Web: http://www.ru.nl/donders
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120223/bc43a762/attachment-0001.html>
More information about the fieldtrip
mailing list