Error using GEDAI plugin

Hi all,

I tried using GEDAI to clean my EEG data, but every time I try I get this error:

Error: [process_gedai]  Artifacts > GEDAI
Line 161: Undefined function 'GEDAI' for input arguments of type 'struct'.

Call stack:
>process_gedai.m>Run at 161
>process_gedai.m at 22
>bst_process.m>ProcessFilter at 784
>bst_process.m>Run at 158
>bst_process.m at 38
>panel_process1.m>RunProcess at 138
>panel_process1.m at 26
>gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 781
>bst_call.m at 28
>gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 301

File: Subject_001/Baseline_2024-02/data_block001.mat

Am I doing something wrong or is just a bug?

Thank you,

Paolo

Hi @Penrico, please check that the GEDAI plugin is Installed and Loaded.
(It should appear with a green dot in the plugin menu)


This is caused as the Brainstorm process does not automatically loads the GEDAI plugin.

This change is now proposed in this PR, once merged, you can update the plugin, and it will automatically check if the GEDAI plugin is loaded and load it if required.

Update the GEDAI plugin in Brainstorm, then the process will automatically load the plugin when needed.

HI @Raymundo.Cassani ,

I’ve been following the development of the GEDAI plugin and right now (latest version of both Brainstorm and GEDAI plugin) the denoising procedure seems to work quite well! I just tried runing GEDAI on my data and (after a while, but it’s ok) I get an EEGLAB-like window where I can select old data, new data, difference, etc.. However, after closing the EEGLAB-like window if I try to open the resulting file in the Brainstorm database to go on with the analysis I get this error.


** Error: Line 940: double
** Conversion to double from struct is not possible.
**
** Call stack:
** >bst_memory.m>LoadRecordingsMatrix at 940
** >bst_memory.m>GetRecordingsValues at 2121
** >bst_memory.m at 73
** >figure_timeseries.m>GetFigureData at 2809
** >figure_timeseries.m>PlotFigure at 2894
** >figure_timeseries.m at 42
** >view_timeseries.m at 274
** >tree_callbacks.m at 274
** >bst_call.m at 28
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 125
** >bst_call.m at 28
** >panel_protocols.m>@(h,ev)bst_call(@protocolTreeClicked_Callback,h,ev) at 75
**


Am I doing something wrong or is just a bug?

Thank you,

Paolo

Hello @penrico, this is an error in the GEDAI side.
It was (very) recently introduced, as it seems development is being carried out in the main brach of the GEDAI repo

A pull request has been made to the developers of GEDAI to fix that issue:
https://github.com/neurotuning/GEDAI-master/pulls


Meanwhile, we have set the GEDAI to use the latest fully tested (by the Brainstorm team).

  1. Uninstall the GEDAI plugin
  2. Update Brainstorm (should be 17-Feb-2026)
  3. Start Brainstorm
  4. Install the GEDAI plugin

This will get the GEADI plugin at: GEDAI Commit 3b613b8