Submitted by lixiangcx on Mon, 02/24/2014 - 10:34
老师您好,
我用DPARSF 2.1进行数据预处理,刚开始做Slice Timing就出现错误,小白表示看不懂,求指教,非常感谢。
PS:用的SPM5和REST_V1.8
错误如下:
Running "Slice Timing"
SPM5: spm_slice_timing (v$Rev: 112 $) 10:01:28 - 24/02/2014
========================================================================
Warning: Cant get default Analyze orientation - assuming flipped
> In spm_flip_analyze_images at 13
In @nifti\private\mayo2nifti1 at 46
In nifti.nifti at 31
In spm_vol_nifti at 16
In spm_vol>subfunc at 122
In spm_vol>subfunc1 at 83
In spm_vol>subfunc2 at 71
In spm_vol at 57
In spm_slice_timing at 130
In spm_config_slice_timing>slicetiming at 170
In spm_jobman>run_struct1 at 1474
In spm_jobman>run_struct1 at 1482
In spm_jobman>run_struct1 at 1482
In spm_jobman>run_job at 417
In spm_jobman at 79
In DPARSF_run at 362
In DPARSF>pushbuttonRun_Callback at 976
In gui_mainfcn at 75
In DPARSF at 43
??? 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 ==> nifti.nifti at 70
dat = file_array(vol.iname,dim,[dt,vol.be],offs,slope,inter);
Error in ==> spm_vol_nifti at 16
N = nifti(fname);
Error in ==> spm_vol>subfunc at 122
else V = spm_vol_nifti(p,n); end;
Error in ==> spm_vol>subfunc1 at 83
v = subfunc(P(i,:));
Error in ==> spm_vol>subfunc2 at 71
V = subfunc1(P);
Error in ==> spm_vol at 57
V = subfunc2(P);
Error in ==> spm_slice_timing at 130
Vin = spm_vol(P{1}(1,:));
Error in ==> spm_config_slice_timing>slicetiming at 170
spm_slice_timing(P,Seq,refslice,timing)
Error in ==> spm_jobman>run_struct1 at 1474
feval(prog,val);
Error in ==> spm_jobman>run_struct1 at 1482
run_struct1(c.val{i});
Error in ==> spm_jobman>run_struct1 at 1482
run_struct1(c.val{i});
Error in ==> spm_jobman>run_job at 417
run_struct1(c);
Error in ==> spm_jobman at 79
run_job(varargin{2});
Error in ==> DPARSF_run at 362
spm_jobman('run',jobs);
Error in ==> DPARSF>pushbuttonRun_Callback at 976
[Error]=DPARSF_run(handles.Cfg);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> DPARSF at 43
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
>>
Submitted by ZHANG_RESTadmin on Mon, 02/24/2014 - 13:58 Permalink
Re: Error in preprocessing with DPARSF 2.1
应该下载一个spm8,把之前的spm5去掉。然后再试试。
记得打开matlab后在运行rest之前,运行rest_Fix_Read_Write_Error
Submitted by lixiangcx on Tue, 02/25/2014 - 20:35 Permalink
Re: Error in preprocessing with DPARSF 2.1
谢谢张老师,我试试下个SPM8。
另外在使用DPARSF A时经常出现这样一个错误,一点RUN很快就报错,数据连前10个时间点都没去除。参数设置如图,请老师帮忙看看错哪了。
非常感谢,辛苦了^.^
错误如下:
Warning: File: DPARSFA_run.m Line: 658 Column: 60
The temporary variable SliceOrder will be cleared at the beginning of each iteration of the parfor loop.
Any value assigned to it before the loop will be lost. If SliceOrder is used before it is assigned in
the parfor loop, a runtime error will occur.
See Parallel for Loops in MATLAB, "Temporary Variables".
> In DPARSFA>pushbuttonRun_Callback at 1601
In gui_mainfcn at 96
In DPARSFA at 33
Warning: File: DPARSFA_run.m Line: 930 Column: 83
The temporary variable RefFile will be cleared at the beginning of each iteration of the parfor loop.
Any value assigned to it before the loop will be lost. If RefFile is used before it is assigned in
the parfor loop, a runtime error will occur.
See Parallel for Loops in MATLAB, "Temporary Variables".
> In DPARSFA>pushbuttonRun_Callback at 1601
In gui_mainfcn at 96
In DPARSFA at 33
Chris Rorden's dcm2nii :: 1 April 2010
reading preferences file C:\Program Files\MATLAB\R2010b\toolbox\dparsf_v2.3_130615\dparsf_v2.3_130615\dcm2nii\dcm2nii.ini
0 C:\Program Files\MATLAB\R2010b\toolbox\dparsf_v2.3_130615\dparsf_v2.3_130615\dcm2nii\dcm2nii.exe ERROR: unable to find New\T1Img\56 E:\AVH New\T1Img\56\ZHANG_YING_YING_0_3.img
Either drag and drop or specify command line options:
dcm2nii <options> <sourcenames>
OPTIONS:
-a Anonymize [remove identifying information]: Y,N = Y
-b load settings from specified inifile, e.g. '-b C:\set\t1.ini'
-c Collapse input folders: Y,N = N
-d Date in filename [filename.dcm -> 20061230122032.nii]: Y,N = Y
-e events (series/acq) in filename [filename.dcm -> s002a003.nii]: Y,N = Y
-f Source filename [e.g. filename.par -> filename.nii]: Y,N = N
-g gzip output, filename.nii.gz [ignored if '-n n']: Y,N = N
-i ID in filename [filename.dcm -> johndoe.nii]: Y,N = Y
-n output .nii file [if no, create .hdr/.img pair]: Y,N = Y
-o Output Directory, e.g. 'C:\TEMP' (if unspecified, source directory is used)
-p Protocol in filename [filename.dcm -> TFE_T1.nii]: Y,N = Y
-r Reorient image to nearest orthogonal: Y,N
-s SPM2/Analyze not SPM5/NIfTI [ignored if '-n y']: Y,N = N
-v Convert every image in the directory: Y,N = N
-x Reorient and crop 3D NIfTI images: Y,N = Y
You can also set defaults by editing C:\Program Files\MATLAB\R2010b\toolbox\dparsf_v2.3_130615\dparsf_v2.3_130615\dcm2nii\dcm2nii.ini
EXAMPLE: dcm2nii -a y -o C:\TEMP C:\DICOM\input1.par C:\inp>>