[FieldTrip] shifting events
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Sat Mar 27 16:43:55 CET 2021
Hi Mubeen,
It sounds a bit mysterious that the ’trial configuration is not working to give me a -0.5 sec baseline’, but you can write your own ’trialfun’ (if you look through the documentation on fieldtriptoolbox.org<http://fieldtriptoolbox.org> you’ll easily find the relevant links), which allow you to create your epochs-of-interest according to your wishes.
For instance, you can include a line that takes the relevant events’ samples, and subtract a fixed value to define the starts of your epochs.
Good luck,
Jan-Mathijs
On 27 Mar 2021, at 13:54, mubeen afzal <mubafzal at hotmail.com<mailto:mubafzal at hotmail.com>> wrote:
Hi all,
I would like to shift the event values after the ft_readevent function before creating trials.
The trial configuration is not working to give me a -0.5 sec baseline.
cfg.trialdef.prestim doesnt allow -0.5 sec.
cfg.trialdef.eventtype = 'annotation'
cfg.trialdef.eventvalue = 'Ep.sw'
cfg.trialdef.prestim = 0
cfg.trialdef.poststim = 5
cfg.trialfun = 'ft_trialfun_general'
How can I shift my manual annotations to include -0.5 before my event.value annotation. Any help will be appreciated.
Regards,
Mubeen
<fieldtrip .jpg>_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210327/34004e7b/attachment.htm>
More information about the fieldtrip
mailing list