Skip to content

Lesion mask not reoriented to LPS #1023

@rbakker

Description

@rbakker

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.


-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions