Error with DPARSF in Matlab 2016a

Submitted by jaycf on

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

YAN Chao-Gan

Thu, 02/23/2017 - 03:13

Hi

What OS are you using?

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

 

snowwolf518

Mon, 04/10/2017 - 15:12

In reply to by YAN Chao-Gan

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
 

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

YAN Chao-Gan

Mon, 08/14/2017 - 01:31

In reply to by Authenty

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.

Dear experts,

I am also facing the same errors with different sets of data. As suggested above by Authenty I can finish the calculation by restarting with FunImgARCW as starting directory (the error seems to be only about creating the pictures for checking normalization, but the normalisation is completed by then).

 

However, I still have open questions about this issue:

1. Do you have any idea what causes this error? I am using Matlab R2018b, DPABI V5.1 on linux (fedora) system. (I had the same error also on anther linux computer with Matlab R2020b, DPABI V5.1)

2. Is this an indication that something went wrong with the normalisation process?

3. How can I manually check for normalisation? As the temporal mean for each voxel is set to zero after nuisance regression, the anatomical structure is difficult to assess. Is there any way to control my images without using the option „add mean back“?

 

Thank you,
Janina

1 & 2. This is a matlab UI problem, seems random, I have no idea when it happens. Your solution is OK.

3. Add mean back is a good solution. Or PicturesforChkNormalization is also good, these were based on images before nuisance regression, but they are in the same space.