<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="">
<div class="">Dear Andria and Nicole,</div>
<div class=""><br class="">
</div>
<div class="">Combining sensor types (gradiometers and magnetometers, or MEG and EEG) is indeed something that is not documented, and there is not yet a unanimous agreement in the community about how to do this best.</div>
<div class=""><br class="">
</div>
<div class="">But, I can suggest one simple solution that was discussed at a recent beamformer workshop hosted by the Aston MEG Centre in February. (I believe John Mosher made the initial suggestion.)</div>
<div class=""><br class="">
</div>
<div class="">As you probably know, the covariance matrix is an essential ingredient to constructing beamformer solutions. Different sensor types will have different scales and different noise properties, which then complicates the covariance between channels
 of different types.</div>
<div class=""><br class="">
</div>
<div class="">So, one way around this is to zero out the ‘cross’ terms of the covariance matrix, i.e., set to 0 the elements of the covariance matrix that result from the product of a magnetometer channel and a gradiometer channel.  This can be accomplished
 with something like the following code:</div>
<div class="">
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class="">
timelock = ft_timelockanalysis(cfg, data);</div>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class="">
 <br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class="">
[~,megmagidx]=intersect(data.label,ft_channelselection(<span style="color: #b245f3" class="">'MEGMAG'</span>,data.label));</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class="">
[~,meggradidx]=intersect(data.label,ft_channelselection(<span style="color: #b245f3" class="">'MEGGRAD'</span>,data.label));</div>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class="">
 <br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class="">
timelock.cov(meggradidx,megmagidx)=0;</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;" class="">
timelock.cov(megmagidx,meggradidx)=0;</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">In my experience, this allows source reconstruction using all channels, with results at least as good as analyzing the channels separately. This is not to say that is the best possible solution, but it is a simple one that should work well!</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Sarang</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 10 May 2017, at 09:33, Klink-3, N.E.C. van <<a href="mailto:N.vanKlink-2@umcutrecht.nl" class="">N.vanKlink-2@umcutrecht.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Hi Andria,<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">We have been struggling with the same problem, also using a 306-channel Neuromag system. We ended up correcting for the scale difference between
 magnetometer and gradiometer signals (i.e. noise 5e-15T vs 5e-13T/m). So we multiplied the signals of the magnetometers and the leadfield values of the magnetometers by a factor 100. This gave us the best result.<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Kind regards,<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Nicole<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<b class=""><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class="">Van:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: purple; text-decoration: underline;" class="">fieldtrip-bounces@science.ru.nl</a><span class="Apple-converted-space"> </span>[<a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: purple; text-decoration: underline;" class="">mailto:fieldtrip-bounces@science.ru.nl</a>]<span class="Apple-converted-space"> </span><b class="">Namens<span class="Apple-converted-space"> </span></b>Andria
 Pelentritou<br class="">
<b class="">Verzonden:</b><span class="Apple-converted-space"> </span>10 mei 17 1:52<br class="">
<b class="">Aan:</b><span class="Apple-converted-space"> </span><a href="mailto:fieldtrip@science.ru.nl" style="color: purple; text-decoration: underline;" class="">fieldtrip@science.ru.nl</a><br class="">
<b class="">Onderwerp:</b><span class="Apple-converted-space"> </span>[FieldTrip] combining gradiometer/magnetometer sensors - neuromag data<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
Greetings from Melbourne!<o:p class=""></o:p></p>
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
We've been using fieldtrip (v-20160801) for a while now and we are having issues when it comes to combining magnetometer and gradiometer MEG sensors types during (LCMV) beamforming for the Elekta Neuromag Triux 306-channel system. Beamforming the magnetometers
 or gradiometers separately on auditory evoked data works well, but we cannot successfully combine the two sensor types. We've played with the cfg.coilaccuracy variable as advised in one of the tutorials with no luck as there seem to be no obvious effects on
 the output. The documentation provides very little information on the topic.<o:p class=""></o:p></p>
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
What strategies would you recommend when trying to combine the Neuromag 306-channel system magnetometer/gradiometer data?<o:p class=""></o:p></p>
<div class="">
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">
Many thanks in advance for your help and many more thanks for releasing such a valuable toolbox!<br class="">
Warm regards<br class="">
Andria<o:p class=""></o:p></p>
</div>
</div>
</div>
<hr style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font size="-2" face="arial" class=""><i class="">De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender
 direct te informeren door het bericht te retourneren. Het Universitair Medisch Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de W.H.W. (Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd bij de Kamer van Koophandel
 voor Midden-Nederland onder nr. 30244197.</i></font></p>
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font size="-2" face="arial" color="green" class=""><i class="">Denk s.v.p aan het milieu voor u deze e-mail afdrukt.</i></font></p>
<hr style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font size="-2" face="arial" class=""><i class="">This message may contain confidential information and is intended exclusively for the addressee. If you receive this message unintentionally, please do not use the contents but notify the sender immediately
 by return e-mail. University Medical Center Utrecht is a legal person by public law and is registered at the Chamber of Commerce for Midden-Nederland under no. 30244197.</i></font></p>
<p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font size="-2" face="arial" color="green" class=""><i class="">Please consider the environment before printing this e-mail.</i></font></p>
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="mailto:fieldtrip@donders.ru.nl" style="color: purple; text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">fieldtrip@donders.ru.nl</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: purple; text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
</div>
<br class="">
</body>
</html>