I am trying to validate a test dataset and I am getting the following Error:
EXTENSION_MISMATCH
Extension used by file does not match allowed extensions for its suffix
I have .json and .nii.gz files in various folders. Also have .bvac and .bval for DWI data. I don’t have any other type of files.
Anyone know or faced this problem and how to solve it?
–
Asim
Steven
August 12, 2024, 4:31pm
2
Hi @asim.mubeen and welcome to neurostars!
For us to better assist you, would need to see the output of tree
run on the BIDS directory, so we can see the file structure. The full BIDS validation report would be helpful too.
Best,
Steven
Hi Steven,
Thanks for prompt reply.
Here is the tree output:
└───sub-0001
└───ses-0001
├───BSNIP2_DTI_72dir
├───BSNIP2_MPRAGE_ADNI_GRAPPA
└───BSNIP2_Resting
And here is the Error:
Extension used by file does not match allowed extensions for its suffix
* /sub-0001/ses-0001/BSNIP2_DTI_72dir/sub-0001_ses-0001_BSNIP2_DTI_72dir_00001.bval
* /sub-0001/ses-0001/BSNIP2_DTI_72dir/sub-0001_ses-0001_BSNIP2_DTI_72dir_00001.bvec
* /sub-0001/ses-0001/BSNIP2_DTI_72dir/sub-0001_ses-0001_BSNIP2_DTI_72dir_00001.nii.gz
* /sub-0001/ses-0001/BSNIP2_MPRAGE_ADNI_GRAPPA/sub-0001_ses-0001_BSNIP2_MPRAGE_ADNI_GRAPPA_00001.nii.gz
* /sub-0001/ses-0001/BSNIP2_Resting/sub-0001_ses-0001_BSNIP2_Resting_00001.nii.gz
–
Asim
Steven
August 12, 2024, 4:42pm
4
Hi @asim.mubeen ,
Those data are not organized in a BIDS valid way.
Please refer to the BIDS starter kit and BIDS specification for documentation in how to set up your data.
For example, for your data, the following might work:
/sub-0001/ses-0001/dwi/sub-0001_ses-0001_acq-72dir_dwi.bval
/sub-0001/ses-0001/dwi/sub-0001_ses-0001_acq-72dir_dwi.bval.bvec
/sub-0001/ses-0001/dwi/sub-0001_ses-0001_acq-72dir_dwi.bval.nii.gz
/sub-0001/ses-0001/anat/sub-0001_ses-0001_acq-GRAPPA_T1w.nii.gz
/sub-0001/ses-0001/func/sub-0001_ses-0001_task-rest_bold.nii.gz
Best,
Steven
Thank you very much Steven!