Error with DPARSF in Matlab 2016a

Hello, 

Thank you for making these tools available to the public. I'm receiving the following error when I run DPARSF (latest version) in Matlab 2016a: 

 

Generating the pictures for checking normalization: Sub_001 OK. Function 'subsindex' is not defined for values of class 'matlab.ui.Figure'.
 
Error in y_spm_orthviews>addcolourbar (line 883)
if st{curfig}.mode == 0,
 
Error in y_spm_orthviews>addtruecolourimage (line 824)
addcolourbar(1,bset);
 
Error in y_spm_orthviews (line 511)
        addtruecolourimage(varargin{1}, varargin{2},varargin{3}, varargin{4}, ...
 
Error in y_Call_spm_orthviews (line 149)
    y_spm_orthviews('Addtruecolourimage',H,BrainHeader,ColorMap,1-Transparency,PMax,NMax);
    
Error in DPARSFA_run (line 2966)
            H =
            y_Call_spm_orthviews(Ch2Filename,0,0,0,18,Filename,jet(64),0,250,H,0.8);
 
 
Error in DPARSFA_RerunWithGSR (line 94)
[Error]=DPARSFA_run(Cfg);
 
 
Error in DPARSFA>pushbuttonRun_Callback (line 1789)
        [Error]=DPARSFA_RerunWithGSR(handles.Cfg);
 
 
Error in gui_mainfcn (line 95)
        feval(varargin{:});
 
Error in DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});
 
 
Error using uiwait (line 81)
Error while evaluating UIControl Callback
 
I believe this is occurred during creation of the normalization QC piece. The appropriate files appear to have been created (including the alff and filtered maps) - but its crashing before calculating FC. Is there a fix for this - or a part of the code I can try to comment out to remove that normalization qc step, if that is the offending element.
 
Thanks,
Jay

Forums:

Hi

What OS are you using?

You can comment the line: H = y_Call_spm_orthviews...

 

I am using Mac os and meet the same problem? After commenting the 'y_Call_spm_orthviews' in dparsf.run Matlab2016b, the problem come again. I do not know what happen here, and need your help. Thanks in advance!

Moving Normalized Files:fALFF_FunImgARC OK
Moving Normalized Files:FC_FunImgARCF OK
Moving Normalized Files:ALFF_FunImgARC OK
Moving Normalized Files:ReHo_FunImgARCF OK
 
Function 'subsindex' is not defined for values of class 'matlab.ui.Figure'.
 
Error in y_spm_orthviews>addcolourbar (line 883)
if st{curfig}.mode == 0,
 
Error in y_spm_orthviews>addtruecolourimage (line 824)
addcolourbar(1,bset);
 
Error in y_spm_orthviews (line 511)
        addtruecolourimage(varargin{1}, varargin{2},varargin{3}, varargin{4}, ...
 
Error in y_Call_spm_orthviews (line 149)
    y_spm_orthviews('Addtruecolourimage',H,BrainHeader,ColorMap,1-Transparency,PMax,NMax);
 
Error in DPARSFA_run (line 4630)
            H = y_Call_spm_orthviews(Ch2Filename,0,0,0,18,Filename,jet(64),0,250,H,0.8);
 
 
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
 

Please search y_Call_spm_orthviews, there are several lines.

I will look into if I can replicate it.

Hi,

I also met the same error tonight. Notably, I didn't see it in prior practice when I was processing data from multiple subjects in a batched pipeline. Everything else were replicated without errors and the only difference is that data from only one subject was included this time. Also, this error was produced during the plot of the image for normalization check, and further steps, like Smooth, can be finished when you restart with the starting directory name as FunImgARW.

Hope this helps.

Xilei

 

Error using subsindex

Function 'subsindex' is not defined for values of class

'matlab.ui.Figure'.

Error in y_spm_orthviews>addcolourbar (line 883)

if st{curfig}.mode == 0,

Error in y_spm_orthviews>addtruecolourimage (line 824)

addcolourbar(1,bset);

Error in y_spm_orthviews (line 511)

        addtruecolourimage(varargin{1}, varargin{2},varargin{3},

        varargin{4}, ...

Error in y_Call_spm_orthviews (line 149)

    y_spm_orthviews('Addtruecolourimage',H,BrainHeader,ColorMap,1-Transparency,PMax,NMax);

Error in DPARSFA_run (line 2966)

            H =

            y_Call_spm_orthviews(Ch2Filename,0,0,0,18,Filename,jet(64),0,250,H,0.8);

           

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

This is something related to the latest matlab.

If you were using DPABI V1.3. Try to restart matlab to have another try for that specific subject.