-
Notifications
You must be signed in to change notification settings - Fork 28
feat: Save mask to derivatives, pass derivatives to outputnode #506
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
Conversation
301df60 to
5cca67d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #506 +/- ##
==========================================
- Coverage 84.15% 84.13% -0.02%
==========================================
Files 30 30
Lines 2872 2875 +3
Branches 382 380 -2
==========================================
+ Hits 2417 2419 +2
Misses 381 381
- Partials 74 75 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e5c936f to
38e9b63
Compare
mgxd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In favor of this - let's quickly release a niworkflow patch and remove the patterns hack
| ds_mask._interface._file_patterns += ( | ||
| 'sub-{subject}[/ses-{session}]/{datatype<fmap>|fmap}/' | ||
| 'sub-{subject}[_ses-{session}][_hash-{hash}][_acq-{acquisition}]' | ||
| '[_dir-{direction}][_run-{run}][_part-{part}][_space-{space}]' | ||
| '[_cohort-{cohort}][_res-{resolution}][_fmapid-{fmapid}]' | ||
| '[_desc-{desc}]_{suffix<mask>}{extension<.nii|.nii.gz|.json>|.nii.gz}', | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened nipreps/niworkflows#977 to make this less hacky
|
@mgxd Pushed a niworkflows tag, and will update this shortly. I don't plan to wait on another CI round, and will depend on the CI for the release to catch if I mess something up. Should this be 2.14.1 or 2.15.0? It makes very little difference. |
|
2.15.0 - this will invalidate a significant amount of downstream caches |
feat: Save mask to derivatives, pass derivatives to outputnode
2.15.0 (September 26, 2025) Feature release in the 2.15.x series. This release reworks derivatives a bit to ensure that everything needed for downstream processing is placed in the output directory. The results from the output directory are aggregated into the workflow outputnode, allowing consistency in workflows that can accept precomputed derivatives. * feat: Save mask to derivatives, pass derivatives to outputnode (#506)
sdcflows adopted fit-transform before other nipreps. One thing we've found works well to ensure the same behavior with precomputed derivatives is to save the derivative and pass the saved derivative to the downstream workflow.
This does this for preprocessed fieldmaps, references, coefficients, and (newly) masks. Masks are used by downstream tools to register the fieldmap to the target image. Although they are not needed for application, if the registration is available, they do allow fieldmaps to be precomputed and then used in a new run.
There are a couple cleanup commits in here. The two that are meaningful are labeled
feat:.Enabling nipreps/fmriprep#3532.