[FieldTrip] Defining trials

mubeen afzal mubafzal at hotmail.com
Wed Feb 10 13:50:54 CET 2021


Hi Jan,

Thanks very much for your response. I have gone through the website (and trial fun examples I could look at in the trialfun directory) and cant find a guide on how to define a custom trial structure using pre-existing user defined labels for the start and end segments of interest marked in an external edf processor. Most of the examples of fieldtrip example trialfun involve trigger, stimulus, response.

Is there another link to a simple code somewhere I can be directed to?

Regards,
Mubeen J



________________________________
From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Schoffelen, J.M. (Jan Mathijs) <jan.schoffelen at donders.ru.nl>
Sent: Wednesday, February 10, 2021 10:49 AM
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Subject: Re: [FieldTrip] Defining trials

Hi Mubeen,

You’d need to write your own ’trialfun’ if you want to achieve what you want. See: https://www.fieldtriptoolbox.org/example/making_your_own_trialfun_for_conditional_trial_definition/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Fexample%2Fmaking_your_own_trialfun_for_conditional_trial_definition%2F&data=04%7C01%7C%7C35b349fdf5d54862ead408d8cd9b9f4a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637485415762819934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=al%2BM6Yh6GeX6ig3VjZf2cmnOUbBNbpfrPAP%2F5S54zZc%3D&reserved=0>
to get started.

Good luck,

Jan-Mathijs

On 10 Feb 2021, at 00:52, mubeen afzal <mubafzal at hotmail.com<mailto:mubafzal at hotmail.com>> wrote:

Hi all,

Following up on this. Could someone help me with this code please.

cfg = ft_define trial

I have event labels on my file 'ep.sw' and 'end' defining segments of interest
<image.png>
How can I create trials around only segments between 'Ep.sw' and 'end'. I dont know where to define the end segment for each trial. In the edf file label its named 'end'.

Regards,
Mubeen

________________________________
From: mubeen afzal
Sent: Sunday, February 7, 2021 1:17 AM
To: fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl> <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>>
Subject: Defining trials

Hi all,

Can I get help with a code to allow my edf files each with a number of segments labelled 'ep.sw' at the start and 'end' at end of segment of interest (ranging between 2-10 seconds).

The stim and response based entries in code is abit confusing for me as a beginner and I would just like to define trials based on start and end markers I have mannually marked on segments of a continuous EEG.

All help will be much appreciated.

Regards,
Mubeen
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7C%7C35b349fdf5d54862ead408d8cd9b9f4a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637485415762819934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HJnZBYTsGr7exYAF16leJ1eLLeleF%2F9v6NDVNxwQ8Nk%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7C%7C35b349fdf5d54862ead408d8cd9b9f4a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637485415762829928%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XlP%2BiNdLjNjJ%2FyiPZsZ92DTabNRSRnJ0DdVJwPWsygw%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210210/27b3aaf0/attachment.htm>


More information about the fieldtrip mailing list