<div dir="ltr">Merhaba Stephen :), <div><br></div><div>Thank you for your informative response! Indeed, I already have data as separate segments (trials) before any initiation with Fieldtrip. I was just wondering if I can plot the event markers just for visualization purposes. However, I've learnt why it is the case now. In my case, I believe a solution would be ; concatenating the trials and manipulating the time axis to arbitrarily create a single trial (continuous?) data  structure and then building a custom trialfun to be able to visualize markers in ft_databrowser.</div><div><br></div><div>Thank you again,</div><div>All the best,</div><div>Mustafa</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Stephen Whitmarsh <<a href="mailto:stephen.whitmarsh@gmail.com">stephen.whitmarsh@gmail.com</a>>, 24 Kas 2020 Sal, 11:04 tarihinde şunu yazdı:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Merhaba Mustafa,<div><br></div><div>Welcome to FieldTrip!</div><div>Just to be clear - I assume you segmented your continuous data into trials by passing your marker timing as a cfg.trl in ft_preprocessing, right?</div><div>When you did, the temporal information about the markers became irrelevant, because the trials are then expressed <i>not </i>in samples from the onset of the continuous data anymore, but instead as time relative to the markers. I.e. each trial now starts at t=0s (-offset), rather and, say [13, 104, 206, ...] samples (i.e. your initial trl). See the resultant data.time field.</div><div>Secondly, ft_databrowser does not take cfg.trl as the location of markers, rather it does so in cfg.artfctdef.xxx.artifact (yes, a bit strange, partly historical, and because databrowser is typically used to manually scan for artifacts).<br></div><div><br></div><div>So, in your case, you could either:<br><br>Use ft_databrowser to plot the original, unsegmented, continuous, data, and pass your trialinfo (as a Nx2 matrix, with only start and end sample) to cfg.artfctdef.xxx.artifact. Replace xxx with whatever your want, e.g. "trialnumber"<br>

Use ft_databrowser to plot the segmented data, as trials, with new time-axis, without the markers.</div><div><br></div><div>Note that ft_databrowser will try to fit your cfg.artfctdef.xxx.artifact to your segmented trial data as well, by doing some intelligent checking of your past cfg (which is tracked in your segmented data structure and beyond), and treating your data as continuous data. That might work, or it might not, but now you know why!</div><div><br></div><div>Happy fieldtripping,</div><div>Stephen <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 24 nov. 2020 om 02:29 schreef MUSTAFA YAVUZ <<a href="mailto:m.yavuz.18@ogr.iu.edu.tr" target="_blank">m.yavuz.18@ogr.iu.edu.tr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I've been trying to adjust my EEG data (segmented and .mat file) to be analyzed by FT. I already have separate trials and have temporal information about the event markers' time courses. I constructed a Nx3 trl structure and passed it as cfg.trl while calling ft_preprocessing. Whilst the function worked and I can see the cfg.trl field in the output structure, when I call ft_databrowser, the event markers are not displayed on trials. Do you have any idea/solution for this situation?</div><div><br></div><div>Thank you in advance,</div><div>Mustafa<br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><b>Mustafa Yavuz </b><div><br></div><div>Ph.D. Candidate in Neuroscience </div><div><br></div><div>Department of Neuroscience </div><div>İstanbul University <br></div><div><br></div></div></div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><b>Mustafa Yavuz </b><div><br></div><div>M.Sc. Candidate in Neuroscience </div><div><br></div><div>Department of Neuroscience </div><div>İstanbul University <br></div><div><br></div></div></div>