<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Ion,<div><br></div><div>In principle, you could do a synthetic planar grdient computation on the 102 magnetometer channels in your data. I don't think that this is supported by FieldTrip though.</div><div>Obviously, you cannot do the planar gradient computation on the other 204 channels, because they already represent the magnetic field gradient.</div><div><br></div><div>Best,</div><div><br></div><div>Jan-Mathijs</div><div><br></div><div> <br><div><div>On Feb 23, 2012, at 10:11 AM, jan-mathijs schoffelen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><br><div>Begin forwarded message:</div><blockquote type="cite"><font class="Apple-style-span"><br></font><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Ion Lavado</b> <span dir="ltr"><<a href="mailto:lavado@gmail.com">lavado@gmail.com</a>></span><br>Date: 2012/2/21<br>
Subject: ft_megplanar problem for planar gradient calculation<br>To: <a href="mailto:fieldtrip-request@donders.ru.nl">fieldtrip-request@donders.ru.nl</a><br><br><br>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:<br>

<br>%************ READ WORD EVENT ************<br>cfg = [];                                          <br>cfg.dataset                 = '21_muti.fif';        <br>cfg.trialdef.eventtype      = 'STI101';<br>
cfg.trialdef.prestim        = 1;<br>
cfg.trialdef.poststim       = 1;<br>cfg.trialdef.eventvalue     = 1;                   <br>cfg = ft_definetrial(cfg);   <br>cfg.channel   = {'MEG'}; <br>cfg.demean        = 'yes';<br>cfg.baselinewindow = [-0.5 0];<br>

dataMuti21_words = ft_preprocessing(cfg);<br>%************ READ PICTURES EVENT ************<br>cfg = [];                                          <br>cfg.dataset                 = '21_muti.fif';        <br>cfg.trialdef.eventtype      = 'STI101';<br>

cfg.trialdef.prestim        = 1;<br>cfg.trialdef.poststim       = 1;<br>cfg.trialdef.eventvalue     = 6;                   <br>cfg = ft_definetrial(cfg);   <br>cfg.channel   = {'MEG'}; <br>cfg.demean        = 'yes';<br>

cfg.baselinewindow = [-0.5 0];<br>dataMuti21_pictures = ft_preprocessing(cfg);<br><br><br><br>%******* CALCULATE PLANAR GRADIENT ******<br>cfg = [];<br>cfg.planarmethod = 'sincos';<br>cfg_neighb.method    = 'distance';<br>

cfg.grad            = avg_words.grad;<br>cfg.neighbours       = ft_prepare_neighbours(cfg_neighb, dataMuti21_pictures);<br>avg_words_planar = ft_megplanar(cfg, dataMuti21_words);<br>avg_pictures_planar = ft_megplanar(cfg, dataMuti21_pictures);<br>

<br><br>HERE IS WHERE I GET THE ERROR: <br>??? Error using ==> ft_checkdata at 359<br>This function requires ctf151, ctf275, bti148, bti248, itab153, yokogawa160 or yokogawa64 data as input, but you are giving<br>neuromag306 data.<br>

<br>Error in ==> ft_megplanar at 107<br>data = ft_checkdata(data, 'datatype', {'raw' 'freq'}, 'feedback', 'yes', 'hassampleinfo', 'yes', 'ismeg', 'yes', 'senstype',<br>

{'ctf151', 'ctf275', 'bti148', 'bti248', 'itab153', 'yokogawa160', 'yokoga <br><br><br>Can't i use neuromag306 data type sens for this function? any solution? THANKS IN ADVANCE<span class="HOEnZb"><font color="#888888"><br>

<br>Ion<br>
</font></span></div></blockquote></div><br></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>