help > Error when running the 2nd level seed-to-voxel analysis
Showing 1-2 of 2 posts
Display:
Results per page:
Jul 15, 2021  06:07 PM | Meishan AI
Error when running the 2nd level seed-to-voxel analysis
When i was running the seed-to-voxel analysis, it gave me this error: 


ERROR DESCRIPTION:

Undefined function 'cfg_getfile' for input arguments of type 'char'.
Error in spm_select (line 154)
[t, sts] = cfg_getfile(varargin{:});
Error in spm_spm (line 352)
if ~isempty(spm_select('List',SPM.swd,'^mask\..{3}$'))
Error in conn_process (line 5048)
SPM=spm_spm(SPM);
Error in conn_process (line 93)
case 'results_voxel', [varargout{1:nargout}]=conn_process(16,varargin{:});
Error in conn (line 12012)
else conn_process('results_voxel','dosingle','seed-to-voxel');
Error in conn (line 11127)
if state==2, conn gui_results_wholebrain;
CONN20.c
SPM12
Matlab v.2020b
project: CONN20.c
storage: 9857.0Gb available
spm @ /home/ai.me/spm12
conn @ /work/cbhlab/software/conn

When I restored the path, this error still exists. Have anyone had this occured with conn?

Thank you!
Meishan
Jul 16, 2021  10:07 AM | Alfonso Nieto-Castanon - Boston University
RE: Error when running the 2nd level seed-to-voxel analysis
Hi Meishan,

That error indicates a problem with SPM installation, I would recommend simply re-installing SPM. To check that everything looks fine you could type (after reinstalling SPM):

spm_jobman initcfg 
which cfg_getfile

which should return something like:

[SOMEWHERE]/spm12/matlabbatch/cfg_getfile.m

Hope this helps
Alfonso
Originally posted by Meishan AI:
When i was running the seed-to-voxel analysis, it gave me this error: 


ERROR DESCRIPTION:

Undefined function 'cfg_getfile' for input arguments of type 'char'.
Error in spm_select (line 154)
[t, sts] = cfg_getfile(varargin{:});
Error in spm_spm (line 352)
if ~isempty(spm_select('List',SPM.swd,'^mask\..{3}$'))
Error in conn_process (line 5048)
SPM=spm_spm(SPM);
Error in conn_process (line 93)
case 'results_voxel', [varargout{1:nargout}]=conn_process(16,varargin{:});
Error in conn (line 12012)
else conn_process('results_voxel','dosingle','seed-to-voxel');
Error in conn (line 11127)
if state==2, conn gui_results_wholebrain;
CONN20.c
SPM12
Matlab v.2020b
project: CONN20.c
storage: 9857.0Gb available
spm @ /home/ai.me/spm12
conn @ /work/cbhlab/software/conn

When I restored the path, this error still exists. Have anyone had this occured with conn?

Thank you!
Meishan