Error in MEM model

MEM model ERROR

I am in trying to do combined process during the MEM model in the surface Brain model. I can run the MEM model using the ICEEG data and MEG data and ran it separately. But when I tried to run it all together, the error showed up and saying can't find the ICEEG data. I am wondering what did I do wrong? Please see the error below

Unrecognized field name "idata".

Error in be_fusion_of_modalities (line 70)
if exist('idata', 'var'); obj.idata = [obj.idata; idata{ii}]; end

Error in be_cmem_solver (line 178)
obj = be_fusion_of_modalities( , obj, OPTIONS);

Error in be_main_call (line 157)
[Results, MEMoptions] = feval(['be_' lower(MEMoptions.mandatory.pipeline) '_solver'], HeadModel, MEMoptions, Results );

Error in be_main (line 60)
[Results, OPTIONS] = be_main_call(varargin{:});

Error in process_inverse_2018>Compute (line 696)
[Results, OPTIONS] = be_main(HeadModel, OPTIONS);

Error in process_inverse_2018 (line 24)
eval(macro_method);

Error in panel_protocols>TreeInverse (line 1390)
[OutputFiles, errMessage] = process_inverse_2018('Compute', iStudies, iDatas);

Error in panel_protocols (line 46)
eval(macro_method);

Error in tree_callbacks>@(h,ev)panel_protocols('TreeInverse',bstNodes,'2018') (line 2697)
gui_component('MenuItem', jPopup, , 'Compute sources [2018]', IconLoader.ICON_RESULTS, , @(h,ev)panel_protocols('TreeInverse', bstNodes, '2018'));"

Thank you

Hello,

Thanks a lot for the message. This is a known bug that is going to be fixed when the following PR is merged (depth-weighted version for wMEM by Edouard2laire · Pull Request #13 · multifunkim/best-brainstorm · GitHub).

Will keep you updated when you can update MEM and try again :slight_smile:

cc @cgrova

Thank you so much. I am using cMEM and NOT wMEM. Not sure is that will difference. thank you so much....

Hello,

The issue should now be fixed. Please update your version of MEM and try again.

Regards,
Edouard

Hi Edouard

thank you so much for your help
I tried again and still showing the same error. I used cMEM. Not sure is this something related. Also I also screenshot the channel file _ i could run it if i only choose SEEG but I couldn't if I used all combination of (MEG+SEEG)

See the below matlab output

Thanks

===== pipeline cMEM
cMEM, be_main_source ... done.
cMEM, be_main_leadfields ... done.
cMEM, stable clustering ...
cMEM, stable clustering: dimension of the signal subspace 4, for inertia > 0.95
cMEM, stable clustering: dimension of the signal subspace 4, for inertia > 0.95
cMEM, stable clustering: dimension of the signal subspace 3, for inertia > 0.95
MEM : New noise covariance is computed using baseline
MEM : New noise covariance is computed using baseline
MEM : New noise covariance is computed using baseline
![channel file|161x500](upload://8mhCqvHR9c7XUyXEYA6f4v7FUCD.png)

cMEM, MULTIMODAL data ... MEG GRAD ... MEG MAG found Unrecognized field name "idata".

Error in be_fusion_of_modalities (line 74)
        if exist('idata', 'var'); obj.idata = [obj.idata; idata{ii}]; end

Error in be_cmem_solver (line 182)
obj = be_fusion_of_modalities( [], obj, OPTIONS);

Error in be_main_call (line 157)
    [Results, MEMoptions]   = feval(['be_' lower(MEMoptions.mandatory.pipeline) '_solver'], HeadModel, MEMoptions, Results );

Error in be_main (line 60)
    [Results, OPTIONS]  =   be_main_call(varargin{:});

Error in process_inverse_2018>Compute (line 696)
                [Results, OPTIONS] = be_main(HeadModel, OPTIONS);

Error in process_inverse_2018 (line 24)
eval(macro_method);

Error in panel_protocols>TreeInverse (line 1390)
            [OutputFiles, errMessage] = process_inverse_2018('Compute', iStudies, iDatas);

Error in panel_protocols (line 46)
eval(macro_method);

Error in tree_callbacks>@(h,ev)panel_protocols('TreeInverse',bstNodes,'2018') (line 2697)
        gui_component('MenuItem', jPopup, [], 'Compute sources [2018]', IconLoader.ICON

Thank you. Could you export this subject from your brainstorm database so I could run some test on my side and see what's going on ?

Hello @taung

The issue should now be solved. You can update BEst and try again.

Please note that we only validated the fusion between EEG and MEG sensors with MEM; so be careful when interpreting the fusion between SEEG and MEG. Maybe you can compare the result with the localization of SEEG alone and MEG alone :slight_smile:

Edouard