Relatively new fmri researcher here. We are conducting a dense-data study of 10 subjects featuring 5-session repetitions of a 2-condition T1w study that sometimes overlap with 5 different functional tasks that repeat anywhere from 1-10 times in separate session repetitions.
For our study, unfortunately about 25% of our scans were affected with by a missing anterior headcoil (problems with it being actively powered), which caused significant signal loss in the front half of the brain. We wanted to account for this by feeding in lesion-masks for the participants affected, lesioning out the front half of the brain only for the T1w and func/EPI images affected before fmriprepping. Ideally, we’d have a unique lesion mask for every session. Unfortunately:
-
Fmriprep will not tolerate any more than a single lesion mask per participant (which is not what is implied here: https://fmriprep.org/en/stable/workflows.html#cost-function-masking-during-spatial-normalization).
-
Using the bids-filter-file flag also will not allow us to filter for a specific lesion mask despite specifying in the “roi” entities in the .json file. (fmriprep will simply find all of them for the subject and crash after passing in a list a la: https://github.com/nipreps/smriprep/issues/58).
I was wondering if the following workaround is sufficiently well thought out:
-
Run fmriprep with 1 lesion mask per subject into a
/derivatives/lesioned
directory: This will fmriprep all data, with T1w/EPI images with AND without anterior headcoils, registering them to a single lesioned T1w image. -
Run fmriprep without any lesion masks into a
/derivatives/no-lesion
directory: This will fmriprep all data, with T1w/EPI images with AND without anterior headcoils, as normal.
- The potential issue I see with this is the way I think fmriprep works is that it’ll average all the T1w images together and then register the EPI images to those T1s.
- Is that a problem if some of the T1s are not good?
- Would it be better if I only fmriprep T1s and EPIs I know are good?