Detrend fails

Submitted by mburgaleta on

 

Dear experts,

I am getting an error in the detrend stage of DPARSF. I could reproduce this error many times (I didn't click any button nor interacted in any way with the software). Note that I also get some warnings that I don't know if I should be worried about.

I am running this on Matlab R2007b on a MacOSX 10.6.

Thanks in advance for your help!

Best,

Miguel

 

Warning: File: DPARSF_run.m Line: 254 Column: 9
This PARFOR syntax will change in R2008a. Change PARFOR i=range to FOR i=DRANGE(range) if you are trying to use R2007a parfor syntax. Change PARFOR i=range to PARFOR (i=range) if you are trying to use the new R2007b parfor syntax. See "Compatibility with Earlier Versions of MATLAB".
> In DPARSF>pushbuttonRun_Callback at 996
  In gui_mainfcn at 96
  In DPARSF at 48
Warning: File: DPARSF_run.m Line: 283 Column: 5
This PARFOR syntax will change in R2008a. Change PARFOR i=range to FOR i=DRANGE(range) if you are trying to use R2007a parfor syntax. Change PARFOR i=range to PARFOR (i=range) if you are trying to use the new R2007b parfor syntax. See "Compatibility with Earlier Versions of MATLAB".
> In DPARSF>pushbuttonRun_Callback at 996
  In gui_mainfcn at 96
  In DPARSF at 48

Removing the linear trend: /Users/M/Desktop/test_DPARSF/Analysis/FunImgNormalizedSmoothed/Sub_001

     Read 3D EPI functional images: "/Users/M/Desktop/test_DPARSF/Analysis/FunImgNormalizedSmoothed/Sub_001"........................

     Detrend working.    Wait.............

     Saving detrended images.    Wait...
??? Error using ==> class
Number of fields for class file_array cannot be changed without clear classes.

Error in ==> file_array.file_array at 39
a     = class(a,'file_array');

Error in ==> rest_Write4DNIfTI at 47
dat = file_array;

Error in ==> rest_detrend at 117
    rest_Write4DNIfTI(AllVolume,Header_Out,sprintf('%s%sdetrend_4DVolume.nii', theResultOutputDir ,filesep));

Error in ==> DPARSF_run at 988
        rest_detrend([AutoDataProcessParameter.DataProcessDir,filesep,FunImgDir,filesep,AutoDataProcessParameter.SubjectID{i}],
        '_detrend');

Error in ==> DPARSF>pushbuttonRun_Callback at 996
    [Error]=DPARSF_run(handles.Cfg);

Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Error in ==> DPARSF at 48
    gui_mainfcn(gui_State, varargin{:});

??? Error while evaluating uicontrol Callback


>>

YAN Chao-Gan

Sat, 06/21/2014 - 23:51

Hi Miguel,

What version of SPM you are using? Please add subfoders for SPM but not for DPARSF and REST.

Best,

Chao-Gan