dlopezg / mvpalab

An easy to use decoding toolbox for Matlab users.
GNU General Public License v3.0
26 stars 5 forks source link

Working with .set file #9

Closed ravidasucl closed 1 year ago

ravidasucl commented 1 year ago

Dear David,

I'm attampting to run an analysis on some data that have been epoched with EEGlab but seem to be falling at the first hurdle. The documentation says that MVPALab can take .set files as input, however after pointing to these data in the configuration and setting the analysis paramters, there is an import fail message due to no data files being found?

Are you able to advise on the likely cause of this error? Should I go back into EEGLab and re-save all the .set files as .mat instead? If you would like to reproduce the error, I can send you an example .set file.

Many thanks,

Ravi

The error is as follows:

Error using mvpalab_import (line 53) Data files not found. Directory: C:\\CS+epoched\

Error in analysisController (line 8) [cfg,~,fv] = mvpalab_import(cfg);

Error in run (line 91) evalin('caller', strcat(script, ';'));

Error in studyView/startAnalysisPushed (line 1223) evalin('base', 'run analysisController');

Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335) Error while evaluating Button PrivateButtonPushedFcn.

dlopezg commented 1 year ago

Hi Ravi, thanks for your message.

Could you send your .set file to me in order to reproduce the error you are getting?

David

dlopezg commented 1 year ago

Hi Ravi, thanks for sharing your data. I have check your files. The problem doesn't seem to be related to MVPAlab Toolbox. When I tried to open your .set files with EEGLAB I got the same error. According to EEGLAB documentation, EEG datasets are usually saved in two files, the metadata file (.set) and the data file (.fdt). If you renamed the .set file, please be sure to rename the .fdt as well. Additionally, .set files and .fdt files should be in the same folder in order to be imported by the EEGLAB function.

Please check the following link and if the problem remains contact me again. https://eeglab.org/tutorials/ConceptsGuide/Data_Structures.html#saved-set-files

David

Edit: This is the error I am getting both in MVPAlab and EEGLAB when I try to open your .set files:

_Error using eeg_getdatact (line 209) file 006CS_minusEpoched.fdt not found. If you have renamed/moved the .set file, you must also rename/move the associated data file.

This error is thrown by the EEGLAB function pop_loadset, so the problem should be related to the way you are saving (or renaming) your data. Please let me know if you solved the issue and you are able to import your data into MVPAlab.

ravidasucl commented 1 year ago

Hi David,

Thanks for the response. I'm afraid the corresponding .fdt files were in the same location as the .set files and names corresponded when this error was given. ould you recommend not working with .set files?

All the best,

Ravi


From: David López-García @.> Sent: 28 February 2023 19:51 To: dlopezg/mvpalab @.> Cc: Das, Ravi @.>; Author @.> Subject: Re: [dlopezg/mvpalab] Working with .set file (Issue #9)

⚠ Caution: External sender

Hi Ravi, I have check your files. The problem seems to be not related to MVPAlab Toolbox. When I tried to open your .set files with EEGLAB I got the same error. According to EEGLAB documentation, EEG datasets are usually saved in two files, the metadata file (.set) and the data file (.fdt). If you renamed the .set file, please be sure to rename the .fdt as well. Additionally, .set files and .fdt files should be in the same folder.

Please

— Reply to this email directly, view it on GitHubhttps://github.com/dlopezg/mvpalab/issues/9#issuecomment-1448777291, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5Y2HOPJXLNJXISCI4C5QLTWZZJNJANCNFSM6AAAAAAVILMFKQ. You are receiving this because you authored the thread.Message ID: @.***>

dlopezg commented 1 year ago

Hi Ravi, it is easier to work with .mat files since they are directly imported to MVPAlab. Contrary, to import .set files the EEGlab function pop_loadset is required. The error you are getting is thrown by this function, so you should not be able to load your .set files into eeglab. Try to export your preprocessed data in EEGlab to .mat files and your problem will be solved.

David

ravidasucl commented 1 year ago

Hi David,

Thanks for that. There are no issues with pop_loadset when loading the set files into EEGlab. We have already done some ERP analyses on these data and there have been no issues with any of the files so far.

All the best,

Ravi


From: David López-García @.> Sent: 02 March 2023 15:05 To: dlopezg/mvpalab @.> Cc: Das, Ravi @.>; Author @.> Subject: Re: [dlopezg/mvpalab] Working with .set file (Issue #9)

⚠ Caution: External sender

It is easier to work with .mat files since they are directly imported to MVPAlab. Contrary, to import .set files the EEGlab function pop_loadset is required. The error you are getting is thrown by this function, so you should not be able to load your .set files into eeglab.

— Reply to this email directly, view it on GitHubhttps://github.com/dlopezg/mvpalab/issues/9#issuecomment-1452021041, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5Y2HOP3ABCT6MWGBNUBNZTW2CZL7ANCNFSM6AAAAAAVILMFKQ. You are receiving this because you authored the thread.Message ID: @.***>

dlopezg commented 1 year ago

That's weird. Would you mind sharing some .set and .fdt files with me? I am going to try to reproduce the exact same error. Thanks in advance, David.

dlopezg commented 1 year ago

Hi Ravi, I deleted your previous message to keep your data private. These messages are publicly available on GitHub. Please contact me directly at dlopez[at]ugr[dot]com for sharing the data. Thanks, David.