Trouble importing a mff file

Hello,

I am new to BT and I need to import a mff file that originates from EGI system. I selected "EEG: EGI-Philips" as a file type, which requires to download the MFFMatlabIO library. When I hit Ok to download, I got an error message below. Can you help?

BT%20error

Hi!

It seems your system is having issues with our downloader. Can you please let us know your operating system, Matlab version and Java version? You can use the commands below in the Matlab command window if you're not sure:

bst_get('OsType')
bst_get('MatlabReleaseName')
bst_get('JavaVersion')

In the meantime, you can install the MFF library yourself. Download it here: https://neuroimage.usc.edu/bst/getupdate.php?d=mffmatlabio-2.01.zip and copy the mffmatlabio folder to $HOME/.brainstorm (in Windows, that's under C:\Users\yourUsername\.brainstorm). You will need to restart both Brainstorm and Matlab for it to work.

I hope this helps!
Martin

Thanks for your reply, Martin.

I copied the mffmatlabio file and when I tried to import the mff file, got the following error message:

Error: Line 218: mff_importsignal (line 218)
** Error: Can not open the signal resource.\n
**
** Call stack:
** >mff_importsignal.m at 218
** >mff_import.m at 85
** >in_fopen_mff.m at 43
** >in_fopen.m at 106
** >import_raw.m at 126
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,,,iSubject) at 592

I also tried the bst-get function and got the error message as well:

bst_get(‘OsType’)

Error: Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

FYI: OS Windows 10 enterprise 64-bit, Matlab version R2018b. I just got a new computer so installed one (version 8 update 191). After all this, I still got the same error message Line 218.

Any idea of how to move forward?

Ah yes, the forums change the single quotes character to another one not recognized by Matlab, annoying… No matter, the information you gave is fine.

As for your new error, this indicates that the MFFMatlabIO library was properly installed, but that it cannot read your file. If you’re confident the file you’re trying to read is valid (i.e. unzipped and not corrupted), you can upload it somewhere and post it here or report it to the MFFMatlabIO developers: https://github.com/arnodelorme/mffmatlabio

I hope this helps,
Martin

Thanks again Martin.

On a different note, I got EEG data from Healthy Brain Network and they provide both pre-processed and raw data. The both pre-processed and raw data came in CSV and mat formats, and the raw data also has a folder, named "mff_format" with a bunch of files with different extensions (see the screenshot). I tried with different file extensions to read in these data files, but none of them worked. Can you share your advice?

p.s. The data acquisition was done through EGI Netstation.

Thank you for the screen capture. This definitely looks like an MFF file. You were probably selecting the signal1.bin file, while Brainstorm was expecting the parent folder (NDARAA075AMK). I pushed an update to Brainstorm so that it works by both selecting the parent folder or the signal1.bin file: https://github.com/brainstorm-tools/brainstorm3/commit/341f3b68627f0c98f30d0b774d9b6945bf9040a8

Go ahead and update Brainstorm and try again.

Martin

Hello Martin,

I updated the brainstorm and now I can read it the mff folder. Thanks!

1 Like