I’m trying to convert my MRI (mostly t1w) database into BIDS, from the nifti files (i don’t have any DICOM).
For half of the subjects (130), i’m facing an error when i try to validate my dataset using BIDS validator:
Error 3: [Code 95] T1W_FILE_WITH_TOO_MANY_DIMENSIONS.
sub-0XXX_ses-1_T1w.nii.gz
11054.205 KB | application/gzip
Location:
BIDS/sub-0XXX/ses-1/anat/sub-0XXX_ses-1_T1w.nii.gz
Reason:
_T1w.nii[.gz] files must have exactly three dimensions.
Evidence:
this T1w file does not have exactly three dimensions.
I checked the header of one problematic t1w compared to a valid one with fslinfo. Here are the logs:
I’m having the same problem when using fmriprep docker latest. Here’s the error message:
bids-validator@1.4.0
1: [ERR] _T1w.nii[.gz] files must have exactly three dimensions. (code: 95 - T1W_FILE_WITH_TOO_MANY_DIMENSIONS)
./sub-06/anat/sub-06_T1w.nii
Evidence: this T1w file does not have exactly three dimensions.
Here’s an example of the problematic t1w file: t1w