DPARSF 做到 smooth 的时候报错

Submitted by lynnrain on
我利用 DPARSF 来预处理我的功能像数据,每个患者有 3 个 session,因此我将 FunRaw 里面设置为 subject001_1、subject001_2、subject001_3...,而T1Raw里面相应的放上 3 个 subject001 的 3D 结构像、然后 subject002...
前面的步骤运行顺利,但是到 smooth 的时候,报了错,并且文件夹中未生成用于检验 normalization 效果的图像文件夹。
系统为win xp,spm8,刚更新了DPARSF 和 REST1.4,报错信息如下:
Smooth Setup:Subject001_1 OKSmooth Setup:Subject001_2 OKSmooth Setup:Subject001_3 OKSmooth Setup:Subject002_1 OKSmooth Setup:Subject002_2 OKSmooth Setup:Subject002_3 OKSmooth Setup:Subject003_1 OKSmooth Setup:Subject003_2 OKSmooth Setup:Subject003_3 OKSmooth Setup:Subject004_1 OKSmooth Setup:Subject004_2 OKSmooth Setup:Subject004_3 OKSmooth Setup:Subject005_1 OKSmooth Setup:Subject005_2 OKSmooth Setup:Subject005_3 OKSmooth Setup:Subject006_1 OKSmooth Setup:Subject006_2 OKSmooth Setup:Subject006_3 OKSmooth Setup:Subject007_1 OKSmooth Setup:Subject007_2 OKSmooth Setup:Subject007_3 OKSmooth Setup:Subject008_1 OKSmooth Setup:Subject008_2 OKSmooth Setup:Subject008_3 OKSmooth Setup:Subject009_1 OKSmooth Setup:Subject009_2 OKSmooth Setup:Subject009_3 OKSmooth Setup:Subject010_1 OKSmooth Setup:Subject010_2 OKSmooth Setup:Subject010_3 OKSmooth Setup:Subject011_1 OKSmooth Setup:Subject011_2 OKSmooth Setup:Subject011_3 OKSmooth Setup:Subject012_1 OKSmooth Setup:Subject012_2 OKSmooth Setup:Subject012_3 OKSmooth Setup:Subject013_1 OKSmooth Setup:Subject013_2 OKSmooth Setup:Subject013_3 OKSmooth Setup:Subject015_1 OKSmooth Setup:Subject015_2 OKSmooth Setup:Subject015_3 OKSmooth Setup:Subject016_1 OKSmooth Setup:Subject016_2 OKSmooth Setup:Subject016_3 OKSmooth Setup:Subject017_1 OKSmooth Setup:Subject017_2 OKSmooth Setup:Subject017_3 OKSmooth Setup:Subject018_1 OKSmooth Setup:Subject018_2 OKSmooth Setup:Subject018_3 OKSmooth Setup:Subject019_1 OKSmooth Setup:Subject019_2 OKSmooth Setup:Subject019_3 OKSmooth Setup:Subject020_1 OKSmooth Setup:Subject020_2 OKSmooth Setup:Subject020_3 OKSmooth Setup:Subject022_1 OKSmooth Setup:Subject022_2 OKSmooth Setup:Subject022_3 OKSmooth Setup:Subject023_1 OKSmooth Setup:Subject023_2 OKSmooth Setup:Subject023_3 OKSmooth Setup:Subject024_1 OKSmooth Setup:Subject024_2 OKSmooth Setup:Subject024_3 OKSmooth Setup:Subject026_1 OKSmooth Setup:Subject026_2 OKSmooth Setup:Subject026_3 OKSmooth Setup:Subject028_1 OKSmooth Setup:Subject028_2 OKSmooth Setup:Subject028_3 OKSmooth Setup:Subject029_1 OKSmooth Setup:Subject029_2 OKSmooth Setup:Subject029_3 OKSmooth Setup:Subject031_1 OKSmooth Setup:Subject031_2 OKSmooth Setup:Subject031_3 OKSmooth Setup:Subject032_1 OKSmooth Setup:Subject032_2 OKSmooth Setup:Subject032_3 OKSmooth Setup:Subject034_1 OKSmooth Setup:Subject034_2 OKSmooth Setup:Subject034_3 OKSmooth Setup:Subject035_1 OKSmooth Setup:Subject035_2 OKSmooth Setup:Subject035_3 OKSmooth Setup:Subject036_1 OKSmooth Setup:Subject036_2 OKSmooth Setup:Subject036_3 OKSmooth Setup:Subject037_1 OKSmooth Setup:Subject037_2 OKSmooth Setup:Subject037_3 OKSmooth Setup:Subject038_1 OKSmooth Setup:Subject038_2 OKSmooth Setup:Subject038_3 OKSmooth Setup:Subject039_1 OKSmooth Setup:Subject039_2 OKSmooth Setup:Subject039_3 OKSmooth Setup:Subject040_1 OKSmooth Setup:Subject040_2 OKSmooth Setup:Subject040_3 OKSmooth Setup:Subject041_1 OKSmooth Setup:Subject041_2 OKSmooth Setup:Subject041_3 OK
 
 
------------------------------------------------------------------------
Running job #1
------------------------------------------------------------------------
Running 'Smooth'
Failed  'Smooth'
Error using ==> class
Cannot change the number of fields of class 'file_array' without first typing 'clear classes'.
In file "C:\spm8\@file_array\file_array.m" (v1340), function "file_array" at line 41.
In file "C:\spm8\@nifti\nifti.m" (v1143), function "nifti" at line 70.
In file "C:\spm8\spm_vol_nifti.m" (v1143), function "spm_vol_nifti" at line 16.
In file "C:\spm8\spm_vol.m" (v2237), function "subfunc" at line 138.
In file "C:\spm8\spm_vol.m" (v2237), function "subfunc1" at line 84.
In file "C:\spm8\spm_vol.m" (v2237), function "subfunc2" at line 70.
In file "C:\spm8\spm_vol.m" (v2237), function "spm_vol" at line 54.
In file "C:\spm8\spm_smooth.m" (v2794), function "spm_smooth" at line 33.
In file "C:\spm8\config\spm_run_smooth.m" (v3534), function "spm_run_smooth" at line 20.
 
The following modules did not run:
Failed: Smooth
 
??? Error using ==> cfg_util>local_runcj at 1501
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact #job
as displayed in this error message)
------------------
Running job #1
------------------
 
 
Error in ==> cfg_util at 766
 
 
Error in ==> spm_jobman at 208
 
 
Error in ==> DPARSF_run at 621
 
 
Error in ==> DPARSF>pushbuttonRun_Callback at 924
 
 
Error in ==> gui_mainfcn at 96
 
 
Error in ==> DPARSF at 38
 
 
??? Error while evaluating uicontrol Callback
---------------------------------------------------------------------------------------------------------------------------------------------------------------
  1. 是什么原因导致了这样的错误呢?
  2. 查看 normalization 效果的图像还是非常有必要的,如果不从头跑一次,我如何再次获得这样的图像呢?
多谢!
林云

YAN Chao-Gan

Mon, 04/26/2010 - 09:34

1. 请参考 http://www.restfmri.net/forum/node/257
2. 可以自己试着运行一下DPARSF里面这段代码。
祝好!

lynnrain

Wed, 04/28/2010 - 23:52

In reply to by YAN Chao-Gan

更新 rest 到 0426 版本,并重启机器后,删除之前处理的中间文件,仅保留 FunRaw 和 T1Raw 文件后,再次运行。这次在生成 pictures for normalization 时出错,信息如下:

Moving Normalized Files:Subject001_1 OKMoving Normalized Files:Subject001_2 OKMoving Normalized Files:Subject001_3 OKMoving Normalized Files:Subject002_1 OKMoving Normalized Files:Subject002_2 OKMoving Normalized Files:Subject002_3 OKMoving Normalized Files:Subject003_1 OKMoving Normalized Files:Subject003_2 OKMoving Normalized Files:Subject003_3 OKMoving Normalized Files:Subject004_1 OKMoving Normalized Files:Subject004_2 OKMoving Normalized Files:Subject004_3 OKMoving Normalized Files:Subject005_1 OKMoving Normalized Files:Subject005_2 OKMoving Normalized Files:Subject005_3 OKMoving Normalized Files:Subject006_1 OKMoving Normalized Files:Subject006_2 OKMoving Normalized Files:Subject006_3 OKMoving Normalized Files:Subject007_1 OKMoving Normalized Files:Subject007_2 OKMoving Normalized Files:Subject007_3 OKMoving Normalized Files:Subject008_1 OKMoving Normalized Files:Subject008_2 OKMoving Normalized Files:Subject008_3 OKMoving Normalized Files:Subject009_1 OKMoving Normalized Files:Subject009_2 OKMoving Normalized Files:Subject009_3 OKMoving Normalized Files:Subject010_1 OKMoving Normalized Files:Subject010_2 OKMoving Normalized Files:Subject010_3 OKMoving Normalized Files:Subject011_1 OKMoving Normalized Files:Subject011_2 OKMoving Normalized Files:Subject011_3 OKMoving Normalized Files:Subject012_1 OKMoving Normalized Files:Subject012_2 OKMoving Normalized Files:Subject012_3 OKMoving Normalized Files:Subject013_1 OKMoving Normalized Files:Subject013_2 OKMoving Normalized Files:Subject013_3 OKMoving Normalized Files:Subject015_1 OKMoving Normalized Files:Subject015_2 OKMoving Normalized Files:Subject015_3 OKMoving Normalized Files:Subject016_1 OKMoving Normalized Files:Subject016_2 OKMoving Normalized Files:Subject016_3 OKMoving Normalized Files:Subject017_1 OKMoving Normalized Files:Subject017_2 OKMoving Normalized Files:Subject017_3 OKMoving Normalized Files:Subject018_1 OKMoving Normalized Files:Subject018_2 OKMoving Normalized Files:Subject018_3 OKMoving Normalized Files:Subject019_1 OKMoving Normalized Files:Subject019_2 OKMoving Normalized Files:Subject019_3 OKMoving Normalized Files:Subject020_1 OKMoving Normalized Files:Subject020_2 OKMoving Normalized Files:Subject020_3 OKMoving Normalized Files:Subject022_1 OKMoving Normalized Files:Subject022_2 OKMoving Normalized Files:Subject022_3 OKMoving Normalized Files:Subject023_1 OKMoving Normalized Files:Subject023_2 OKMoving Normalized Files:Subject023_3 OKMoving Normalized Files:Subject024_1 OKMoving Normalized Files:Subject024_2 OKMoving Normalized Files:Subject024_3 OKMoving Normalized Files:Subject026_1 OKMoving Normalized Files:Subject026_2 OKMoving Normalized Files:Subject026_3 OKMoving Normalized Files:Subject028_1 OKMoving Normalized Files:Subject028_2 OKMoving Normalized Files:Subject028_3 OKMoving Normalized Files:Subject029_1 OKMoving Normalized Files:Subject029_2 OKMoving Normalized Files:Subject029_3 OKMoving Normalized Files:Subject031_1 OKMoving Normalized Files:Subject031_2 OKMoving Normalized Files:Subject031_3 OKMoving Normalized Files:Subject032_1 OKMoving Normalized Files:Subject032_2 OKMoving Normalized Files:Subject032_3 OKMoving Normalized Files:Subject034_1 OKMoving Normalized Files:Subject034_2 OKMoving Normalized Files:Subject034_3 OKMoving Normalized Files:Subject035_1 OKMoving Normalized Files:Subject035_2 OKMoving Normalized Files:Subject035_3 OKMoving Normalized Files:Subject036_1 OKMoving Normalized Files:Subject036_2 OKMoving Normalized Files:Subject036_3 OKMoving Normalized Files:Subject037_1 OKMoving Normalized Files:Subject037_2 OKMoving Normalized Files:Subject037_3 OKMoving Normalized Files:Subject038_1 OKMoving Normalized Files:Subject038_2 OKMoving Normalized Files:Subject038_3 OKMoving Normalized Files:Subject039_1 OKMoving Normalized Files:Subject039_2 OKMoving Normalized Files:Subject039_3 OKMoving Normalized Files:Subject040_1 OKMoving Normalized Files:Subject040_2 OKMoving Normalized Files:Subject040_3 OKMoving Normalized Files:Subject041_1 OKMoving Normalized Files:Subject041_2 OKMoving Normalized Files:Subject041_3 OK

Exception occured.    (MATLAB:UndefinedFunction)
    Undefined function or variable "Header".
    3124#line,        LoadOverlay,    in "/home/lynnrain/R2009b/DPARSF_V1.0_100420/Subfunctions/DPARSF_rest_sliceviewer.m"
    443#line,        DPARSF_rest_sliceviewer,    in "/home/lynnrain/R2009b/DPARSF_V1.0_100420/Subfunctions/DPARSF_rest_sliceviewer.m"
    567#line,        DPARSF_run,    in "/home/lynnrain/R2009b/DPARSF_V1.0_100420/DPARSF_run.m"
    924#line,        pushbuttonRun_Callback,    in "/home/lynnrain/R2009b/DPARSF_V1.0_100420/DPARSF.m"
    96#line,        gui_mainfcn,    in "/home/lynnrain/R2009b/toolbox/matlab/guide/gui_mainfcn.m"
    38#line,        DPARSF,    in "/home/lynnrain/R2009b/DPARSF_V1.0_100420/DPARSF.m"
??? Error using ==> rest_ReadNiftiImage at 104
Meet error while reading data. Please restart MATLAB, this problem may be solved.

Error in ==> y_Reslice at 28
    [dataIN, headIN]   = rest_ReadNiftiImage(PI);

Error in ==> DPARSF_run at 573
            y_Reslice(Filename,DPARSF_Normalized_TempImage,[1 1 1],0)

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

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

Error in ==> DPARSF at 38
    gui_mainfcn(gui_State, varargin{:});
 
??? Error while evaluating uicontrol Callback
--------------------------------------------------------------------------------------------
DPARSF的设置如下图:


请看看是什么原因,是否我什么地方做错了?

谢谢

Meet error while reading data. Please restart MATLAB, this problem may be solved.
   如果装的是SPM8,第一次运行REST后需要重启一下MATLAB。
   祝顺利!
Taxonomy upgrade extras
Forums