Data format for import from BrainVision Analyser

Hi!
I’m writting here for technical assistance since I have problems in importing
EEG datas from BrainVision Analyser.

Indeed, I suceed in importing averaged datas (.dat), but I wanted to import
epoched and pre-proceced datas. As seen in the forum, I suceed in exporting
from BrainVision in ASCII, that done me 3 documents, one for recordings (.dat,
or .eeg), one for the header (.vhdr) and one for markers (.vmrk). And then, I’m
not able from brainstorm to import theses files as an error message apears on
the screen : “Cannot read files :“C://(file path)””

The only thing I was able to do is export at the loreta format (also .dat ! )
but when openning it in brainstorm, I m not able to discriminate differents
epochs.

It’s like gneric export from BrainVision is an invalid one, but I can’t find out why (I also change separators “,”".").

So I write you to know if you have an idea on what I can do. :slight_smile:

I thanks you a lot in advance! :slight_smile:

Friendly,

Nicolas LEBAR

Hi Nicolas,

I finished the support for the BrainVision ASCII format and fixed a few bugs in the reading of the header file (vhdr). You should be able to directly review or import this file in Brainstorm.

However, I strongly recommend that you do not use this ASCII file format, because it’s extremely slow and definitely not adapted for storing EEG information. Always prefer the binary/multiplexed format from BrainVision (.eeg).
Note: the two files you sent me (.dat and .eeg) were both ASCII files and were exactly the same.

Please let me know how this goes.

Cheers,
Francois

Hi François,

Thanks you very much for your quick reply! :slight_smile:

Unfortunately, I still might do something wrong somewhere because I’m still not able to read the file (ASCII or binary/multiplexed). I’ve downloaded the latest Brainstorm version (24 may) and tried to import the file I send you, the same error message appears (“Cannot read files :“C://(file path)””). I also tried with binary/multiplexed files from BrainVision exports and it goes to the same error message. I can send you this file if you need it.

Thanks in advance for your help,

Friendly,

Nicolas LEBAR

The files you sent me can be open without problems now (but not with the compiled version).
Use the file format “EEG: BrainVision BrainAmp”, not “BrainVision Analyzer”.
And also try to save your files in a real binary format (the .eeg file you sent me is an ASCII file).

Hi again! :slight_smile:

Thanks for reply. So I can now export files from BrainVision Analyser, and import the 3 files (.eeg, header and Markers) into BrainStorm. But it’s at this point that I have difficulties and I need help! :slight_smile: Indeed, I have these 3 files that I cannot actually display (time series) because “the number of channels in Channel File (64) and data file (57) do not match. Aborting…” . I’m sure that I’m exporting 64 file from Brain Vision as I checked this parameter. On an other hand, I can’t check the file as I’m not to open it coherently with excel, bloc-note or whatever (à²éàç_'hz@f writing). The solution might be quite simple, but I’m stuck at this point, if you have an idea.

Thanks a lot!

Friendly,

Nicolas LEBAR

Hi Nico,

Create a subject, right-click on it > Import MEG-EEG, select your file and the format "EEG: BrainVision BrainAmp (*.eeg)".
And that's it, everything is imported properly, with 66 channels both for the data and the channel file.
You can display them in all the possible ways (see the attached screen capture).

Francois


Hi François!

Thank you very much for your quick reply! So it does work and I can import binary/multiplexed files with correct channel number from Brain Vision. But at this point I have another problem (I m really sorry to ask again for your help, I found nothing on the forum) : the displayed EEG curves (time series) in Brainstorm of the imported files are not the same that the exported ones displayed in BrainVision (I can send you a screen capture). It’s like I have a file transformation at some point between export and import. It doesn’t look like a display option, although I can’t be formal it’s not. Do you know where could be my mistake?

Thank you a lot in advance!

Nico

When you review the file:

  • Enable/disable the average reference display (the button AVG REF in the toolbar)
  • Other display options in the menus of the tab “Event”.
    When you import the file: disable the option “Remove DC offset”

Thanks! It’s works perfectly fine.

Note for BrainVision / BrainAmp users:
A bug was found in the application of the channel gain, the amplitudes read where sometimes incorrect.
Please update Brainstorm for reading correct amplitudes from the BrainVision files.

Note for BrainVision / BrainAmp users:
A bug was found in the application of the channel gain, the amplitudes read where sometimes incorrect.
Please update Brainstorm for reading correct amplitudes from the BrainVision files.

Hi François,

I'm trying to load on brainstorm three types of files from BrainVision (.eeg, .vhdr and .vmrk). So far I did what you suggested with the .eeg (brainvision brainamp). It loaded but cant open it I get this Screenshot%20from%202018-12-21%2013-33-00.
What should I do now ? and how do I load the header and other file ?

Thank you !

Beatrice

The three files are loaded at once when reading the .eeg file, nothing else has to be done.
But I have no idea why you would get this error. Try again: delete the link, create it again. Maybe try again resetting Brainstorm (menu File > Edit preferences > Reset).
If you keep on getting the same error for this file, but you don’t have any problem with the tutorial datasets, please share this file with us so we can try debugging this issue (upload it somewhere, then post the link here).

Hi,
I select the file and the format "EEG: Brain Vision BrainAmp (.eeg) and this error message appear.

I can send you this file if you need.

Thanks in advance for your help,
Best regards,

Marine Petit
S3-TD-111023.vmrk (11.9 KB)
S3-TD-111023.vhdr (1.5 KB)

Hi Marine,

Please upload the files somewhere and post the download links here.

Best,
Raymundo

Hi Raymundo,
Thank you for your prompt reply.
Here is the drive link to access the data:
https://drive.google.com/drive/folders/1KbgR4zTHyVE8X_uWVk0kBXdCrymps6Zn?usp=share_link

Thanks in advance for your help,
Best regards,

Marine Petit

The error appears as there is a typo in the file names.
The three files are expected to have the same base name, and this is not the case:

S3-TD-11102023.eeg
S3-TD-111023.vhdr
S3-TD-111023.vmrk

To review data, just rename the .eeg file to:

S3-TD-111023.eeg

Hi Raymundo,
Thank you for your prompt reply.

It's strange because my other data are all in the same format.
Can you have a look at the S5s I've just added to the drive, as the problem persists when I try to import the data with Brain Vision Amp.

Thanks in advance for your help,
Best regards,

Marine Petit

Both recordings, S3 and S5 are read without problems, after renaming the .eeg file for S3.

Be sure your are selecting EEG: BrainVision BrainAmp (*.eeg,*.dat) as File of Type:
image

Hi Raymundo,
Thank you for your prompt reply.

It’s works perfectly fine now.

Best regards,
Marine Petit