<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><font size="3">Hi Jose,</font><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;">Are you analyzing continuous data? If this is the case, you should specify cfg.artfctdef.reject = 'partial' before calling ft_rejectartifact. The reason is that the default is 'complete' and if you're computing continuous data (not stimulus locked) you only have one trial and for instance nothing left after the rejection. </div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;">best,</div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;">Diego</div><div><br><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><blockquote style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><b>From: </b>"Jose Herrero" <jose.herrero66@gmail.com><br><b>To: </b>"FieldTrip discussion list" <fieldtrip@science.ru.nl><br><b>Sent: </b>Thursday, 25 April, 2013 3:49:00 PM<br><b>Subject: </b>[FieldTrip] using ft_rejectartifact on continuos data after manual rejection with ft_databrowser<br><br><div dir="ltr">dear Fieldtrippers,<div><br></div><div style="">i am analysing spontaneous data and have some artifacts i'd like to exlcude by visual inspection on the contiunous data. </div><div style=""><br></div><div style="">
So after prepocessing the data, I use </div><div style="">cfg=ft_databrowser(cfg,alldata)</div><div style="">and select manually the segments with artfacts.</div><div style=""><br></div><div style="">Then i run ft_rejectartifact</div>
<div><br></div><div>cleandata = ft_rejectartifact(cfg,alldata);<br></div><div><div>detected 12 visual artifacts</div><div>rejected 1 trials completely</div><div>rejected 0 trials partially</div><div>resulting 0 trials</div>
<div>Error using ft_rejectartifact (line 478)</div><div>No trials left after artifact rejection.</div></div><div><div style=""><br></div><div style="">any idea which cfg specs should i use?</div><div style=""><br></div><div style="">
thanks,</div><div style=""><br></div>-- <br><div>Jose L Herrero, PhD</div><div>Department of Psychiatry</div><div><div>Columbia University College of Physicians and Surgeons</div></div><div>Cognitive Neuroscience and Schizophrenia Program</div>
<div>Nathan S. Kline Institute for Psychiatric Research</div><div><br></div>
</div></div>
<br>_______________________________________________<br>fieldtrip mailing list<br>fieldtrip@donders.ru.nl<br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote><br><br><br><font size="3">-- </font><br><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><span name="x"></span>PhD Student<br>Neuronal Oscillations Group<br>Donders Institute for Brain, Cognition and Behaviour <br>Centre for Cognitive Neuroimaging<br>Trigon, room 0.83<br>Kapittelweg 29<br>Radboud University Nijmegen <br>NL-6525 EN Nijmegen<br>The Netherlands<br>E-Mail: d.lozanosoldevilla@fcdonders.ru.nl<br>Tel: +31-(0)24-36-66274<br>Web: http://www.neuosc.com/ <span name="x"></span><br></div></div></div></body></html>