The following error is returned when running the BIDS validator. It occurs for every file that is pointed to within the *epi.json that is stored within the fmap directory.
The error is as follows:
‘IntendedFor’ field needs to point to an existing file.
Location:
cotdata.bids/sub-7640363/ses-00/fmap/sub-7640363_ses-00_acq-rest_dir-AP_run-01_epi.nii.gz
Reason:
‘IntendedFor’ property of this fieldmap (’/sub-7640363/ses-00/fmap/sub-7640363_ses-00_acq-rest_dir-AP_run-01_epi.nii.gz’) does not point to an existing file(‘func/sub-7640363_ses-00_task-rest_run-01_bold.nii.gz’). Please mind that this value should not include subject level directory (’/sub-7640363/’).
Evidence:
func/sub-7640363_ses-00_task-rest_run-01_bold.nii.gz
The BIDS directory contents are as follows:
sub-7640363/ses-00/sub-7640363_ses-00_scans.tsv
sub-7640363/ses-00/anat:
sub-7640363_ses-00_T1w.json sub-7640363_ses-00_T1w.nii.gz sub-7640363_ses-00_T2w.json sub-7640363_ses-00_T2w.nii.gz
sub-7640363/ses-00/fmap:
sub-7640363_ses-00_acq-rest_dir-AP_run-01_epi.json sub-7640363_ses-00_acq-rest_dir-PA_run-01_epi.json
sub-7640363_ses-00_acq-rest_dir-AP_run-01_epi.nii.gz sub-7640363_ses-00_acq-rest_dir-PA_run-01_epi.nii.gz
sub-7640363_ses-00_acq-rest_dir-AP_run-02_epi.json sub-7640363_ses-00_acq-rest_dir-PA_run-02_epi.json
sub-7640363_ses-00_acq-rest_dir-AP_run-02_epi.nii.gz sub-7640363_ses-00_acq-rest_dir-PA_run-02_epi.nii.gz
sub-7640363/ses-00/func:
sub-7640363_ses-00_task-rest_run-01_bold.json sub-7640363_ses-00_task-rest_run-02_bold.json
sub-7640363_ses-00_task-rest_run-01_bold.nii.gz sub-7640363_ses-00_task-rest_run-02_bold.nii.gz
sub-7640363_ses-00_task-rest_run-01_events.tsv sub-7640363_ses-00_task-rest_run-02_events.tsv
… note that the file reported “nonexistent” by the BIDS validator is indeed in the directory - highlighted in bold.
_This error is returned with the BIDS validator, however, other BIDS-apps such as fmriprep acknowledge this file as existent. I am not sure what I am doing wrong; does it have to do with including “sess-00” in my json file?
Best,
Scott_