<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear community,
<div class=""><br class="">
</div>
<div class="">Please see the forwarded message below. It seems as if eeglab2fieldtrip needs to be updated in order to return data structures that are robustly compatible with the fieldtrip code. I suspect that some necessary fields need to be adjusted/added.
 No doubt some of you have run into this and I would appreciate if you could contribute a solution with an updated version of eeglab2fieldtrip through a pull request on github.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes and happy computing,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
J.M.Schoffelen, MD PhD<br class="">
Associate PI, VIDI-fellow - PI, language in interaction<br class="">
Telephone: +31-24-3614793</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Physical location: room 00.028</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<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(0, 0, 0, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Aiyush Bansal <<a href="mailto:aiyush.bansal@mail.utoronto.ca" class="">aiyush.bansal@mail.utoronto.ca</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(0, 0, 0, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">LCMV Beamformer in Fieldtrip</b><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(0, 0, 0, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">5 March 2019 at 04:20:29 GMT+1<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(0, 0, 0, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>" <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
</span></div>
<br class="">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="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; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear Dr. Schoffelen,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<p style="margin-top: 0px; margin-bottom: 16px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
I'm using an EEG data structure and want to use the fieldtrip toolbox to perform the LCMV Beamformer algorithm as outlined in this tutorial: <a rel="nofollow" href="http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv/" id="LPlnk650470" class="OWAAutoLink" previewremoved="true" style="box-sizing: border-box; background-color: transparent; color: rgb(3, 102, 214);">http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv/</a></p>
<div id="LPBorder_GT_15517559796590.9458312505849289" style="margin-bottom: 20px; overflow: auto; width: 768px; text-indent: 0px;" class="">
<table id="LPContainer_15517559796520.8990944816028181" role="presentation" cellspacing="0" style="width: 691.1875px; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top-width: 1px; border-top-style: dotted; border-top-color: rgb(200, 200, 200); border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(200, 200, 200);" class="">
<tbody class="">
<tr valign="top" style="border-spacing: 0px;" class="">
<td id="TextCell_15517559796540.18234842177563815" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" class="">
<div id="LPRemovePreviewContainer_15517559796540.8891527853457757" class=""></div>
<div id="LPTitle_15517559796540.24806999540308383" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, 'Segoe UI Light', 'Segoe WP Light', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; line-height: 21px;" class="">
<a id="LPUrlAnchor_15517559796550.8934284712483116" href="http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv/" target="_blank" style="text-decoration: none;" class="">Localizing sources using beamformer techniques - FieldTrip toolbox</a></div>
<div id="LPMetadata_15517559796560.6538695675947876" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;" class="">
<a href="http://www.fieldtriptoolbox.org/" class="">www.fieldtriptoolbox.org</a></div>
<div id="LPDescription_15517559796570.8013334939902585" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" class="">
Averaging and computation of the covariance matrix. The function ft_timelockanalysis makes averages of all the trials in a data structure and also estimates the covariance.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br class="">
<p style="margin-top: 0px; margin-bottom: 16px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
I converted the EEG data to fieldtrip using:</p>
<p style="margin-top: 0px; margin-bottom: 16px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
<code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; background-color: rgba(27, 31, 35, 0.0470588); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin: 0px; padding: 0.2em 0.4em;" class="">data=eeglab2fieldtrip(EEG,'preprocessing','none');</code></p>
<p style="margin-top: 0px; margin-bottom: 16px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
Then, I tried to compute the covariance matrix using:</p>
<pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; background-color: rgb(246, 248, 250); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; color: rgb(36, 41, 46);" class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin: 0px; padding: 0px; border: 0px; word-break: normal; display: inline; line-height: inherit; overflow: visible; overflow-wrap: normal; background-position: initial initial; background-repeat: initial initial;" class="">cfg                  = [];
cfg.covariance       = 'yes';
timelock             = ft_timelockanalysis(cfg, data);
</code></pre>
<p style="margin-top: 0px; margin-bottom: 16px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
Note, that in order to use ft_timelockanalysis function, the data has to be organized in a structure obtained from ft_preprocessing but that function is built for fieldtrip data and I had already sent 'preprocessing' as one of the arguments to eeglab2fieldtrip.</p>
<p style="margin-top: 0px; margin-bottom: 16px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
In any case, as soon as I call ft_timelockanalysis, I get the following error:</p>
<pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; background-color: rgb(246, 248, 250); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; color: rgb(36, 41, 46);" class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin: 0px; padding: 0px; border: 0px; word-break: normal; display: inline; line-height: inherit; overflow: visible; overflow-wrap: normal; background-position: initial initial; background-repeat: initial initial;" class="">Reference to non-existent field 'dimord'.

Error in dimlength (line 74)
      elseif strcmp(data.(fld), 'rpt_pos')

Error in fixsampleinfo (line 49)
  ntrial = dimlength(data, 'rpt');

Error in ft_datatype_timelock (line 146)
      timelock = fixsampleinfo(timelock);

Error in ft_checkdata (line 270)
  data = ft_datatype_timelock(data, 'hassampleinfo', hassampleinfo);

Error in ft_timelockanalysis (line 101)
data = ft_checkdata(data, 'datatype', {'raw+comp', 'raw'}, 'feedback', 'yes', 'hassampleinfo', 'yes');
</code></pre>
<div style="margin-top: 0px; margin-bottom: 0px; box-sizing: border-box; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;" class="">
All of this works with the dataset included as part of the tutorial. I've tried to compare the structure of the two data sets and I've noticed that the data obtained from eeglab2fieldtrip is missing several fields. The data in these fields is already in the
 eeglab data but it wasn't added which is why the ft_timelockanalysis is failing since those fields don't exist.</div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div class=""><br class="">
</div>
<div class=""><span style="color: rgb(36, 41, 46); font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 12pt;" class="">Hence, I was wondering if you could please know what the problem could be or if there is a way to fix this. All I am
 trying to do is this LCMV Beamformer analysis which I have only been able to find in fieldtrip. My data is in eeglab.</span></div>
<div class=""><span style="color: rgb(36, 41, 46); font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 12pt;" class=""><br class="">
</span></div>
<div class=""><span style="color: rgb(36, 41, 46); font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 12pt;" class="">Sincerely,</span></div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="font-size: 14px; margin: 0px;" class=""><font color="#333333" face="Helvetica Neue" class=""><b class="">Aiyush Bansal, M.D.</b></font></div>
<div style="color: rgb(33, 33, 33); font-size: 14px; margin: 0px;" class=""><font face="Helvetica Neue" color="#333333" class="">MASc Candidate - IBBME</font></div>
<div style="color: rgb(33, 33, 33); font-size: 14px; margin: 0px;" class=""><font face="Helvetica Neue" color="#333333" class="">University of Toronto</font></div>
<div style="color: rgb(33, 33, 33); font-size: 14px; margin: 0px;" class=""><font face="Helvetica Neue" color="#333333" class="">CAMH, Temerty Centre</font></div>
<div style="color: rgb(33, 33, 33); font-size: 14px; margin: 0px;" class=""><font face="Helvetica Neue" color="#333333" class=""><br class="">
</font></div>
<div style="color: rgb(33, 33, 33); font-size: 14px; margin: 0px;" class=""><font face="Helvetica Neue" color="#3E81DE" class=""><font color="#333333" class="">t.</font> (647) 825-6865</font></div>
<div style="color: rgb(33, 33, 33); font-size: 14px; margin: 0px;" class=""><font face="Helvetica Neue" color="#3E81DE" class=""><font color="#333333" class="">e. </font><a href="mailto:shaurya.gupta@mail.utoronto.ca" target="_blank" rel="noopener noreferrer" id="LPNoLP" class=""><font color="#3E81DE" class="">aiyush.bansal@mail.utoronto.ca</font></a></font></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>