<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Andy,
<div class=""><br class="">
</div>
<div class="">Could you provide a little bit more information with respect to what the ‘ft_data_tar’ variable looks like ?</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 Jun 2023, at 02:42, Andy Kim via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<font style="font-size: 11px;" class="">Dear community,</font>
<div class=""><font style="font-size: 11px;" class=""><br class="">
</font></div>
<div class=""><font style="font-size: 11px;" class="">My name is Andy Kim and I am trying to complete cluster-based permutation tests on event-related fields using the FieldTrip toolbox tutorial (<a href="https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/tutorial/cluster_permutation_timelock/__;!!HJOPV4FYYWzcc1jazlU!-SFXKQT1GL1-POlF7Tj2IUUkZ78bg-KMPsdhinve9Bd3ncr1xtEi7f54D21l6k0asfuAhWSb9wanXJa7lQ$" class="">https://www.fieldtriptoolbox.org/tutorial/cluster_permutation_timelock/</a>).
The issue I believe is that I have completed pre-processing using EEGLAB and converted the already pre-processed data using eeglab2fieldtrip.</font></div>
<div class=""><font style="font-size: 11px;" class=""><br class="">
</font></div>
<div class=""><font style="font-size: 11px;" class=""><span style="white-space: pre; caret-color: rgb(0, 0, 0);" class="">ft_data_tar = eeglab2fieldtrip(EEG2,
</span><span style="white-space: pre; caret-color: rgb(0, 0, 0); color: rgb(167, 9, 245);" class="">'timelock</span><font color="#a709f5" class=""><span style="caret-color: rgb(0, 0, 0); white-space: pre;" class="">’</span></font><span style="white-space: pre; caret-color: rgb(0, 0, 0);" class="">);</span></font></div>
<div class=""><span style="white-space: pre; caret-color: rgb(0, 0, 0); font-size: 11px;" class=""><br class="">
</span></div>
<div class=""><font style="font-size: 11px;" class=""><span style="caret-color: rgb(0, 0, 0); white-space: pre;" class="">However, when I run ft_timelockanalysis, I get the following</span>
</font><span style="caret-color: rgb(0, 0, 0); font-size: 11px; white-space: pre;" class="">error.</span></div>
<div class=""><span style="white-space: pre; caret-color: rgb(0, 0, 0); font-size: 11px;" class=""><br class="">
</span></div>
<div class=""><span style="white-space: pre; caret-color: rgb(0, 0, 0); font-size: 11px;" class="">timelock_tar = ft_timelockanalysis(cfg, ft_data_tar);</span></div>
<div class=""><span style="white-space: pre; caret-color: rgb(0, 0, 0); font-size: 11px;" class=""><br class="">
</span></div>
<div class=""><font style="font-size: 11px;" class="">The input is timelock data with 63 channels and 750 timebins</font></div>
<div class=""><font style="font-size: 11px;" class="">Unrecognized field name "dimord”. </font></div>
<div class=""><font style="font-size: 11px;" class="">Error in dimlength (line 74) elseif strcmp(data.(fld), 'rpt_pos’) </font></div>
<div class=""><font style="font-size: 11px;" class="">Error in fixsampleinfo (line 56) ntrial = dimlength(data, 'rpt’);</font></div>
<div class=""><font style="font-size: 11px;" class="">Error in ft_datatype_timelock (line 152) timelock = fixsampleinfo(timelock); </font></div>
<div class=""><font style="font-size: 11px;" class="">Error in ft_checkdata (line 281) data = ft_datatype_timelock(data, 'hassampleinfo', hassampleinfo); </font></div>
<div class=""><font style="font-size: 11px;" class="">Error in ft_timelockanalysis (line 83) data = ft_checkdata(data, 'datatype', {'raw+comp', 'raw'}, 'feedback', 'yes', 'hassampleinfo', 'yes');
</font></div>
<div class=""><br class="">
</div>
<div class="">Is this “dimord” field name an issue with the data conversion from EEGLAB to FieldTrip? I am not quite sure where to look and would appreciate any help in sending me in the right direction for debugging. Thank you.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Andy</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-j07uKtFi15zpEQzEs3GMwyJ5_ZhGtpDTKUO-mrQXHD3KhS0_LS3ZrHtXb4tukxKNXFih92dgIm9-2_GfZ6LmAYuKVEod4afICOgzA$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>