I believe there is a bug in computation of epileptogenicity index, as I have few of cases like below that throw and error and the computation do not complete.
Could you please advise.
Thanks
SPM12: spm_spm (v7120) 14:15:49 - 04/09/2019
Chunk 1/1 : ...done
Failed 'Model estimation'
Error using spm_spm (line 652)
Please check your data: There are no inmask voxels.
In file "C:\Users\leila\Desktop\spm12\spm_spm.m" (v7120), function "spm_spm" at line 652.
In file "C:\Users\leila\Desktop\spm12\config\spm_run_fmri_est.m" (v7057), function "spm_run_fmri_est" at line 34.
Running 'Contrast Manager'
SPM12: spm_contrasts.m 14:15:50 - 04/09/2019
Contrasts folder : .\SPM_EI_EEG_26_60_200_2_0
Failed 'Contrast Manager'
Error using spm_run_con (line 34)
This model has not been estimated.
In file "C:\Users\leila\Desktop\spm12\config\spm_run_con.m" (v7093), function "spm_run_con" at line 34.
The following modules did not run:
Failed: Model estimation
Failed: Contrast Manager
** Error: Could not compute epileptogenicity maps.
1 errors and 0 warnings
process_epileptogenicity
error 8 files [...] Line 0: MATLABbatch system
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact #job as displayed in this error message)
Running job #1
Call stack:
.m>MATLABbatch system at 0
_______________________________________________ 04-Sep-2019 14:15:50
From the error message "Please check your data: There are no inmask voxels", it looks like there is no input data in your model evaluation. Maybe a problem of registration with your electrodes?
So I removed the line in the spm file that makes this errors. It passed the error and it managed to estimate models, i think.
But now I have this error:
** Error: [process_epileptogenicity] Epilepsy > Epileptogenicity maps (A=Baseline,B=Seizure)
** Line 109: betainc
** X must be in the interval [0,1].
**
** Call stack:
** >spm_Tcdf.m at 109
** >spm_ECdensity.m at 38
** >spm_P_RF.m at 63
** >spm_uc_RF.m at 37
** >spm_uc.m at 31
** >ImaGIN_Epileptogenicity.m>WriteDelay at 655
** >ImaGIN_Epileptogenicity.m at 534
** >process_epileptogenicity.m>Run at 277
** >process_epileptogenicity.m at 28
** >bst_process.m>Run at 231
** >bst_process.m at 36
** >panel_process2.m>RunProcess at 150
** >panel_process2.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 760
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 293
Could it be because I canceled that line in spm, or this is something else?
First make sure you are running un up-to-date version of SPM12 (type "spm_update" from the SPM12 folder). Then avoid commenting out lines in SPM code, this will most likely not lead you anywhere.
Post the full error message you get without modifying anything.
This error "Please check your data: There are no inmask voxels" indicates that you have no valid data to be tested. This is probably due to a problem with setting the electrodes positions.
Please post a screen capture showing your SEEG electrodes in the MRI.
I'd recommend you start by following the tutorial using the example dataset instead of your own recordings. This way you'll focus on getting familiar with the tools, and you'll make sure everything works well with your SPM install.
Was this ever resolved? I have the exact same error (pasted below) even though my inputs seem to be valid. I notice that the electrodes are properly placed:
Everything is working fine until Step 6. I chose my range of frequencies [130 193], latency list is 0, time constant 3, propagation threshold p = 0.05, output is volume (although tried with surface too). SPM loads and does a bunch of iterations, then a pop up says Epileptogencity maps could not be computed. SPM12 is up to date. Any ideas? Thank you!
This is the error I get within the Brainstorm GUI:
Line 0: MATLABbatch system Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact #job as displayed in this error message) ------------------ Running job #4 ------------------ _______________________________________________ Call stack: >.m>MATLABbatch system at 0 _______________________________________________
And this is what I see in the Matlab console:
------------------------------------------------------------------------
07-May-2023 22:25:56 - Running job #4
------------------------------------------------------------------------
07-May-2023 22:25:56 - Running 'fMRI model specification'
SPM12: spm_fMRI_design (v7739) 22:25:56 - 07/05/2023
========================================================================
Saving fMRI design : ...SPM.mat saved
SPM12: spm_fmri_spm_ui (v7738) 22:25:56 - 07/05/2023
========================================================================
Mapping files : ...done
Calculating globals : ...done
Saving SPM configuration : ...SPM.mat saved
Saving SPM configuration : ...SPM.mat saved
Completed : 22:25:57 - 07/05/2023
07-May-2023 22:25:57 - Done 'fMRI model specification'
07-May-2023 22:25:57 - Running 'Model estimation'
SPM12: spm_spm (v7738) 22:25:57 - 07/05/2023
========================================================================
Chunk 1/1 : ...done
07-May-2023 22:25:59 - Failed 'Model estimation'
Error using spm_spm (line 652)
Please check your data: There are no inmask voxels.
In file "/Users/egleich/.brainstorm/plugins/spm12/spm12/spm_spm.m" (v7738), function "spm_spm" at line 652.
In file "/Users/egleich/.brainstorm/plugins/spm12/spm12/config/spm_run_fmri_est.m" (v7354), function "spm_run_fmri_est" at line 36.
07-May-2023 22:25:59 - Running 'Contrast Manager'
SPM12: spm_contrasts.m 22:25:59 - 07/05/2023
========================================================================
Contrasts folder : ..I_Seizure_sample_130_193_3_0
07-May-2023 22:25:59 - Failed 'Contrast Manager'
Error using spm_run_con (line 34)
This model has not been estimated.
In file "/Users/egleich/.brainstorm/plugins/spm12/spm12/config/spm_run_con.m" (v7738), function "spm_run_con" at line 34.
The following modules did not run:
Failed: Model estimation
Failed: Contrast Manager
***************************************************************************
** Error: Could not compute epileptogenicity maps.
***************************************************************************