-
Notifications
You must be signed in to change notification settings - Fork 532
ENH: SPM NewSegment multi-channel segmentation #3162
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
@jhuguetn - thank you for this. we should maintain backwards compatibility for existing scripts/workflows using the current interface. this can be done by making the original inputs mutually exclusive with the new one. (and still supporting the original functionality). |
Thanks @satra for considering this proposal. I see two possible alternatives,
What you think? |
i would be fine with a new interface here. |
4f56fa7
to
8fe05af
Compare
I've just included new changes to my original PR proposal. Now it creates a brand new Interface called |
Codecov Report
@@ Coverage Diff @@
## master #3162 +/- ##
=======================================
Coverage 67.61% 67.61%
=======================================
Files 299 299
Lines 39494 39494
Branches 5219 5219
=======================================
Hits 26703 26703
Misses 12083 12083
Partials 708 708
Continue to review full report at Codecov.
|
Is this ready to go? |
Hi @effigies, it is from my side. Do you plan to include it in the 1.5.0 release? |
Sounds good. Yes, we'll include it in 1.5.0. That's currently stalled as we try to find time to debug failing tutorials... |
Great, thanks |
Summary
SPM Segment supports including additional images as alternative data channels to help improving the segmentation results of the first/main channel images by providing complementary information (e.g. multimodal images) to the segmentation procedure.
However, this feature is not (yet) supported by nipype NewSegment interface (see
nipype.interfaces.spm.preprocess
).This PR proposes a modification to the existing
NewSegment
interface to support using several data channels for SPM's segmentation procedure.As suggested in the contribution guide, changes have been successfully tested via
pytest
with the following results:Related issue: #2342 (comment)
List of changes proposed in this PR (pull-request)
NewSegmentInputSpec()
class to support a list of channelsT2.nii
file added to testing datatest_NewSegment_inputs()
Acknowledgment