Problem importing segmentation files in EDF+ format into MNE

:red_question_mark: If you have a question or issue with MNE-Python, please include the following info:

  • MNE version: 1.0
  • operating system: e.g. Windows 10

Hello everyone,
I’m having a problem importing files in EDF format into MNE. I have processed a large number (n=500) of recordings using BrainVision 2.0. I exported my epochs in EDF+ format. When I import the files into MNE, 2/3 of the annotations are missing. I tried exporting the continuous file (without the pre-processing and therefore without the epoching), and I found all my annotations.
Does the problem come from exporting with the epochs? How can I solve the problem without reprocessing 500 files?
Thank you very much for your help.

Thibaut

Hello @Thib and welcome to the forum!

I would suggest to open an issue on the MNE-Python GitHub issue tracker and provide the code you use to load the data and an example file that demonstrates the undesired behavior.

Best wishes,
Richard

AFAIK EDF is not really designed for epoched data, so I would not expect the MNE reader to recover all epochs. There is EDF+D for discontinous data, but I’m not sure if it can and should be used for epoched data (I’ve never worked with that variant, and I’m pretty sure MNE does not support EDF+D at all).

Would exporting your epochs to a more suitable format be an option? I don’t know which formats BVA supports, but FIFF supports epoched data and is fully supported by MNE.

Hello Richard and Clemens,

Thank you very much for your answers. I will try with the BrainVisionAnalyser files. That should be a simpler approach.

Best,

Thibaut

1 Like