[Eeglablist] Creating epochs with json files

Cedric Cannard ccannard at protonmail.com
Wed May 26 15:10:39 PDT 2021


Hi,

You can import your EDF data with the Biosig toolbox:
File>Import Data> Using EEGLAB functions and plugins>From EDF

Then not sure how that would work out, but you can use jsondecode to import your events from your json file into Matlab. And then with a little bit of coding trasnfer the events into the EEG.event structure which is where EEGLAB stores that information. The column EEG.event.type refers to the name of the marker, and EEG.event.latency refers to the timepoint of the marker in ms. The EEG.event.urevent is filled out automatically by "EEG = eeg_checkset(EEG);" and this will make sure there are no obvious errors in the formatting of the structure.

There may be other easier ways/plugins I am not aware of.


Cedric

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, May 25, 2021 2:20 PM, Fiona Mitchell Baumer via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Hello,
>
> I have clinical EEGs (saved as edf files) that I have marked, with markings stored in a .json file. I am wondering if there is a way to use the markings in the json file to create epochs from the EEG/edf data?
>
> I am a physician and not particularly coding savvy. The person I’m collaborating with on this project used python/mne scripting to import the data and calculate connectivity values between electrodes. The values seem very off to me (based on the literature), so I was hoping to run a sanity check in Matlab/EEGlab as I’m more familiar with this than python. I can’t figure out how to make the epochs however.
>
> Thanks very much!
> Fiona
>
> Fiona Baumer, MD
> Assistant Professor in Child Neurology
> Lucile Packard Children’s Hospital
> 750 Welch Rd, Suite 317
> Palo Alto, CA 94304
>
> 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