Problem with deleting first images

Dear reader,

I know a similar problem has been reported before, but somehow the solution offered does not work for me.
And parts of the answer was in Chinese so I was not able to follow it completely.

DPARSF nicely starts with processing the DICOM files.
I get a folder called FunImg > Subject > XXX.nii.gz (containing a .nii with 207 images)
But then the following error message appears



??? Error using ==> delete

Not enough input arguments.

 

Error in ==> DPARSF_run at 276

            delete(DirImg(j).name);

 

Error in ==> DPARSF>pushbuttonRun_Callback at 935

    [Error]=DPARSF_run(handles.Cfg);

 

Error in ==> gui_mainfcn at 75

        feval(varargin{:});

 

Error in ==> DPARSF at 39

    gui_mainfcn(gui_State, varargin{:});

 

??? Error while evaluating uicontrol Callback.

:

When DPARSF tries to delete the first images.
I am sure that I indeed have 207 images!
When I skip the Deletion of the first images I also get an error message.

I am running MATLAB on Windows 7. I Tried MATLAB 7.0 and MATLAB R2006a both with the same error occuring.
I am using the DPARSF_V1.0_100510 and REST_V1.4_100426 (though REST_V1.3... gives the same error message).

What could be the problem?
I would very much appreciate your help.

Best wishes,
Simone




Hi!
DPARSF and REST can not recognize the format of .nii.gz, they only recognize the format of SPM5's .hdr/.img pairs.
This problem never happen in Windows XP. And I have test it in several Windows 7 computer. I do not know why this problem happened on your computer.
The solution is to convert your DICOM data into NIfTI pairs (.img/.hdr) manually. You can use either SPM5/8 or MRIcroN. You can find the usage in http://www.restfmri.net/forum/Course
Best wishes!
                         Chao-Gan

Hi,

thanks a lot. I have done exactly this (converted DICOM to NIfTI manually) and the rest works now.
Really a nice tool!!!

Best wishes,
Simone