<div dir="ltr"><div><div><div><div><div><div><div>I second Phil's suggestion. While I haven't done this myself, what i would do if I were in this situation is something like the following:<br><br></div>1. Create a dataset with the shorter epochs<br></div>2. Run the artifact rejection<br></div>3. Save the list of good trials (trials that weren't rejected)<br></div>4. Throw out that dataset, and make a new dataset with the epoch length I actually want<br></div>5. Directly use the list of good trials at whatever stage is relevant (ft_timelockanalysis or whatever) to make sure you're only keeping the trials that would have made it through artifact rejection<br><br></div>Best,<br></div>Steve<br><div><div><div><div><div><div><div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><div><br><br>---<br></div>Stephen Politzer-Ahles<br>University of Oxford<br>Language and Brain Lab<br>Faculty of Linguistics, Phonetics & Philology<br><a href="http://users.ox.ac.uk/~cpgl0080/" target="_blank">http://users.ox.ac.uk/~cpgl0080/</a></span></div></div></div></div></div></div></div>
<div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Message: 4<br>
Date: Fri, 1 Jul 2016 14:10:09 +0200<br>
From: Philipp Taesler <<a href="mailto:p.taesler@uke.de">p.taesler@uke.de</a>><br>
To: <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: Re: [FieldTrip] Automatic artifact detection (no rejection)<br>
Message-ID: <<a href="mailto:15e80a9d-3eba-0c7b-cd77-af2e5f1d80c4@uke.de">15e80a9d-3eba-0c7b-cd77-af2e5f1d80c4@uke.de</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Robin,<br>
<br>
you are right, the comment in the function explicitly says:<br>
<br>
% Contrary to the other artifact detection functions, this function<br>
% will mark the whole trial as an artifact if the threshold is exceeded.<br>
% Furthermore, this function does not support artifact- or filterpadding.<br>
<br>
I didn't know that. Hmmm, then I guess your only option is to either<br>
visually review the marked trials and unmark the ones you want to keep.<br>
Another possibilty might be to use ft_redefinetrial to create a dataset<br>
with shorter trials, run the rejection on this data, and use the<br>
resulting artefact definitions for your original data. (Not sure if that<br>
is straightforward, since I never did this myself).<br>
<br>
Cheers,<br>
Phil<br>
<br></blockquote><div> </div></div><br></div></div></div></div></div></div></div></div></div></div>