<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; } @font-face { font-family: "Cambria Math"; } @font-face { font-family: Calibri; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; } span.E-MailFormatvorlage17 { font-family: Calibri, sans-serif; color: windowtext; } .MsoChpDefault { font-family: Calibri, sans-serif; } @page WordSection1 { margin: 70.85pt 70.85pt 56.7pt; } div.WordSection1 { } @font-face { font-family: AvenirNextRegular; src: url("chrome-extension://bmikpgodpkclnkgmnpphehdgcimmided/fonts/AvenirNextLTPro-Regular.otf") format("opentype"); font-weight: normal; font-style: normal; } @font-face { font-family: AvenirNextBold; src: url("chrome-extension://bmikpgodpkclnkgmnpphehdgcimmided/fonts/AvenirNextLTPro-Bold.otf") format("opentype"); font-weight: bold; font-style: normal; } .myki-preloader-input { transform: translateX(0px) !important; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear Iris,<br>
</p>
<p><br>
</p>
<p>the behavior of ft_databrowser you report is not normal, but it is difficult to debug because I cannot reproduce this error. You report that only some of the marks disappear, can you systematically reproduce when this happens exactly? Probably best to first
 try and update your fieldtrip version and see if this solves the problem. <br>
</p>
<p>In ft_databrowser if you mark the same artifact twice (by selecting and then clicking on selection) the mark will disappear again. Could it be that this is what happened? Also you are already providing the function with an artifact definition 'artifact_stat'
 could it be that you accidentally marked artifacts as 'stat' and not 'visual' and that's the reason why they do not appear in the output?<br>
</p>
<p><br>
</p>
<p>best,<br>
</p>
<p>Sophie<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Steinmann, Iris <iris.steinmann@med.uni-goettingen.de><br>
<b>Sent:</b> Monday, March 9, 2020 9:27 AM<br>
<b>To:</b> fieldtrip@science.ru.nl<br>
<b>Subject:</b> [FieldTrip] manually marked artifacts in ft_databrowser</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Dear fieldtrip experts,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">when I use ft_databrowser and mark trials manually as artifacts (‘visual’), some (but not all) of these are again unmarked when I scroll back to them later. First I thought its maybe a problem with displaying the manually marked trials
 in the databrowser window, but when I close the ft_databrowser window, these trials are also not stored in the cfg.artifacts.artfctdef.visual.</p>
<p class="MsoNormal">I’m using MATLAB 2015 b on a Linux machine with fieldtrip-20181122. Down below is the full code I’m using for the ft_databrowser plot.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks for any idea!</p>
<p class="MsoNormal">Cheers!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Iris</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">cfg = [];</p>
<p class="MsoNormal">cfg.channel = 'eeg';</p>
<p class="MsoNormal">cfg.viewmode = 'vertical';</p>
<p class="MsoNormal">cfg.preproc.lpfilter = 'yes';</p>
<p class="MsoNormal">cfg.preproc.lpfreq = 45;</p>
<p class="MsoNormal">cfg.artfctdef.stat.artifact = artifact_stat;</p>
<p class="MsoNormal">cfg.selectfeature = 'visual';</p>
<p class="MsoNormal">cfg.selectmode = 'markartifact';</p>
<p class="MsoNormal">cfg = ft_databrowser(cfg, data);</p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</body>
</html>