<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Arti,
<div class=""><br class="">
</div>
<div class="">I think that this can be easily fixed. Notably, if you have a look at ft_trialfun_general, there’s a specific string-to-number conversion for eventtypes that start with ’S’, or ‘R’. This happens on line 210/211. It might be possible to come up
 with a generic solution, but this will result in a more or less arbitrary string-to-number mapping. The ’S’ and ‘R’ eventvalues pertain to a particular acquisition system that codes stimuli and responses as ‘Sx’, and ‘Rx’ respectively, where the ‘x’ is a user-specified
 value. </div>
<div class="">If you come up with a sensible generic solution I’d be more than happy to build it into the code, or you can do so yourself, and submit this to our github repository as a pull request.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 28 Jun 2016, at 04:01, Arti Abhishek <<a href="mailto:mailtome.2113@gmail.com" class="">mailtome.2113@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Dear list,<br class="">
<br class="">
</div>
I am following up on my previous question on mussing trial info after I epoch the data. The fourth column in the data.cfg.trial is present when the triggers are neumeric. But when the triggers are in string format (as in EGI system eg. "DIN8"), the fourth column
 is not present with the following code. I would really appreciate if someone could suggest a fix.<br class="">
<br class="">
cfg                     = [];<br class="">
cfg.dataset             = 'LL1101_20160622_022943.raw'; <br class="">
cfg.trialdef.prestim    = 0.1;<br class="">
cfg.trialdef.poststim   = 0.5; <br class="">
cfg.trialdef.eventtype   = 'trigger';<br class="">
cfg.trialdef.eventvalue  = {'DI14', 'DI16', 'DI18', 'DI22', 'DI24', 'DIN4','DIN6', 'DIN8'};<br class="">
data               = ft_definetrial(cfg);<br class="">
LL01_epochs             = ft_redefinetrial(data, LL01_cont);<br class="">
<br class="">
</div>
Thanks,<br class="">
</div>
Arti<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Mon, Jun 27, 2016 at 5:18 PM, Arti Abhishek <span dir="ltr" class="">
<<a href="mailto:mailtome.2113@gmail.com" target="_blank" class="">mailtome.2113@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">
<div class="">
<div class="">Dear list,<br class="">
<br class="">
I am trying to analyse EEG data recorded in EGI system. When I used the following code to epochs the data, the trialinfo information is missing that prevents me to average each trigger seperately. Could anyone suggest a fix?<br class="">
<br class="">
cfg                     = [];<br class="">
cfg.dataset             = 'LL1101_20160622_022943.raw'; <br class="">
cfg.trialdef.prestim    = 0.1;<br class="">
cfg.trialdef.poststim   = 0.5; <br class="">
cfg.trialdef.eventtype   = 'trigger';<br class="">
cfg.trialdef.eventvalue  = {'DI14', 'DI16', 'DI18', 'DI22', 'DI24', 'DIN4','DIN6', 'DIN8'};<br class="">
data               = ft_definetrial(cfg);<br class="">
LL01_epochs             = ft_redefinetrial(data, LL01_cont);<br class="">
<br class="">
</div>
Thanks,<br class="">
</div>
Arti<br class="">
<div class="">
<div class=""><br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</body>
</html>