[Eeglablist] Changing event markers in dataset

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Tue Jul 17 17:44:30 PDT 2018


Sure Rhonda, let me take care of it. Hope to see/hear you somewhere again!

Makoto

On Tue, Jul 17, 2018 at 5:12 PM RHONDA MUDRY <rxm390 at psu.edu> wrote:

> Can I please be removed from this listserv?
>
> ------------------------------
> *From: *"Makoto Miyakoshi" <mmiyakoshi at ucsd.edu>
> *To: *"E. Sijyeniyo" <e.sijyeniyo at student.rug.nl>
> *Cc: *"EEGLAB List" <eeglablist at sccn.ucsd.edu>
> *Sent: *Tuesday, July 17, 2018 5:59:16 PM
> *Subject: *Re: [Eeglablist] Changing event markers in dataset
>
> Dear Edwige,
> The first line of your table in Excel sheet must be the names of the
> columns, and at least 'type' and 'latency' must be present because these
> are preserved words in EEGLAB and are expected to be detected. Try it
> again, it should work. I've done it many times (in 2004).
>
> Makoto
>
> On Tue, Jul 17, 2018 at 5:34 AM E. Sijyeniyo <e.sijyeniyo at student.rug.nl>
> wrote:
>
>> Dear Makoto,
>> I tried re-importing my event information after exporting it to Microsoft
>> excel but it doesn’t work for some reason. I thought it would be pretty
>> straightforward, but unfortunately not….
>>
>> I get the error:
>>
>> *EEGLAB error in function import event() at line 181:*
>>
>> *Reference to non-existent field ‘latency’. *
>>
>>
>>
>> If I type the following into “input field (column) names” *type latency *and
>> I change "Number of file header lines" into *1, *then I get the
>> latencies as new event markers.
>>
>> I do not understand how this may be, because I only modified the type
>> (event markers) and for some reason the new event values are not imported
>> and replaced.
>>
>> Attached you can see how my new .csv file looks like, when I try to
>> import this, I get an error and I do not know why…
>>
>> I even changed my initial triggers from e.g. *S 40* to *40* because I
>> read that EEGlab cannot read type when strings and integers are combined (
>> https://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing)
>>
>> Can you provide me with some detailed information about how to import my
>> changed event markers?
>>
>> The data was recorded with BrainVision Recorder and I am using Matlab
>> 2017b version.
>>
>> I could really use your help and expertise with this...
>>
>> Best,
>> Edwige
>>
>> Op 16 jul. 2018, om 20:13 heeft Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
>> het volgende geschreven:
>>
>> Dear Edwige,
>> > I am wondering whether I can change the other triggers so that they are
>> distinguishable too. In this way, I can compare, for example, the target
>> words in one particular condition with each other because they would have
>> different event markers. For instance, in the active condition, the target
>> word is marked with 17 in the prime sentence as well as in the target
>> sentence, I am not sure if Matlab would be able to distinguish them (I
>> assume not).
>>
>> I did not understand your question here. However,
>>
>> > Does anyone know how I can change event markers in my dataset?
>>
>> You can swap existing event marker types with other ones, if that solves
>> your problem. See this page. Note that this coding is done outside EEGLAB
>> so be careful.
>> https://sccn.ucsd.edu/wiki/Makoto%27s_useful_EEGLAB_code#Event_types
>>
>> If you want to do it more intuitively, you may want to consider exporting
>> the existing event structure to Microsoft Excel (or equivalent) and modify
>> it visually and manually. Then re-import the event file.
>>
>> Makoto
>>
>>
>> On Sun, Jul 15, 2018 at 9:08 PM E. Sijyeniyo <e.sijyeniyo at student.rug.nl>
>> wrote:
>>
>>> Dear EEGlab users,
>>>
>>> I have a question regarding changing event markers in my dataset.
>>>
>>> Initially, I recorded my data with the following markers:
>>>
>>> Active condition:
>>> Prime sentence: 40, 9, 13, 17, 21, 25, 29
>>> Target sentence: 45, 9, 13, 17, 21, 25, 29
>>>
>>>
>>> Passive condition
>>> Prime sentence: 40, 8, 12, 16, 20, 24, 30
>>> Target sentence: 45, 8, 12, 16, 20, 24, 30
>>>
>>>
>>> However, only the first trigger distinguishes both sentences, so only 40
>>> and 45. I am wondering whether I can change the other triggers so that they
>>> are distinguishable too. In this way, I can compare, for example, the
>>> target words in one particular condition with each other because they would
>>> have different event markers. For instance, in the active condition, the
>>> target word is marked with 17 in the prime sentence as well as in the
>>> target sentence, I am not sure if Matlab would be able to distinguish them
>>> (I assume not).
>>>
>>> So I would want to change them into something like:
>>>
>>> Active condition:
>>> Prime sentence: 40, 9, 13, 17, 21, 25, 29
>>> Target sentence: 45, 23, 33, 43, 53, 63, 73
>>>
>>> Passive condition:
>>> Prime sentence: 55, 8, 12, 16, 20, 24, 30
>>> Target sentence: 60, 26, 36, 46, 56, 66, 76
>>>
>>> Does anyone know how I can change event markers in my dataset?
>>>
>>> Thank you so much for anyone who responds!
>>>
>>> Best
>>> Edwige
>>> P.s As I am a master student, this is my first ever EEG study and during
>>> the design of my experiment these differences between triggers coding did
>>> not occur to me...
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> --
>> Makoto Miyakoshi
>> Swartz Center for Computational Neuroscience
>> Institute for Neural Computation, University of California San Diego
>>
>>
>>
>
> --
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
>
> _______________________________________________
> 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
>


-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180717/9ae726b6/attachment.html>


More information about the eeglablist mailing list