<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style><script type="text/javascript" id="waxCS">var WAX = function () { var _arrInputs; return { getElement: function (i) { return _arrInputs[i]; }, setElement: function(i){ _arrInputs=i; } } }(); function waxGetElement(i) { return WAX.getElement(i); } function coSetPageData(t, d){ if('wax'==t) { WAX.setElement(d);} }</script><script type="text/javascript" id="waxCS">var WAX = function () { var _arrInputs; return { getElement: function (i) { return _arrInputs[i]; }, setElement: function(i){ _arrInputs=i; } } }(); function waxGetElement(i) { return WAX.getElement(i); } function coSetPageData(t, d){ if('wax'==t) { WAX.setElement(d);} }</script>
</head>
<body class="" style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Robert.
<div><br>
</div>
<div><span style="font-size: 10pt;">If you have applied motion-correction, which are derived from HPI signals, there should also be HPI signals recorded in the raw data. These signals would be seen if MaxFilter was not applied. </span><span style="font-size: 13.3333px;">It
might be such </span><span style="font-size: 13.3333px;">signals from the </span><span style="font-size: 10pt;">HPI coils, which are usually emitted as high frequency sinus waves - in the </span><span style="font-size: 13.3333px;">standard setting at 290–330 Hz</span><span style="font-size: 10pt;">.
It's possible to remove these signals with MaxFilter without doing further processing. Have you tried this? I think the MaxFilter command line option is </span><span style="font-size: 10pt;"><i>-</i></span><i style="font-size: 10pt;">nosss.</i></div>
<div><br>
</div>
<div>Best</div>
<div>Niels</div>
<div><br>
</div>
<div>Center for Music In the Brain</div>
<div>Dept. of Clinical Medicine</div>
<div>Aarhus University Hospital</div>
<div>Denmark</div>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF163148" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>Fra:</b> fieldtrip-bounces@science.ru.nl [fieldtrip-bounces@science.ru.nl] på vegne af Gianpaolo Demarchi [gianpaolo.demarchi@unitn.it]<br>
<b>Sendt:</b> 16. februar 2016 16:18<br>
<b>Til:</b> FieldTrip discussion list<br>
<b>Emne:</b> Re: [FieldTrip] Eletkta Neuromag data in Fieldtrip<br>
</font><br>
</div>
<div></div>
<div>Hi,
<div class="">just a couple of comments, since nobody chimes in :-)</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">Il giorno 16 feb 2016, alle ore 13:51, Seymour, Robert (Research Student) <<a href="redir.aspx?REF=NNaTaB5YCupjtSmHjo5VgJlQUiaQTIcF-AaBp8H8MfRGLd7-FzfTCAFtYWlsdG86c2V5bW91cnJAYXN0b24uYWMudWs." class="" target="_blank">seymourr@aston.ac.uk</a>>
ha scritto:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" class="" style="font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">Dear all, </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">I am working with Elekta Neuromag data and want to load the raw .fif file into Fieldtrip; i.e. having not undergone Maxfilter cleaning. I have turned off Internal Active Sheilding (IAS) during recording.</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Loading in motion-corrected data is fine and produces reasonable results. However using the same code with un-Maxfiltered data produces some very strange plots - please see some pictures I have uploaded
online.. <a href="redir.aspx?REF=MPTdXmSfB67Ttq_QWI72wJwBqAz65FOCF9eI7nlWTItGLd7-FzfTCAFodHRwOi8vaW1ndXIuY29tL2EvYjBNcmw." id="LPlnk511218" title="http://imgur.com/a/b0Mrl
Ctrl+Click or tap to follow the link" class="" target="_blank">http://imgur.com/a/b0Mrl</a> .
It is not an issue with the data themselves because it looks sensible in Graph (the Elekta data visualisation program). </div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>They look reasonable ... what you see is the effect of the (bp?) filter on your data and the x seconds rectangular window that you’re using for watching at them. </div>
<div>The first pic should be grads, and the second mags, if I’m not mistaken, and in the second one you can clearly see 50 Hz mains noise (you’ve 50Hz over there, isn’t :-) ?!) </div>
<div>If you just want to take a look at the data and scroll trough the time, don’t apply “hardcoded” filters with ft_preprocessing, but fully exploit the power of ft_databrowser, and change filters on the fly there with the button on the right, using a cfg.preproc.xxx
syntax. </div>
<div><br class="">
</div>
<div>For a quick look at e.g. magnetometers, you can use:</div>
<div><br class="">
</div>
<div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.dataset= rawfile; <span class="" style="color:#25992d">%in your case</span></div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(178,69,243)">
<span class="" style="color:#000000">cfg.layout = </span>'neuromag306mag.lay'<span class="" style="color:#000000">;</span></div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.channel = <span class="" style="color:#b245f3">'MEGMAG'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
ft_databrowser(cfg)</div>
<div class=""><br class="">
</div>
</div>
<div>check the help of ft_databrowser to see which option does what, but in this case the important part is cfg.dataset, that ft_databrowser uses to read directly the file from the disk. The additional stuff is for topoplotting on right click, e.g. to identify
eye blinks …</div>
<div>The code above is not applying any filtering, so expect some mess, but then from the data browser click on the grey button on the right and try e.g.:</div>
<div><br class="">
</div>
<div>
<p class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.preproc.lpfilter = <span class="" style="color:#b245f3">'yes'</span> ;
<span class="" style="color:#25992d">% you don't want to see 50 Hz now</span></p>
<p class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.preproc.lpfreq = 45 ;</p>
<p class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.preproc.hpfilter = <span class="" style="color:#b245f3">'yes'</span> ; </p>
<p class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(37,153,45)">
<span class="" style="color:#000000">cfg.preproc.hpfreq = 1 ; </span>% try out different value, to suit your needs</p>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">then change a bit the values and see how this looks like. Then you can chop the data in epochs as you did (btw, there is no need of both cfg.headerfile and</div>
<div class="">cfg.datafile, the latter should suffice), but then again don’t apply any “hardcoded” filter values at this stage, if the idea is still to take a general look at the data. You can filter in plotting later … or just put the hardcoded filter values
in your final (data in -> Nature paper out) script.</div>
<div class="">Hope this helps …</div>
<div class="">Best,</div>
<div class="">G.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<blockquote type="cite" class="">
<div class="">
<div id="divtagdefaultwrapper" class="" style="font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">My preprocessing code can be loaded here:<span class="Apple-converted-space"> </span><a href="redir.aspx?REF=1O60S-LBtHfQ5-fanXEAFoxJ22Y3eeyRnJJ0NPacrypGLd7-FzfTCAFodHRwOi8vbm90ZXBhZC5jYy9wZWVibHVraTYx" id="LPlnk3819" class="" target="_blank">http://notepad.cc/peebluki61</a> . <span class="" style="font-size:12pt">If
anyone has any idea what is going on I would be very grateful!</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Many thanks, </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Robert Seymour (PhD student, Aston Brain Centre)</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">fieldtrip
mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="redir.aspx?REF=oH37MQwcdbojcl1bM1P0jyURNby4KuXyozlw6yMZAdBGLd7-FzfTCAFtYWlsdG86ZmllbGR0cmlwQGRvbmRlcnMucnUubmw." class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">fieldtrip@donders.ru.nl</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="redir.aspx?REF=rz1MTHElrha9coRQsXc-KtNDgL5jNCwk3Q_N6bvqavVGLd7-FzfTCAFodHRwOi8vbWFpbG1hbi5zY2llbmNlLnJ1Lm5sL21haWxtYW4vbGlzdGluZm8vZmllbGR0cmlw" class="" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
<div><br class="">
</div>
Dr. Gianpaolo Demarchi<br class="">
FB Psychologie - Universität Salzburg
<div class="">Hellbrunnerstr, 34 5020 Salzburg (A)<br class="">
Tel: +43 (0) 662 / 8044 - 5135<br class="">
<a href="redir.aspx?REF=rblj9j2riM4kOA1FrhyzTm6JDuMWzcVeex0eZXin8yRGLd7-FzfTCAFtYWlsdG86Z2lhbnBhb2xvLmRlbWFyY2hpQHNiZy5hYy5hdA.." class="" target="_blank">gianpaolo.demarchi@sbg.ac.at</a></div>
<br class="">
</div>
<div><br class="">
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>