Generated DICOMs fail BIDS Validator
The DICOMs generated by dicom-util/generate_dicom.py
cause the following errors in BIDS Validator (1.8.9):
-
[ERR]
You have to defineRepetitionTime
for this file. (code:10 - REPETITION_TIME_MUST_DEFINE
)./sub-1/func/sub-1_task-fmri_bold.nii
-
[ERR]
Bold scans must be 4 dimensional. (code:54 - BOLD_NOT_4D
)./sub-1/func/sub-1_task-fmri_bold.nii
- Evidence: header field "dim" = 3,32,32,1
-
[ERR]
sform_code
andqform_code
in the image header are 0. The image/file will be considered invalid or assumed to be in LAS orientation. (code:60 - SFORM_AND_QFORM_IN_IMAGE_HEADER_ARE_ZERO
)./sub-1/anat/sub-1_T1w.nii
./sub-1/fmap/sub-1_magnitude1.nii
./sub-1/fmap/sub-1_magnitude2.nii
./sub-1/fmap/sub-1_phasediff.nii
./sub-1/func/sub-1_task-fmri_bold.nii
-
[ERR]
NIfTI file's header is missing time dimension information. (code:75 - NIFTI_PIXDIM4
)./sub-1/func/sub-1_task-fmri_bold.nii
-
[WARN]
You should defineSliceTiming
for this file. If you don't provide this information slice time correction will not be possible. Slice Timing is the time at which each slice was acquired within each volume (frame) of the acquisition. Slice timing is not slice order -- rather, it is a list of times containing the time (in seconds) of each slice acquisition in relation to the beginning of volume acquisition. (code:13 - SLICE_TIMING_NOT_DEFINED
)./sub-1/func/sub-1_task-fmri_bold.nii
We generate only dummy DICOMs but it may be good to investigate how to fix these errors.