FIX: Do not reorient magnitude images #98
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #33 it is shown that fieldmaps in AIL orientation produce an error in
sdc_estimate_wf.phdiff_wf.fmap_postproc_wf.cleanup_wf.Despike
where the brainmask generated insdc_estimate_wf.phdiff_wf.magnitude_wf.bet
is in a different orientation.This is because the input to BET is reoriented to RAS in the
magmrg
step. I considered forcing all images to RAS, but that has the potential to cause problems withPhaseEncodingDirection
, which is one of the voxel dimensionsi
,j
, andk
, and not coded in RAS space.The simpler solution is simply not to reorient images during this workflow, to ensure that calculations are performed as intended. A further validation step could ensure that all fieldmap images have the same orientation and voxel sizes, but that would be a more significant change.
Because this is a change to an interface input, workflow directories can be reused without clearing. This can be safely included in the 1.5.x series of fMRIPrep.
Fixes #33.