-
Notifications
You must be signed in to change notification settings - Fork 52
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: add rodent-specific adaption for B-spline #630
ENH: add rodent-specific adaption for B-spline #630
Conversation
Hello @eilidhmacnicol, Thank you for updating!
To test for issues locally, Comment last updated at 2021-11-17 17:19:15 UTC |
Codecov Report
@@ Coverage Diff @@
## master #630 +/- ##
==========================================
- Coverage 48.86% 47.65% -1.21%
==========================================
Files 45 45
Lines 5501 5523 +22
Branches 790 790
==========================================
- Hits 2688 2632 -56
- Misses 2712 2796 +84
+ Partials 101 95 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
A few suggestions
Okay, tested the N4 in the reference workflow on two sets of multi-run EPIs from a subject, and it works well. @oesteban what do you think? |
|
I'll have a look ASAP |
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.
Looking good - left a few minor comments and nit picks
e0eb48d
to
018b3c3
Compare
Codecov Report
@@ Coverage Diff @@
## feat/infants-rodents #630 +/- ##
========================================================
- Coverage 49.02% 47.86% -1.16%
========================================================
Files 45 45
Lines 5520 5534 +14
Branches 795 794 -1
========================================================
- Hits 2706 2649 -57
- Misses 2713 2790 +77
+ Partials 101 95 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I just rebased your branch on |
I also have changed the target branch to |
Co-authored-by: Oscar Esteban <code@oscaresteban.es>
@oesteban seems like the issue that was causing the tests to fail was related to the nipype version. Pinning to master has bypassed this, so is this ready to merge or should we pin to a newer version of nipype first? |
More fun - it seems that whatever is causing the tests to fail has been resolved somewhere between the release of nipype 1.7.0 (https://github.com/nipy/nipype/tree/b38572030f3d968c945675efaccd053d123f158b; released 28 days ago at time of writing) and the version accessed today (https://github.com/nipy/nipype/tree/f756b71117493caea093bac79d576207d8f96482). My guess is that it is fixed by nipy/nipype#3395, so I guess we will have to pin to 1.7.1 when it is released. |
In the meantime, I think I will revert to pinning to master and push through so we are not waiting solely on a nipype release |
cc7ef7f
to
57621e4
Compare
Addressing #611, this PR 1) adds a function to determine bspline grid using a ratio of the number of slices in each dimension, and 2) adds logic to various workflows so that this might be used with rodents by updating the N4 parameters. Not to say that the function can't be used with non-rodent images, but it hasn't been tested as such.
There are other workflows that call
N4BiasFieldCorrection
, but they are unlikely to be used by NiRodents/fprodents because there are already rodent alternatives or because they would require more changes and would probably benefit from a rodent-specific workflow.