According to the BIDS naming convention, the fMRI fmap files do not have their task labels
for instance, sub-<label>[_ses-<label>][_acq-<label>][_run-<index>]_magnitude2.nii[.gz]
i wonder if this means that all fMRI tasks within the same session share the same fmap files?
so, i’m fMRIpreping the CAM-CAN dataset which has 3 fMRI tasks (rest, movie and SMT). Apparently each of these tasks have their own folder of fmap files. I wonder if its ok if i simply use the fmap files for rest on all 3 tasks?
The best approach would be to use the fieldmap dedicated for each functional image to correct each functional image.
Indeed in general a dedicated fieldmap is acquired just before and just after the functional run, with the head in similar position, and sometimes there may be re-shiming involved between runs (but I don’t know the acquisition settings for this dataset).
If the fmaps do not have this intended for field in the sidecar json you have to start making assumptions about what fieldmap goes with what functional run: “easy” when there is only one of each but becomes quickly harder for anything beyond that.
Also if a dataset like CAM-CAN does not have this info, this may be a problem that should probably be reported to the curation team.
indeed the json files do not contain such information. In fact the json files for the fmaps are identical between tasks, the phase and magnitude files have identical file sizes for all three tasks as well.
So if i were to add "IntendedFor": in the JSON files for the fmaps, how should i name these fmaps?
Could you spend some time looking at BIDS examples to see how IntendedFor is used (GitHub search link to get you going)? I think that will give you a better handle on how this works, and allow you to ask more pointed questions, if imitating the examples doesn’t get you the whole way there.
supposed i have 2 sets (movie and smt) of fmap files with the correct IntendedFor parameters, which are to be placed in the subject’s fmap folder, how should i name them? because i can’t possibly use the same filename for both tasks e.g sub-CC110319_magnitude1.json ?