Importing JSON annotation file to Brainstorm

I am working with emotiv flex. When I export the data from emotiv software, I have a edf file without timestamp and a JSON file with the timestamp/event marker information. So when I import edf file in brainstorm, I don't see any timestamp. I wonder how can I import the json file in brainstorm, or if there is someway I can add timestamp from json to edf.

Hello

Indeed, it would be interesting to add a full support for the Emotiv datasets in Brainstorm. It should not be too complicated, as it looks like it's all nicely documented online:
https://emotiv.gitbook.io/emotivpro/exported_data_files/edf_files

I could work on this in a few weeks, but I would need some example datasets to test my code with.
Could you share a few small datasets of different types (with/without markers, CSV/EDF/JSON...)?
Please zip them, upload them somewhere, and post the download link here.

Thanks

Hi Francois

https://drive.google.com/open?id=1_o9XwTfyqq-Qr1_AIX9l9KGxwseHXZkv This is the download link to the zip file. My problem here is that after importing the edf file into brainstorm, no event marker is shown. In the edf file, it already has channel TIME_STAMP_s and TIME_STAMP_ms . These channels show the timestamps in second and milliseconds. 3 channel MarkerIndex, MarkerType, MarkerValueInt shows marker type and value of marker.

Thank you for your help

Hi Francois

I wonder how is it going with the data. Is there anything I can help with?

I started working on it yesterday :slight_smile:
I will post some updates soon

Sorry for the response delay...

I've just pushed a first version of the EmotivPRO .edf reader:
https://github.com/brainstorm-tools/brainstorm3/commit/072e7b8ea6fd256da4a1461f6433216b9e2086f7

Update Brainstorm to get this last update.
In the window to select the files to link to the database, select the file format "EEG: EmotivPRO". It needs only the EDF file, not the JSON or the CSV.
Let us know if it works as expected.

1 Like