Hi there,
Thie above error seems to appear after the slice timing was completed successfully. I've checked that
1. all the subject folders have .nii file in the FunImgA directory
2. all of these .nii files have the same time point
3. all the subject folders have a .nii file in the T1Img directory
it would seem that the next step is the field map correction
i have the following field map files within the FieldMap directory for all subjects:
FieldMap/Magnitude1Raw/002/Mag1.nii
FieldMap/Magnitude2Raw/002/Mag2.nii
FieldMap/PhaseDiffRaw/002/PhaseDiff.nii
do see the attached image for the filed map correction settings
thanks in advance
Attachment | Size |
---|---|
Capture.JPG | 29.5 KB |
Forums
If you already converted from
If you already converted from DICOM to NIfTI, then name as:
FieldMap/Magnitude1Img/002/Mag1.nii
FieldMap/Magnitude2Img/002/Mag2.nii
FieldMap/PhaseDiffImg/002/PhaseDiff.nii
Problem with fieldmap processing
Dear DPARSFA experts
I am trying to run DPARSFA (version 5.2) using field map correction, but get the following error as reported here by another user:
Error using DPARSFA_run (line 823)
Index exceeds the number of array elements (0).
I am working with NIFTI data and therefore my directory tree is as follow:
FunRaw --> Subject_01 --> *.nii / *.json
T1Img --> Subject_01 --> *.nii / *.json
FieldMap --> Magnitude1Img --> Subject_01 --> *.nii / *.json
FieldMap --> Magnitude2Img --> Subject_01 --> *.nii / *.json
FieldMap --> PhaseDiffImg --> Subject_01 --> *.nii / *.json
Any idea what might cause this error?
Thanks in advance
Regards
Jürgen
Change parfor in Line 823 to
Change parfor in Line 823 to for,
and then see you stopped at which line.
Reference to non-existent field 'ReconMatrixPE'.
Dear Prof. Yan
as suggested, I changed parfor in line 823 to for and get the following error:
------------------------------------------------------------
Reference to non-existent field 'ReconMatrixPE'.
Error in DPARSFA_run (line 871)
SPMJOB.matlabbatch{1,1}.spm.tools.fieldmap.calculatevdm.subj.defaults.defaultsval.tert=JSON.EffectiveEchoSpacing*JSON.ReconMatrixPE*1000;
Error in DPARSFA>pushbuttonRun_Callback (line 1847)
[Error, Cfg]=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.
---------------------------------------------------------------------
If I define TE1 and TE2 in the GUI, I do not need .json files, or?
The magnitude nifti files I started with were originally within the same magnitude file (4D nifti with two components, magnitude1 and magnitude2). I then splitted this 4D nifti file in two single files and put them in the two magnitude folders, but I do not have two distinct .json files.
Thanks for any advise
Regards
Jürgen
Error in DPARSFA while testing it on your Demo Data
There is space and special
There is space and special characters (e.g., (, )) in your data path.