Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Deduplicating magnitude handling and fieldmap postprocessing workflows #52

Merged

Conversation

oesteban
Copy link
Member

@oesteban oesteban commented Nov 19, 2019

This PR splits the magnitude processing and the fieldmap postprocessing
that is shared between phasediff (and phase1/2) and direct B0 mapping
approaches.

It also addresses some issues on the direct B0 mapping approach, where
the fieldmap was converted between units and subject to PRELUDE (which
is not correct as these fieldmaps are not phase-wrapped).

Adding a test case of SE fieldmaps would be great for a future PR.

With thanks to @mattcieslak for providing the basis for this in #30.

@oesteban oesteban requested a review from mattcieslak November 19, 2019 21:14
…kflows

This PR splits the magnitude processing and the fieldmap postprocessing
that is shared between phasediff (and phase1/2) and direct B0 mapping
approaches.

It also addresses some issues on the direct B0 mapping approach, where
the fieldmap was converted between units and subject to PRELUDE (which
is not correct as these fieldmaps are not phase-wrapped).

Adding a test case of SE fieldmaps would be great for a future PR.

Close nipreps#17
@oesteban oesteban force-pushed the fix/17-redundancy-in-fieldmap-workflows branch from eba2228 to 5c04744 Compare November 19, 2019 22:30
oesteban added a commit to oesteban/sdcflows that referenced this pull request Nov 20, 2019
Following nipreps#40, rolls back the changes most involved with PyBIDS also
making the API evolve less abruptly.

The PR builds on top of nipreps#52, and closes nipreps#16.

This PR does not address #20, nor nipreps#19 and nipreps#21 although it is setting the
necessary stepping stones.
@oesteban oesteban merged commit 9c520a6 into nipreps:master Nov 20, 2019
@oesteban oesteban deleted the fix/17-redundancy-in-fieldmap-workflows branch November 20, 2019 01:02
oesteban added a commit to oesteban/sdcflows that referenced this pull request Nov 25, 2019
Putting together the lessons learned in nipreps#30, leveraging nipreps#52 and nipreps#53
(unfolded from nipreps#30 too), and utilizing nipreps#50 and nipreps#51, this workflow adds
the phase difference map calculation, considering it one use-case of the
general phase-difference fieldmap workflow.

On top of this PR, we can continue the discussions held in nipreps#30.
Probably, we will want to address nipreps#23 the first - the magnitude
segmentation is sometimes really bad (e.g. see the phase1/2 unit test).

Another discussion arisen in nipreps#30 is the spatial smoothing of the
fieldmap (nipreps#22).

Finally, the plan is to revise this implementation and determine whether
the subtraction should happen before or after PRELUDE, and whether the
arctan2 route is more interesting.
oesteban added a commit to oesteban/sdcflows that referenced this pull request Nov 25, 2019
Putting together the lessons learned in nipreps#30, leveraging nipreps#52 and nipreps#53
(unfolded from nipreps#30 too), and utilizing nipreps#50 and nipreps#51, this workflow adds
the phase difference map calculation, considering it one use-case of the
general phase-difference fieldmap workflow.

On top of this PR, we can continue the discussions held in nipreps#30.
Probably, we will want to address nipreps#23 the first - the magnitude
segmentation is sometimes really bad (e.g. see the phase1/2 unit test).

Another discussion arisen in nipreps#30 is the spatial smoothing of the
fieldmap (nipreps#22).

Finally, the plan is to revise this implementation and determine whether
the subtraction should happen before or after PRELUDE, and whether the
arctan2 route is more interesting.
oesteban added a commit that referenced this pull request Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant