An error in CWAS

Submitted by wisepig119 on

Hi,Chaogan,

I came across an error when I was using CWAS in DPARSF2.3, How to solve this problem?

Looking forward to your reply. Thank you in advance.

Error: 没有那个文件或目录
There was a problem writing to the header of
  "/run/media/dell/MyPassport/zhr/cross/shiyan/Results/CWAS/F_1_CWAS.nii"
错误使用 nifti/create (line 26)
Unable to write header for "/run/media/dell/MyPassport/zhr/cross/shiyan/Results/CWAS/F_1_CWAS.nii".

出错 y_Write (line 76)
create(NIfTIObject);

出错 y_CWAS (line 151)
    y_Write(F_Brain,Header,[pathstr, filesep, 'F_', num2str(iRegressor),'_',name, ext]);


出错 DPARSFA_run (line 4133)
        [p_Brain, F_Brain, Header] =
        y_CWAS([AutoDataProcessParameter.DataProcessDir,filesep,FunSessionPrefixSet{iFunSession},AutoDataProcessParameter.StartingDirName], ...


出错 DPARSFA>pushbuttonRun_Callback (line 1786)
    [Error]=DPARSFA_run(handles.Cfg);


出错 gui_mainfcn (line 95)
        feval(varargin{:});

出错 DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});

 
计算 UIControl Callback 时出错

wisepig119

Tue, 10/31/2017 - 08:49

DPARSF_A 4.3 based on MATLAB 2014a WIN7 64

The error:

Error using nifti/create>create_each (line 29)
Unable to write header for "H:\zhr\cross\shiyan\Results\CWAS\F_1_CWAS.nii".

Error in nifti/create (line 15)
    create_each(obj(i));

Error in y_Write (line 76)
create(NIfTIObject);

Error in y_CWAS (line 151)
    y_Write(F_Brain,Header,[pathstr, filesep, 'F_', num2str(iRegressor),'_',name, ext]);

Error in DPARSFA_run (line 4133)
        [p_Brain, F_Brain, Header] =
        y_CWAS([AutoDataProcessParameter.DataProcessDir,filesep,FunSessionPrefixSet{iFunSession},AutoDataProcessParameter.StartingDirName],
        ...

Error in DPARSFA>pushbuttonRun_Callback (line 1786)
    [Error]=DPARSFA_run(handles.Cfg);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback