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 |
---|---|
![]() | 29.5 KB |
YAN Chao-Gan
Fri, 02/19/2021 - 08:01
Permalink
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
Juergen Haenggi
Wed, 07/14/2021 - 15:11
Permalink
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
YAN Chao-Gan
Fri, 07/16/2021 - 05:05
Permalink
Change parfor in Line 823 to
Change parfor in Line 823 to for,
and then see you stopped at which line.
Juergen Haenggi
Fri, 07/16/2021 - 10:34
Permalink
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
ARGHYA SAHA
Thu, 07/29/2021 - 15:57
Permalink
Error in DPARSFA while testing it on your Demo Data
YAN Chao-Gan
Thu, 08/12/2021 - 01:22
Permalink
There is space and special
There is space and special characters (e.g., (, )) in your data path.