<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- P { margin-top: 0px; margin-bottom: 0px; } p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;">
<p>Hello everyone,<br>
</p>
<p>I am facing a problem when running ft_timelockanalysis on preprocessed MEG data, whose onset have that has been re-defined with ft_redefinetrial (with option cfg.offset). Specifically, stimulus locked data were re-defined to be response locked.<br>
</p>
<p>Now, I have to run time lock analysis to later apply LCMV beamformer.<br>
</p>
<p>Unfortunately, for <strong>some subjects</strong> (inexplicably, to me) I encounter the following error:<br>
</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">when running:</span></p>
<p><span style="font-size: 11pt;"><em style="">cfg                       = [ ];</em><br style="">
</span></p>
<div><em style="font-size: 11pt;">cfg.covariance     = 'yes';</em></div>
<div><em style="font-size: 11pt;">cfg.keeptrials       = 'yes';</em></div>
<div><em style="font-size: 11pt;">tmlock_resp         = ft_timelockanalysis(cfg, megresp);</em></div>
<div><em style="font-size: 11pt;"><br>
</em></div>
<div><em style="font-size: 11pt;"><br>
</em></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">the input is raw data with 270 channels and 235 trials</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">the call to "ft_selectdata" took 1 seconds and required the additional allocation of an estimated 2 MB</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Unable to perform assignment because the size of the left side is 1-by-270-by-2348 and the size of the right side is 270-by-2349.</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Error in ft_checkdata>raw2timelock (line 1527)</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">    tmptrial(i,:,begsmp(i):endsmp(i)) = data.trial{i};</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Error in ft_checkdata (line 468)</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">      data = raw2timelock(data);</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Error in ft_timelockanalysis (line 144)</span></span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 11pt; color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">  datacov      = ft_checkdata(datacov, 'datatype', 'timelock'); </span></span><br>
</div>
<p><br>
</p>
<p><br>
</p>
<p>I know this seems to be something related to the number of trials, or timing (in those datasets, I also cannot seem to cut epochs to get shorter time windows) but I checked the data and sample info, and everything seems ok (I also don't know what that 2348
 - 2349 refers to)<br>
</p>
<p><br>
</p>
<p>Someone knows what this error refers to? Maybe how to fix it or where to look into?<br>
</p>
<p>Importantly, if I do not redefine those data everything goes fine (meaning if they stay stimulus locked).<br>
</p>
<p>Is something going on during ft_redefinetrial?<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Thanks in advance to all a lot!<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div>
<div>
<div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif"><font face="arial,helvetica,sans-serif"><br>
</font></font></div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif"><font face="arial,helvetica,sans-serif">All the best,</font></font></div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif"><font face="arial,helvetica,sans-serif">Cecilia</font></font></div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif"><font face="arial,helvetica,sans-serif"><b><br>
</b></font></font></div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif"><font face="arial,helvetica,sans-serif"><b>Cecilia Mazzetti, </b></font><font face="arial,helvetica,sans-serif"><b>Postdoc Researcher</b></font></font></div>
<div style="background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif" size="2" color="#808080">Department of Basic Neurosciences</font></div>
<div style="background-color:rgb(255,255,255)"><span style=""><font face="Arial, Helvetica, sans-serif" size="2" color="#808080">University of Geneva</font></span></div>
<div style="background-color:rgb(255,255,255)"><span style=""><font face="Arial, Helvetica, sans-serif" size="2" color="#808080">Chemin des Mines 9, </font></span></div>
<div style="background-color:rgb(255,255,255)"><span style="color:rgb(128,128,128); font-family:Arial,Helvetica,sans-serif; font-size:small">1202 Genève, Switzerland</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif"></font></div>
<div style="font-family:"Segoe UI",Helvetica,Arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<font face="arial,sans-serif">
<div style="margin:0px"><br>
</div>
</font></div>
</div>
<div style="font-family:Tahoma; font-size:13px"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>