[Eeglablist] Preprocess a Group Study

Cedric Cannard ccannard at protonmail.com
Fri Sep 3 10:03:45 PDT 2021


Hi Chanda,

I developed a function recently to import EDF data into EEGLAB: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_amisepa_import-5FEDF&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=WZaYvEuVCCfmPDKiwCqK-Q_08tGxy9sc1IkYR8L95uM&s=DI9vK_E-p7lfKb8IObzy7fdpfQzrAwyddN5rUCNzu1o&e= 
You need Matlab 2020a or later and the signal processing toolbox to be able to use it. You can try to see if it eases your process by avoiding having to merge your events from the text file.

Regarding your problem, there are many ways to process large quantities of files.
It sounds you just need to rename some events so that they are the same across subjects? You can do so with:
 event_to_rename = strmatch('name_of_event_to_rename', { EEG.event.type }, 'exact');
 EEG = pop_selectevent(EEG,'event', event_to_rename,'renametype','new_name','deleteevents','off');

Once your events are homogenous across subjects, you can do any kind of standard EEGLAB pipeline on your large sample.

I also invite you to check out these new great recent tools developed by the EEGLAB team for database management for computation automation and facilitating data sharing and compatibility across laboratories:
- HED (events): https://urldefense.proofpoint.com/v2/url?u=https-3A__www.hedtags.org_&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=WZaYvEuVCCfmPDKiwCqK-Q_08tGxy9sc1IkYR8L95uM&s=UFIR5lx-tOxxoYVHwZYoP3eC2V-9FJ0WtEmF3k9SgEA&e= 
- BIDS (data structure): https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bids-2Dstandard_bids-2Dspecification&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=WZaYvEuVCCfmPDKiwCqK-Q_08tGxy9sc1IkYR8L95uM&s=WhSqFOnQUbSWz_Q-J_JhVV0WzHAiAnXYRx4PEj_odd4&e= 
- LIMO (advanced methods to analyze your data): https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_LIMO-2DEEG-2DToolbox_limo-5Ftools_wiki&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=kB5f6DjXkuOQpM1bq5OFA9kKiQyNm1p6x6e36h3EglE&m=WZaYvEuVCCfmPDKiwCqK-Q_08tGxy9sc1IkYR8L95uM&s=dGHrjStEckgSiZw3AoUg5tHYYMustqwco2JDN3ZD5vY&e= 

Hoe this helps,

Cedric Cannard


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Thursday, September 2nd, 2021 at 8:25 PM, Chanda Steven via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Dear All,
>
> I am preprocessing a lot (1000+) of qeeg data in edf format with eeglab on
>
> Matlab, each subject has a unique file with events in the .txt file that I
>
> am merging with the subjects edf file and preprocesses the data to obtain
>
> the time-frequency plot (ERSP and ITC) for developing a machine learning
>
> model.
>
> The problem is that I can not create a group study due to subjects having
>
> different events and that is causing an error "Some datasets have only one
>
> trial, cannot compute ERPimages" when plotting the time-frequency (ERSP and
>
> ITC). Is there a way that I can use to preprocess a group of subjects at
>
> the same time and plot the time-frequency in Matlab or any python
>
> algorithm that I can use in MNE, I tried using MNE with python but
>
> importing events file and merge it with the edf and select only events of
>
> interest was a bit challenging. Any advice on this problem would be
>
> appreciated?
>
> Thank You,
>
> Chanda Simfukwe.
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Chanda Simfukwe
>
> Ph.D. Candidate
>
> Artificial Intelligence and Data Science,
>
> Chung-Ang University Dept. Medicine,
>
> The Korea Republic of.
>
> ..........................................
>
> 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


More information about the eeglablist mailing list