Fix DWI fieldmap handling #1

Open
msz wants to merge 1 commit from fix-dwi-fmap into main
Member

The heuristic did not handle DICOM series named "dwi_acq-(...)b0ref" correctly - it placed them as "_sbref" into dwi/, while they should have been "_epi" in func. These have an opposite phase encoding direction to the main dwi acquisitions, and are intended for field map correction.

This change assigns the correct folder and suffix to these files, and adds dir-PA / dir-AP to the dwi and reference acquisitions. As a result, QSIPrep should pick these up as field maps and apply susceptibility distorsion correction.

The heuristic did not handle DICOM series named "dwi_acq-(...)b0ref" correctly - it placed them as "_sbref" into dwi/, while they should have been "_epi" in func. These have an opposite phase encoding direction to the main dwi acquisitions, and are intended for field map correction. This change assigns the correct folder and suffix to these files, and adds dir-PA / dir-AP to the dwi and reference acquisitions. As a result, QSIPrep should pick these up as field maps and apply susceptibility distorsion correction.
The heuristic did not handle DICOM series named "dwi_acq-(...)b0ref"
correctly - it placed them as "_sbref" into dwi/, while they should
have been "_epi" in func. These have an opposite phase encoding
direction to the main dwi acquisitions, and are intended for field map
correction.

This change assigns the correct folder and suffix to these files, and
adds dir-PA / dir-AP to the dwi and reference acquisitions. As a
result, QSIPrep should pick these up as field maps and apply
susceptibility distorsion correction.
msz changed title from WIP: Fix DWI fieldmap handling to Fix DWI fieldmap handling 2026-05-12 16:25:03 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix-dwi-fmap:fix-dwi-fmap
git switch fix-dwi-fmap

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix-dwi-fmap
git switch fix-dwi-fmap
git rebase main
git switch main
git merge --ff-only fix-dwi-fmap
git switch fix-dwi-fmap
git rebase main
git switch main
git merge --no-ff fix-dwi-fmap
git switch main
git merge --squash fix-dwi-fmap
git switch main
git merge --ff-only fix-dwi-fmap
git switch main
git merge fix-dwi-fmap
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
q01/phantom-mri-dicoms!1
No description provided.