<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; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>​Dear all,<br>
</p>
<p><br>
</p>
<p>I'm in need of suggestions on the correct analyses strategy for my data.<br>
</p>
<p>I have an experiment with a cue followed (after ~2 seconds) by a target.<br>
</p>
<p>I epoched the data cue-locked and pre-processed my dataset. In my preprocessing I'm downsampling, re-referencing, rejecting some trials, running ICA, etc etc.<br>
</p>
<p><br>
</p>
<p>My problem is that I would want to also epoch my data target-locked, but I want to do it after pre-processing the cue-locked dataset. This is because I want to exclude the same trials and apply exactly the same corrections to the two different datasets.<br>
</p>
<p><br>
</p>
<p>I tried to use the function ft_redefinetrial, creating the new probe-locked trial definition and applying it to the cue-locked dataset.<br>
</p>
<p><br>
</p>
<p>cfg=[];<br>
</p>
<p>cfg.trl=trl;                            # trl contains the trial definition of target-locked epochs<br>
</p>
<p><br>
</p>
<p>data_target = ft_redefinetrial (cfg, data_cue)<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>But I do not obtain what I wished for, because I get a data_target dataset that doesn't account for the trial rejection I performed while pre-processing the cue-locked dataset.<br>
</p>
<p><br>
</p>
<p>So my questions are:<br>
</p>
<p>1) is it possible to achieve my goal?<br>
</p>
<p>2) If yes, what is the right strategy to do it?<br>
</p>
<p><br>
</p>
<p>Thanks for any input and suggestion!<br>
</p>
<p><br>
</p>
<p>Best,<br>
</p>
<p>Silvia<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>