I have two fieldmaps (AP, PA) for resting state fMRI, and two fieldmaps for DTI. When using dcm2bids to convert the data, I see the following errors for resting state fieldmaps:
Command used (and if a helper script was used, a link to the helper script or the command generated):
I’m using the latest versions of everything within conda.
INFO | OS version: Linux-5.14.0-1024-oem-x86_64-with-glibc2.31
INFO | Python version: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:50:58) [GCC 12.3.0]
INFO | dcm2bids version: 3.1.1
INFO | dcm2niix version: v1.0.20240202
INFO | Checking for software update
INFO | Currently using the latest version of dcm2bids.
INFO | Currently using the latest version of dcm2niix.
Data formatted according to a validatable standard? Please provide the output of the validator:
PASTE VALIDATOR OUTPUT HERE
Relevant log outputs (up to 20 lines):
WARNING | {'dir'} have not been found for datatype 'fmap' and suffix 'epi'.
INFO | sub-220409_dir-AP_epi <- 801_220409_fMRI_Fieldmap_A_20220824152504
WARNING | {'dir'} have not been found for datatype 'fmap' and suffix 'epi'.
INFO | sub-220409_dir-PA_epi <- 901_220409_fMRI_Fieldmap_P_20220824152504
WARNING | {'task'} have not been found for datatype 'func' and suffix 'bold'.
INFO | sub-220409_task-rest_bold <- 1001_220409_Axial_rsfMRI_(EYES_OPEN)_20220824152504
I also have a related question for you: for the dwi fieldmaps, although it did not give me any warnings, I wanted to check if the outputs look sensible. I had the following config:
That is not valid. DWI data should be in the DWI folder.
You don’t need to do that, it should already be part of your JSON.
fmaps should not have bvals and bvecs. If these are reverse phase encoded b0 fieldmaps they should have the epi.nii.gz suffix and only have an accompanying json.
Great, thanks! I fixed the dwi issue. So back to the original question: I don’t need to worry about the warnings then (i.e., WARNING | {‘dir’} have not been found for datatype ‘fmap’ and suffix ‘epi’.)?
I checked the fmaps for DWI, they are indeed reverse phase encoded b0 fieldmaps. The bvals and bvecs were generated via the helper command. In this case, should I just remove the bvals and bvecs, and change the config to the following:
as long as the outputs are BIDS valid, which you can check with the BIDS validator, it should be fine.
Yup
You can look at the IntendedFor of the output fmap json files. Keep in mind you might have to remove the BIDS URI (i.e., the leading sub-XXX/) from each intendedfor field until the BIDS URI is officially supported, which should be in future releases.
I also noticed that you have “intendedFor”: [“id_dwi”] but you don’t have the ID specified for the DWI file in your config, so that ID may not map to anything.