[Eeglablist] Plotting continuous data and event types not appearing

Roberto Petrosino rp3650 at nyu.edu
Fri Mar 31 01:22:36 PDT 2023


Hi Cedric, 

Thank you for your response. Both commands you suggested below seem to work -- both even types/codes and latencies seem to be there. The recording was saved as a Brain Vision Analyzer file (i.e., with the usual triplet of files -- .eeg, .vhdr, .vmrk). I used the usual plug-in by selecting it from the EEGlab GUI: File > Import data > Using EEGlab functions and plugins > From Brain Vis. Rec. .vhdr or .ahdr file. I have the bva-io plugin (v.1.71) installed on MATLAB 2023a. 

I opened an issue (and included the files) on github, if you want to take a look at the data: https://urldefense.com/v3/__https://github.com/sccn/eeglab/issues/600__;!!Mih3wA!Ay2FaGOYQbkoPCy1QONbi2XoD2KqJIc_iW92NyEF2c33Ohsw3jaCJgH-RXcSSpCAfwJNe4Yd5ubIDmkN0l2XPA$  <https://urldefense.com/v3/__https://github.com/sccn/eeglab/issues/600__;!!Mih3wA!Ay2FaGOYQbkoPCy1QONbi2XoD2KqJIc_iW92NyEF2c33Ohsw3jaCJgH-RXcSSpCAfwJNe4Yd5ubIDmkN0l2XPA$ >.

Thanks!

-Roberto

—————
Roberto Petrosino (he/him/his)
Postdoctoral Associate
Psychology, Division of Science
New York University Abu Dhabi
https://urldefense.com/v3/__https://robpetrosino.github.io__;!!Mih3wA!Ay2FaGOYQbkoPCy1QONbi2XoD2KqJIc_iW92NyEF2c33Ohsw3jaCJgH-RXcSSpCAfwJNe4Yd5ubIDmk9BTmeGQ$  <https://urldefense.com/v3/__https://robpetrosino.github.io/__;!!Mih3wA!Ay2FaGOYQbkoPCy1QONbi2XoD2KqJIc_iW92NyEF2c33Ohsw3jaCJgH-RXcSSpCAfwJNe4Yd5ubIDmm34MOH5A$ >




> On 30 Mar 2023, at 10:07 PM, Cedric Cannard <ccannard at protonmail.com> wrote:
> 
> Hi Roberto,
> 
> Sounds like your events are there if you can display them, but the latencies may be wrong. Did you try this command I sent in my previous email: 
> my_events = {EEG.event.type}
> 
> Next, what does this command return when you paste it in Matlab's command window?   
> [EEG.event.latency]
> 
> 
> If you get errors, the problem is likely occurring during import. You mentioned a CGX headset, are your data .vhdr files? Did you import with the bva plugin? Are your events in a separate file or in a channel in the same file as the EEG data? 
> If not vhdr, what format is it and how did you import it in eeglab? 
> 
> You can also submit an issue here and add a link to one of your file: https://urldefense.com/v3/__https://github.com/sccn/eeglab/issues__;!!Mih3wA!Ay2FaGOYQbkoPCy1QONbi2XoD2KqJIc_iW92NyEF2c33Ohsw3jaCJgH-RXcSSpCAfwJNe4Yd5ubIDmm7CvjGew$  <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sccn_eeglab_issues&d=DwMGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=EeY95S6b7H1xbCepUg5nEg&m=ILgJgVgUQoWJ6MA1vFK3khF0iw7ZSJtCVjOGAVMCvobDrdsPBwRbGBVDVOH2egr2&s=Ro5_OFYxv0fbaeHtfK79HK107F3F2CfVYaSnJ_Bd56c&e=>
> 
> Cedric
> 
> 
> ------- Original Message -------
> On Wednesday, March 29th, 2023 at 12:35 AM, Roberto Petrosino <rp3650 at nyu.edu> wrote:
> 
>> Hi Cedric, 
>> 
>> Thank you for your reply. 
>> 
>> Do have any suggestion regarding (1) below? I have started collecting data for my EEG experiment using Cedrus Stim Trigger box wirelessly connected to the CGX 20-channel headset. I am presenting auditory stimuli through Presentation. The trigger markers seem to be correctly sent by the Stim Trigger to the acquisition software. However, after importing the data in EEGlab, it looks like there is not event marker at all – see screenshot below:
>> 
>> <Screen Shot 2023-03-22 at 11.31.58 AM.png>
>> 
>> As you can see the event types are listed, but they do not appear when scrolling the raw data. Do you know why this is happening? I have also contacted Cedrus and CGX -- it might be just an issue of the way triggers are sent from the stim trigger and/or stored by the CGX acquisition software, but I thought you guys might have some suggestions too
>> 
>> Thanks!
>> -r
>> 
>> —————
>> Roberto Petrosino (he/him/his)
>> Postdoctoral Associate
>> Psychology, Division of Science
>> New York University Abu Dhabi
>> https://urldefense.com/v3/__https://robpetrosino.github.io__;!!Mih3wA!Ay2FaGOYQbkoPCy1QONbi2XoD2KqJIc_iW92NyEF2c33Ohsw3jaCJgH-RXcSSpCAfwJNe4Yd5ubIDmk9BTmeGQ$  <https://urldefense.proofpoint.com/v2/url?u=https-3A__robpetrosino.github.io&d=DwMGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=EeY95S6b7H1xbCepUg5nEg&m=ILgJgVgUQoWJ6MA1vFK3khF0iw7ZSJtCVjOGAVMCvobDrdsPBwRbGBVDVOH2egr2&s=ndaPN2MDjhd8ujyEMG99D3pwJfSUCFaCCtlVKajwWyM&e=>
>> 
>> 
>> 
>> 
>>> On 27 Mar 2023, at 8:45 PM, Cedric Cannard <ccannard at protonmail.com <mailto:ccannard at protonmail.com>> wrote:
>>> 
>>> Hi Roberto,
>>> 
>>> I don't think this is possible via the GUI, but you can simply type this in command window (once your data are loaded in eeglab):
>>> 
>>> my_events = {EEG.event.type};
>>> summary(categorical(my_events))  % displays count for each event type
>>> 
>>> Hope this helps. 
>>> 
>>> If you need to export the counts for a specific category, use:
>>> idx = contains(my_events, 'event_type_of_interest');
>>> count = sum(idx)
>>> 
>>> Then you can save the index of events of interest (variable 'idx') if you need or keep only these events, etc. Just change the name of the event type if you need to do this with other types. 
>>> 
>>> Cedric
>>> 
>>> 
>>> 
>>> ------- Original Message -------
>>> On Wednesday, March 22nd, 2023 at 1:12 AM, Roberto Petrosino <rp3650 at nyu.edu <mailto:rp3650 at nyu.edu>> wrote:
>>> 
>>> 
>>>> Hello everyone,
>>>> 
>>>> I have imported some .vhdr file in EEGlab (v. 2023). I have two questions:
>>>> 
>>>> 1. When plotting the raw data, event types do not show up, even though they are listed and recognized (see screenshot below). Does anyone know what this may happen? I have been working with .vhdr files for a while now, and it never happened to me before. My lab has just changed device, so I was wondering if that could be the reason for this, and what is the solution for this (if any at all).
>>>> 
>>>> 2. Is there a way within EEGlab to count the number of stimulus types occurring in a given dataset? I could just export the event data and count types in R (or similar), but I was wondering if there is any GUI-based way to do this.
>>>> 
>>>> Thanks!
>>>> 
>>>> 
>>>> —————
>>>> Roberto Petrosino (he/him/his)
>>>> Postdoctoral Associate
>>>> Psychology, Division of Science
>>>> New York University Abu Dhabi
>>>> https://urldefense.com/v3/__https://robpetrosino.github.io__;!!Mih3wA!FSflv_ualv8jaUlpA450EBte9XMFMHaexiH4YbYm1UaVmB8jMkiY9ElJ9c61yvsNJrUcwyyrtSdfcqhWgNzlXg$ <https://urldefense.com/v3/__https://robpetrosino.github.io__;!!Mih3wA!FSflv_ualv8jaUlpA450EBte9XMFMHaexiH4YbYm1UaVmB8jMkiY9ElJ9c61yvsNJrUcwyyrtSdfcqhWgNzlXg$> <https://urldefense.com/v3/__https://robpetrosino.github.io/__;!!Mih3wA!FSflv_ualv8jaUlpA450EBte9XMFMHaexiH4YbYm1UaVmB8jMkiY9ElJ9c61yvsNJrUcwyyrtSdfcqiFmV2qnw$ <https://urldefense.com/v3/__https://robpetrosino.github.io/__;!!Mih3wA!FSflv_ualv8jaUlpA450EBte9XMFMHaexiH4YbYm1UaVmB8jMkiY9ElJ9c61yvsNJrUcwyyrtSdfcqiFmV2qnw$> >
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Eeglablist page: https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=EeY95S6b7H1xbCepUg5nEg&m=ls7_XF9A2hNkvyq7S3hzTnks-TQ16UZqlDBmynMkXENe-629lFASEFg-L4VG_VCu&s=JiVkfDU6RkHJtZ-u_s5MkoX5a9qhmb-i0V2S5t6sKjM&e= <https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=EeY95S6b7H1xbCepUg5nEg&m=ls7_XF9A2hNkvyq7S3hzTnks-TQ16UZqlDBmynMkXENe-629lFASEFg-L4VG_VCu&s=JiVkfDU6RkHJtZ-u_s5MkoX5a9qhmb-i0V2S5t6sKjM&e=> 
>>>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu <mailto: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 <mailto:eeglablist-request at sccn.ucsd.edu>
>> 
> 




More information about the eeglablist mailing list