Intended for does not cover qMRI cases
Sorry to reopening the request. There two issues that I encountered during the tests:
- Do not take into account qMRI fieldmaps (TB1EPI etc...)
- The json list in IntendedFor is transformed into cell and not structure, hence it avoid elseif on line 527
ans =
6x1 cell array
{'anat/sub-HC1278_echo-*_acq-T1w_part-phase_MPM.nii.gz' }
{'anat/sub-HC1278_echo-*_acq-T1w_part-mag_MPM.nii.gz' }
{'anat/sub-HC1278_echo-*_acq-MToff_part-mag_MPM.nii.gz' }
{'anat/sub-HC1278_echo-*_acq-MToff_part-phase_MPM.nii.gz'}
{'anat/sub-HC1278_echo-*_acq-MTon_part-mag_MPM.nii.gz' }
{'anat/sub-HC1278_echo-*_acq-MTon_part-phase_MPM.nii.gz' }
Proposition of solution (not sure if it will broke something else): 1a) Search IntendedFor in each of json files 1b) Search IntendedFor in each file in modality fmap, not sure how it will work for coodsystem and m0
Originally posted by @nbeliy in https://github.com/bids-standard/bids-matlab/issues/151#issuecomment-781324715
1b) Search IntendedFor in each file in modality fmap, not sure how it will work for coodsystem and m0
Ah thanks. As the qMRI examples are not yet in the bids-examples repo I had overlooked this.
Yeah I think the best is to check all the files in fmap. Will fix this.
Yeah I think the best is to check all the files in fmap. Will fix this.
ha but if we do that then we end up with all the files in fmap being listed... OK need to think about this a bit.