[Eeglablist] Marking Response Triggers as Correct or Incorrect Responses
Scott Makeig
smakeig at gmail.com
Mon Jun 21 08:28:10 PDT 2021
Oh, I forgot to point to the *EEG.urevent* structure: This is important.
The *urevent* structure stores a copy of all the events in the events
structure - i*n the original, continuous data*. *Event* structure event
records contain pointers to the corresponding event in the *urevent* structure.
Then, when epochs are removed for any purposes, a function can always learn
the sequences of events in the temporal context in which a remaining epoch
event occurred (e.g., this is a 'target' event that occurred after a 'miss'
response - in a section of data no longer present in the current dataset).
So functions that add events to an EEGLAB EEG-structure dataset should
always take care to add a corresponding entry in the *urevent* structure,
and to link the new event in both structures - to retain this 'knowledge of
context'.
Scott
On Mon, Jun 21, 2021 at 11:19 AM Scott Burwell <burwell at umn.edu> wrote:
> Dear Vic,
>
> A while back, I built a function that may be of interest to you. It
> "re-codes" EEG.event based on matching the sequence of events in EEG.event
> to a series of expected "templates"; e.g., {'X' 'resp_x'} may be re-coded
> as {'X' 'resp_correct'} whereas {'Y' 'resp_x'} may be re-coded as {'Y'
> 'resp_incorrect'}. Not sure if it solves your problem, but it's worked for
> other projects.
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sjburwell_eeg-5Fcommander_blob_master_functions_basefunc_eeg-5Frecode.m&d=DwIBaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=jrlxIBt1sDcbH6ZUlz1PUfstr-VJtudZXtmYHIoWG4s&s=45tXwio-CPrC88raV5piKdrEgMPY_iGZIGPqc4t7RiE&e=
>
> Best,
> Scott Burwell
>
> On Mon, Jun 21, 2021 at 8:59 AM Scott Makeig via eeglablist <
> eeglablist at sccn.ucsd.edu> wrote:
>
>> Vic -
>>
>> EEGLAB datasets (each an 'EEG' structure in Matlab) has an 'Events'
>> substructure ('EEG.Events') that has event type and latency as required
>> fields. Other info can be entered as new fields (such as, 'EEG.role', or
>> etc.). See the EEGLAB tutorial for functions to enter you 'trigger' data
>> into the Events structure. In near future the third-generation HED
>> (Hierarchical Event Descriptors) system functions will be ready to
>> systematize the process of entering and using more detailed information
>> about the nature of events for epoch selection, etc. Read how to do this
>> now using EEGLAB epoch selection tools in the EEGLAB tutorial.
>>
>> Scott Makeig
>>
>> On Mon, Jun 21, 2021 at 9:40 AM vic roc via eeglablist <
>> eeglablist at sccn.ucsd.edu> wrote:
>>
>> > Dear Members
>> >
>> > I have taken my EEGs, in which, each response (regardless of it being
>> > correct or incorrect) has the same trigger marker.
>> >
>> > I have an Excel file which denotes the order of correct/incorrect
>> responses
>> > (which responses are correct or incorrect?) in each session.
>> >
>> > I want to map these responses onto triggers and tell the EEGLab that for
>> > example the 3rd, 7th, and 9th responses are correct and the rest are
>> > incorrect.
>> >
>> > And apparently I have to do it before epoch rejection, because if I do
>> > epoch rejection, then the order of responses recorded in the Excel file
>> > will not match my triggers anymore.
>> >
>> > Do you have any ideas about this? Is it possible to mark EEG triggers as
>> > correct / incorrect responses? Or was the only way around "to assign
>> > different triggers to correct and incorrect responses"?
>> >
>> > Thanks a lot.
>> > _______________________________________________
>> > Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> > To unsubscribe, send an empty email to
>> > eeglablist-unsubscribe at sccn.ucsd.edu
>> > For digest mode, send an email with the subject "set digest mime" to
>> > eeglablist-request at sccn.ucsd.edu
>> >
>>
>>
>> --
>> Scott Makeig, Research Scientist and Director, Swartz Center for
>> Computational Neuroscience, Institute for Neural Computation, University
>> of
>> California San Diego, La Jolla CA 92093-0559, http://sccn.ucsd.edu/~scott
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to
>> eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
>
>
> --
> Scott J. Burwell, PhD
> He/Him/His
> View my profile on: LinkedIn <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.linkedin.com_in_scottjburwell_&d=DwIBaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=jrlxIBt1sDcbH6ZUlz1PUfstr-VJtudZXtmYHIoWG4s&s=9YoujESYTVoIvjuJcSGkTg5bAC0z3Kuu9rO8ibnelJc&e= >
> | Google Scholar
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__scholar.google.com_citations-3Fuser-3DS-2DDUpywAAAAJ-26hl-3Den&d=DwIBaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=jrlxIBt1sDcbH6ZUlz1PUfstr-VJtudZXtmYHIoWG4s&s=DvDyr9ieRUNptgpee5lat823Uy7QDcPu9C4EHRutUxA&e= > | GitHub
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sjburwell&d=DwIBaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=jrlxIBt1sDcbH6ZUlz1PUfstr-VJtudZXtmYHIoWG4s&s=xbdQNCdurHBUIi6rMsrVzY8wY6Vd9C6kv_evbJz7E6E&e= > | ResearchGate
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.researchgate.net_profile_Scott-5FBurwell&d=DwIBaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=jrlxIBt1sDcbH6ZUlz1PUfstr-VJtudZXtmYHIoWG4s&s=Hdxc8vE-LdBGTeGwNGTQMuAZwjR2TlCuGj5p40qDg1k&e= >
> Want to schedule some time to chat? Set up a time to meet here
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__calendly.com_neurotype-2Dscott_15-2D30min&d=DwIBaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=jrlxIBt1sDcbH6ZUlz1PUfstr-VJtudZXtmYHIoWG4s&s=yLXMODC247Th0WrTnug3Al1AZoeWgdor9jFhb7_7v8U&e= >.
>
--
Scott Makeig, Research Scientist and Director, Swartz Center for
Computational Neuroscience, Institute for Neural Computation, University of
California San Diego, La Jolla CA 92093-0559, http://sccn.ucsd.edu/~scott
More information about the eeglablist
mailing list