-
Notifications
You must be signed in to change notification settings - Fork 62
Lesion mask not reoriented to LPS #1023
Description
Summary
When I use qsiprep with a lesion mask in my bids folder, it does apply the mask in the nonlinear transformation to MNI-space part, but not correctly so. The mask is used in a wrong orientation.
Additional details
- QSIPrep version: 1.0.2.dev0+gfc89945.d20250405
- Docker version:
- Singularity version: apptainer
What were you trying to do?
Run the anatomy-only pipeline with a lesion mask
What did you expect to happen?
lesion mask applied correctly to the lesion
What actually happened?
if I compare with and without lesion mask, I see subtle differences elsewhere in the brain, but not around the lesion.
I have the suspicion that qsiprep starts to resample all files to LPS space, but not the lesion mask, hence the error.
All files I have have RAS orientation, with identity matrix affine transforms.
Reproducing the bug
Run qsiprep anat-only with T1w.nii.gz in RAS orientation and identity affine transform.
Put lesion mask in sub-{subject}_ses-{session}_T1w_label-lesion_roi.nii.gz (and disable bids validation).
The lesion mask will be applied but in a wrong orientation.
-->