Lesion masks should be binary NIfTI images (damaged areas = 1, everywhere else = 0) in the same space and resolution as the T1 image, and follow the naming convention specified in BIDS Extension Proposal 3: Common Derivatives (e.g. sub-001_T1w_label-lesion_roi.nii.gz).
As you’ve stated, putting them together in one map and binarizing sounds like a good solution.
I tried to run fmriprep with and without the lesion included in my “anat” directory labeled as “sub-01_T1w_label-lesion_roi.nii.gz”. I used the same command for both, and when I run it excluding the lesion, all of the output files are in the correct place, and I get a sub-01 html output as well, but when I include the lesion file, I only get the following outputs:
Should I not be running the same command when including a lesion file? I was under the impression that it would include the lesion mask for registration as long as the lesion was in BIDS compatible format…
Is the command finishing when you see _midthickness0 as the final line of the log? It may be that the normalization step is taking longer than usual with the lesion ROI. (@danlurie may have an estimate of how long to expect a normalization to take.)
Hmm I’m running it on a remote/screen, but I tried using the $? command and it returned 1, so I’m guessing the command didn’t finish… (Do you think I just need to wait longer?)
If you have a prompt, then it stopped, and you should see more of an error message. You can try re-running, if you’ve lost your logs; it should pick up where it left off and print full error logs. Errors should also show up in the report.
So I re-ran the same command again, but it actually doesn’t produce any error messages but gives me a prompt. It also doesn’t produce a report. (I’m rerunning again now to get the log piped into a text file so I can send that over when it’s done).
I can also send over my test case if that would be helpful.
I tried re-running it with the corrected lesion file, and it runs all the way through without errors… though when I look at the results side by side with the one ran without the lesion mask, it seems to look the same, and the output html/methods sections were identical.
I will try re-running it both ways again with a brain with a larger lesion.