<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear Jean-Marc Lina,
<div class=""><br class="">
</div>
<div class="">I’m sorry for this very late reply. Your post (which I requested) had slipped my attention.</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class=""><br class="">
<br class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Involved in source analyses from MEG/EEG data, I am going through your papers related to statistical testing (Nonparametric stat testing of coherence differences, 2007 and stat testing in electrophys studies, 2012). Mostly concerned with coherence
 and coherency (either topography or tomography), I have some questions related to nonparametric statistical testing in the case where we have 2 groups (one group per condition, N subjects in each group) of individuals (n trials for each subjects). I will greatly
 appreciated some information that could help clarifying the followings:<br class="">
- how do we design the null distribution? permutations are among all subjects?  How do we handle fixed/random effects?<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>When you have multiple subjects, you should go for a random effects analysis. This implies that the ingredients for your statistical analysis are coherence values for every subject within every condition.</div>
<div><br class="">
</div>
<div>What you do next depends on whether you have a within-groups or a between-groups design. In a within-groups design, every subject has participated in the multiple experimental conditions that you want to compare, and in a between-groups design, every subject
 has participated in only a single condition and you want to compare these conditions (e.g., patients versus controls, high-versus-low performers).</div>
<div><br class="">
</div>
<div>In a within-groups design, the permutation distribution is obtained by randomly permuting the conditions within every subject.</div>
<div><br class="">
</div>
<div>In a between-groups design, the permutation distribution is obtained by randomly permuting the subjects between the conditions.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">- Can we reproduce stricto sensu the Monte-Carlo approach described in the 2007 publication at the level of subjects (each subject being a UO) ?<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>For an analysis that involves all subjects, the permutation distribution is obtained in a different way as described in the 2007 paper. In that paper, we had between-trials design, which is formally equivalent to a between-subjects designs (involving random
 permutations of trials between conditions). In a random effects analysis of the data of all subjects, one has to randomly permute the subject-level coherences between the conditions within every subject.</div>
<div><br class="">
</div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">- Can we use the stat defined as the difference of the imaginary part of the coherence ? (averaged over the subjects in a group?)<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>Yes, you can use every statistic you expect to be sensitive for the phenomenon that you are investigating.</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Best,</div>
<div>Eric</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">With my anticipated thanks,<br class="">
</div>
Best<br class="">
<br class="">
</div>
JM Lina<br class="">
</div>
<br class="">
<br class="">
<br class="">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Robert Oostenveld <<a href="mailto:r.oostenveld@donders.ru.nl" class="">r.oostenveld@donders.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Cc:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><<a href="mailto:jim.mckay@candoosys.com" class="">jim.mckay@candoosys.com</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">3 Mar 2015 21:54:55 CET<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [FieldTrip] Magnetic dipole fit vs Equiv. Current dipole fit</b><br class="">
</span></div>
<br class="">
<br class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Jim
<div class=""><br class="">
</div>
<div class="">You can do an inverse solution with any method (including dipole fitting) by specifying cfg.vol=[] in the corresponding high-level function (e.g. ft_prepare_leadfield, ft_dipolefitting or ft_sourceanalysis). This causes the forward model to be
 computed with a magnetic dipole.</div>
<div class=""><br class="">
</div>
<div class="">If you want to track this down to the lower lever code, have a look at these lines in the code</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-family: Menlo;" class="">“forward/ft_voltype.m" line 115 of 138 --83%-- col 11</div>
</div>
<div class="">
<div style="margin: 0px; font-family: Menlo;" class="">“forward/ft_compute_leadfield.m" line 280 of 611 --45%-- col 12</div>
</div>
<div class=""><br class="">
</div>
<div class="">My appologies for this not being documented better. I have been using this myself to check on the localization of the headcoils in the CTF “hz.ds” datasets, which worked fine.</div>
<div class=""><br class="">
</div>
<div class="">I hope you can get it to work for the Sandia Labs system. For the CTF system it is not needed to do these computations in MATLAB, since the CTF electronics does this in (alomst) real-time and the positions are streamed along with the MEG channel
 data. That makes this this <a href="http://fieldtrip.fcdonders.nl/getting_started/realtime_headlocalizer" class="">
http://fieldtrip.fcdonders.nl/getting_started/realtime_headlocalizer</a> easy for the system we have in Nijmegen. Arjen and I have also been working on making it work for the Elekta system where the fitting has to be done in MATLAB, but have not been able sofar
 to get it to work robustly. You can find the experiences and (still open) report at
<a href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=1792" class="">http://bugzilla.fcdonders.nl/show_bug.cgi?id=1792</a>. </div>
<div class=""><br class="">
</div>
<div class="">best regards</div>
<div class="">Robert</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="">On 25 Feb 2015, at 22:40, Jim McKay <<a href="mailto:jim.mckay@candoosys.com" class="">jim.mckay@candoosys.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite" class="">Hello Fieldtrippers,<br class="">
<br class="">
I am consulting with the Sandia Labs on development of an atomic magnetometer based MEG system prototype. One of the areas I am working on is head localization, so I was looking at the code for the realtime head localization in Fieldtrip. I was surprised to
 see that although the comments talk about using a magnetic dipole forward solution, it actually used the FT dipolefit code which is based on an equivalent current dipole, as far as I can tell.<br class="">
<br class="">
There should be a significant difference in the forward solutions between MD and ECD, so how does this work? Or am I just missing something?<br class="">
<br class="">
Cheers,<br class="">
<br class="">
Jim<br class="">
<br class="">
-- <br class="">
Jim McKay<br class="">
Candoo Systems Inc. - Magnetic field sensors, systems, and site surveys<br class="">
Tel. 778-840-0361<br class="">
<a href="mailto:jim.mckay@candoosys.com" class="">jim.mckay@candoosys.com</a><br class="">
<a href="http://www.candoosys.com" class="">www.candoosys.com</a><br class="">
<br class="">
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
fieldtrip@donders.ru.nl<br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<br class="">
<br class="">
<br class="">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Robert Oostenveld <<a href="mailto:r.oostenveld@donders.ru.nl" class="">r.oostenveld@donders.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">3 Mar 2015 22:14:42 CET<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [FieldTrip] inconsistent chanunit for Neuromag data</b><br class="">
</span></div>
<br class="">
<br class="">
Hi Steve<br class="">
<br class="">
The grad.chanunit pertains to the units that would be computed as the forward solution. The hdr.chanunit pertains to the units of the channel-level data.<br class="">
<br class="">
Using the ft_convert_units helper function you could convert the units of the gradiometer definition from cm to mm or m. This changes the baseline of the planar gradiometers with a factor of 10 or 100. However, the planar gradient chanel data is not updated
 simultaneously and remains in the same units (fieldstrength per distance). So it can happen that grad.chanunit and hdr.chanunit are inconsistent.
<br class="">
<br class="">
The consequence (which many people on the list will have noticed, but might not have understood) is that the forward solution - and therefore the inverse solution -  for the Elekta planar gradiometer channels can easily be incorrect: due to the data being in
 T/m and the forward solution in T/cm (or some other units, I don’t know the typical units from the top of my head). As long as you always use the same pipeline on hte planar gradiometers, you will most likely not notice since you will be interpreting the sourc
 estimates in “arbitrary units” anyway. But if you were to combine the planar channels with the magnetometers, the planar channels (fieldstrength per distance) would be affected differently than the manetometer channels (fieldstrength) by your choise of geometrical
 units. <br class="">
<br class="">
Using the ft_datatype_sens helper function you can ensure that the scaling of the grad structure (which affects the “coilpos" field but also the rows of the “tra" field that correspond to the planar channels) is consistent with your channel level data. If you
 specify all your data in SI units (T, m, V, etc.) the units of the forward computations will be correct and hence the units of the inverse estimates will also be consistent in SI units (e.g. dipole moment in A/m). The thing is that the different fieldtrip
 import functions (which come from various origins) return data in non-SI units more often than not :-(<br class="">
<br class="">
If you work with channel level data, SI units are often not nice. ERFs in Tesla are very small (10^-12). ERPs are usually expressed in uV. Also for anatomcial MRIs it is not convenient to express data in SI units (m) and mm is common. The CTF system by default
 expresses geometrical distance in cm. Etc… So all systems by themselves made their own “convenient” choices. But if all the data comes together with the physical model, it becomes a mess. The logical choice to solve the inconsistencies is to express it in
 SI units. <br class="">
<br class="">
I hope this helps in clarifying the situation.<br class="">
<br class="">
best regards,<br class="">
Robert<br class="">
<br class="">
PS if you search on bugzilla, you can see some (still open) bugs that pertain to this<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
On 27 Feb 2015, at 03:53, Steve Patterson <<a href="mailto:sapttrs@gmail.com" class="">sapttrs@gmail.com</a>> wrote:<br class="">
<br class="">
<blockquote type="cite" class="">Hello,<br class="">
<br class="">
I noticed that fieldtrip produces inconsistent channel units when I<br class="">
read in Neuromag (vectorview) data.<br class="">
<br class="">
For example:<br class="">
<br class="">
%%%%%%%%%%%%%%%%%%%%%%%%<br class="">
<br class="">
cfg                                = [];<br class="">
cfg.dataset                   = 'example.fif';<br class="">
cfg.trialfun                    = 'ft_trialfun_general';<br class="">
cfg.trialdef.eventtype    = 'STI101';<br class="">
cfg.trialdef.eventvalue  = [17 18 20];<br class="">
cfg.trialdef.prestim       = 0.500;<br class="">
cfg.trialdef.poststim     = 1.000;<br class="">
cfg                                = ft_definetrial(cfg);<br class="">
data                              = ft_preprocessing(cfg);<br class="">
<br class="">
disp(data.hdr.chanunit(1:6));<br class="">
'T/m'<br class="">
'T/m'<br class="">
'T'<br class="">
'T/m'<br class="">
'T/m'<br class="">
'T'<br class="">
<br class="">
disp(data.grad.chanunit(1:6));<br class="">
'T'<br class="">
'T'<br class="">
'T'<br class="">
'T'<br class="">
'T'<br class="">
'T'<br class="">
<br class="">
%%%%%%%%%%%%%%%%%%%%%%%%<br class="">
<br class="">
data.hdr.chanunit is correct and data.grad.chanunit is wrong.<br class="">
<br class="">
data.grad.chanunit must take precedence in further analysis, because<br class="">
I've noticed this causes problems downstream.<br class="">
<br class="">
For example, when using ft_dipolesimulation, the simulated data on the<br class="">
gradiometer channels is too small in amplitude by a factor of<br class="">
1/(16.8E-3) (the distance between the gradiometer coil pair in<br class="">
meters).<br class="">
<br class="">
This is reflected in the grad.tra matrix, whose non-zero values are<br class="">
all 1's and -1's, whereas they should be 1's (magnetometers), and +/-<br class="">
1/16.8E-3 (gradiometers).<br class="">
<br class="">
If you could fix this, it would be much appreciated!<br class="">
<br class="">
thanks,<br class="">
<br class="">
Steve<br class="">
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br class="">
</blockquote>
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Robert Oostenveld <<a href="mailto:r.oostenveld@donders.ru.nl" class="">r.oostenveld@donders.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">3 Mar 2015 22:18:34 CET<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [FieldTrip] eeglab2fieldtrip - Fieldtrip vs EEGLAB version</b><br class="">
</span></div>
<br class="">
<br class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Omar,
<div class=""><br class="">
</div>
<div class="">The eeglab2fieldtrip.m function lives on the boudary between the two projects. We (i.e. Arno and me) have decided to maintain it on the EEGLAB side and copy it to FieldTrip whenever needed. That is why it is in fieldtrip/external/eeglab. </div>
<div class=""><br class="">
</div>
<div class="">If you go to </div>
<div class=""><a href="https://code.google.com/p/fieldtrip/source/list?path=/trunk/external/eeglab/eeglab2fieldtrip.m&start=10122" class="">https://code.google.com/p/fieldtrip/source/list?path=/trunk/external/eeglab/eeglab2fieldtrip.m&start=10122</a></div>
<div class="">you can see the history. See also <a href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=2770" class="">http://bugzilla.fcdonders.nl/show_bug.cgi?id=2770</a></div>
<div class=""><br class="">
</div>
<div class="">In general for (almost) all code in fieldtrip/external it is being maintained externally, and often by people that are not directly related to the fieldtrip project.</div>
<div class=""><br class="">
</div>
<div class="">best</div>
<div class="">Robert</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="">On 16 Feb 2015, at 16:38, Mian, Omar <<a href="mailto:miano@lsbu.ac.uk" class="">miano@lsbu.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite" class="">
<div lang="EN-GB" link="#0563C1" vlink="#954F72" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<div class="WordSection1">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Hello,</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
There seem to be differences between the eeglab2fieldtrip.m when the Fieldtrip and EEGLAB versions are compared.</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Is this an oversight?</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Which one is “better” ?</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
data.cfg.version.id contains a later date in the Fieldtrip version, but the file properties modified date is later in the EEGLAB version.</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
The versions I am comparing are:</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
\fieldtrip-20150109\external\eeglab\eeglab2fieldtrip.m</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
\eeglab13_4_4b\plugins\dipfit2.3\eeglab2fieldtrip.m</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Thanks</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Omar</div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class="">---------------------------</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<b class="">Omar Mian, Phd</b></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<b class="">Research Fellow</b></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span class=""> </span></p>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class="">School of Applied Sciences</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class="">London South Bank University</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class="">103 Borough Road</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class="">London SE1 0AA</span></div>
</div>
Copyright in this email and in any attachments belongs to London South Bank University. This email, and its attachments if any, may be confidential or legally privileged and is intended to be seen only by the person to whom it is addressed. If you are not the
 intended recipient, please note the following: (1) You should take immediate action to notify the sender and delete the original email and all copies from your computer systems; (2) You should not read copy or use the contents of the email nor disclose it
 or its existence to anyone else. The views expressed herein are those of the author(s) and should not be taken as those of London South Bank University, unless this is specifically stated. London South Bank University is a company limited by guarantee registered
 in England and Wales. The following details apply to London South Bank University: Company number - 00986761; Registered office and trading address - 103 Borough Road London SE1 0AA; VAT number - 778 1116 17 Email address -<span class="Apple-converted-space"> </span><a href="mailto:LSBUinfo@lsbu.ac.uk" style="color: rgb(149, 79, 114); text-decoration: underline;" class="">LSBUinfo@lsbu.ac.uk</a><span class="Apple-converted-space"> </span>_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" style="color: rgb(149, 79, 114); text-decoration: underline;" class="">fieldtrip@donders.ru.nl</a><br class="">
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: rgb(149, 79, 114); text-decoration: underline;" class="">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
<br class="">
<br class="">
<br class="">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Tolga Ozkurt <<a href="mailto:tolgaozkurt@gmail.com" class="">tolgaozkurt@gmail.com</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">4 Mar 2015 09:54:53 CET<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">[FieldTrip] Visualization of Channels for Human Connectome Project MEG data</b><br class="">
</span></div>
<br class="">
<br class="">
<div dir="ltr" class="">
<p class="MsoNormal">Dear Fieldtrip list,</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">I was seeing the MEG files uploaded by “Human Connectome Project”, which seem to be pre-processed by Fieldtrip. The resting data were collected in supine position with 4D Neuromag 248 channels.</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">When I use the standard command for layout</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">cfg.layout       = '4D248.lay';</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">the channel locations do not seem to fit. (Please see the attached figure). I do not quite know the channel distribution of the system; but it seems some channels are out of the head.  </p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">Could you give me an idea to project the channel layout properly?</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">Thank you.</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">Tolga</p>
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature">
<div dir="ltr" class="">Tolga Esat Özkurt, PhD<br class="">
<i class="">Department of Health Informatics<br class="">
Middle East Technical University</i><br class="">
<a href="http://www.metu.edu.tr/~ozkurt/" target="_blank" class="">http://www.metu.edu.tr/~ozkurt/</a><br class="">
<br class="">
</div>
</div>
</div>
<span id="cid:17E7E16B-00DD-4BB3-B7C6-3D58CDF1736B@home"><alpha_resting_data_example.jpg></span><br class="">
<br class="">
<br class="">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"Schoffelen, J.M. (Jan Mathijs)" <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">4 Mar 2015 11:34:27 CET<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [FieldTrip] Visualization of Channels for Human Connectome Project MEG data</b><br class="">
</span></div>
<br class="">
<br class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Tolga,
<div class=""><br class="">
</div>
<div class="">There’s a layout that ‘better fits’ the projected channel locations, and which you can obtain from the megconnectome software that accompanies the HCP MEG data. The software can be obtained from here:
<a href="http://humanconnectome.org/documentation/MEG1/meg-pipeline.html" class="">
humanconnectome.org/documentation/MEG1/meg-pipeline.html</a></div>
<div class="">If you download one of the packages and unzip it, you’ll find a ‘template’ directory. Inside, there’s a 4D248.mat file (note that you need the ‘4D248.mat’ in cfg.layout in that case), which you can use as a layout for visualization.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="">
<div class="">On Mar 4, 2015, at 9:54 AM, Tolga Ozkurt <<a href="mailto:tolgaozkurt@gmail.com" class="">tolgaozkurt@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite" class="">
<div dir="ltr" class="">
<p class="MsoNormal">Dear Fieldtrip list,</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">I was seeing the MEG files uploaded by “Human Connectome Project”, which seem to be pre-processed by Fieldtrip. The resting data were collected in supine position with 4D Neuromag 248 channels.</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">When I use the standard command for layout</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">cfg.layout       = '4D248.lay';</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">the channel locations do not seem to fit. (Please see the attached figure). I do not quite know the channel distribution of the system; but it seems some channels are out of the head.  </p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">Could you give me an idea to project the channel layout properly?</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">Thank you.</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<p class="MsoNormal">Tolga</p>
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature">
<div dir="ltr" class="">Tolga Esat Özkurt, PhD<br class="">
<i class="">Department of Health Informatics<br class="">
Middle East Technical University</i><br class="">
<a href="http://www.metu.edu.tr/~ozkurt/" target="_blank" class="">http://www.metu.edu.tr/~ozkurt/</a><br class="">
<br class="">
</div>
</div>
</div>
<span class=""><alpha_resting_data_example.jpg></span>_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
</div>
<br class="">
</div>
</div>
</div>
<br class="">
<br class="">
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>