Hi all,
I am running a VBM-like analysis on resting-state fMRI images by evoking SPM12 in MATLAB, which I was able to execute successfully without any issues in April this year.
I add a few paths to my folder, including some folders I downloaded from the GitHub of my academic supervisor as he has made adaptations to SPM12 that I need to make my script run.
When I try to run the script now, I keep getting the following error:
Running job #1
------------------------------------------------------------------------
Running 'Factorial design specification'
Mapping files : ...done
Design configuration : ...done
Saving SPM configuration : ...SPM.mat saved
Completed : 18:00:52 - 28/09/2022
Done 'Factorial design specification'
Running 'Model estimation'
SPM12: spm_spm (v7120) 18:00:52 - 28/09/2022
========================================================================
Chunk 8/8 : ...done
ans =
'SPM5'
Warning: Removing "/usr/local/software/spm/spm12_v7771/external/fieldtrip/compat/matlablt2017b" from your path.
See http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path/
Failed 'Model estimation'
Output argument "fwhm" (and possibly others) not assigned a value in the execution with "spm_est_smoothness5" function.
In file "/rds/user/ik413/hpc-work/projects/genfi_rsfa/mat/rBPM_v2S/wfu_bpm/spm_est_smoothness.m" (???), function "spm_est_smoothness" at line 32.
In file "/rds/user/ik413/hpc-work/projects/genfi_rsfa/mat/spm12/spm_spm.m" (v7120), function "spm_spm" at line 676.
In file "/rds/user/ik413/hpc-work/projects/genfi_rsfa/mat/spm12/config/spm_run_fmri_est.m" (v7057), function "spm_run_fmri_est" at line 34.
Running 'Contrast Manager'
SPM12: spm_contrasts.m 18:02:07 - 28/09/2022
========================================================================
Contrasts folder : ..rHandednessAge_n547_20220928
Failed 'Contrast Manager'
Error using spm_run_con (line 34)
This model has not been estimated.
In file "/rds/user/ik413/hpc-work/projects/genfi_rsfa/mat/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 using 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
------------------
And there the script stops running.
Initially, I had added to my path both the SPM12 of my supervisor with the adaptations, as well as the native SPM12 from my university work station (I am logging-in remotely to a server to do university work) but due to a potential overlap or clash, I removed the native SPM subdirectoories path from my script following the recommendation here (https://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path/).
So I removed this from my path "/usr/local/software/spm/spm12_v7771/external/fieldtrip/compat/matlablt2017b"
Would you have any ideas as to what the issue could be and how to solve it?
Many thanks for your help.
Kind regards,
Ivana
|