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?
or by adding the field B0FieldSource field in the JSON files of the BOLD images and the B0FieldIdentifier in the JSON file of the fmap/:
β for the fmap/ JSON:
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.
i appreciate the help pointing me to the IntendedFor json parameter, this is something new that i didnt know before, but i dont think this solves problem at all.
sorry for not being very clear about the problem. Let me explain again, this is my subjectβs directory
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 ?
If your fieldmaps are identical, the recommendation would be to use run-1 and run-2 to differentiate them. You would then use IntendedFor to differentiate the files that they are intended to apply to.