the resulting files look like: bids/sub-001/func/sub-001_task-rest00_bold.nii.gz, but no corresponding json descriptors like bids/sub-001/func/sub-001_task-rest00_bold.json are created. (I assume for other mri_ext they might be created during the conversion?).
Additionally, if not given explicitly in the meta-data, I would suggest automatically extracting the RepetitionTime from the header, i.e. via nibabel:
TR = nib.load(nifti_file).get_header().get_zooms()[-1]
and also derive the TaskName from the task attribute, as both seems to be bids requirements.
Hi,
I was just trying to convert a dataset consisting out of only nifiti files and I realized that when I converted them using a config like this:
the resulting files look like:
bids/sub-001/func/sub-001_task-rest00_bold.nii.gz
, but no corresponding json descriptors likebids/sub-001/func/sub-001_task-rest00_bold.json
are created. (I assume for other mri_ext they might be created during the conversion?).Additionally, if not given explicitly in the meta-data, I would suggest automatically extracting the RepetitionTime from the header, i.e. via nibabel:
TR = nib.load(nifti_file).get_header().get_zooms()[-1]
and also derive the TaskName from the task attribute, as both seems to be bids requirements.