-
Notifications
You must be signed in to change notification settings - Fork 532
N4BiasFieldCorrection fails for compiled ANTS #3138
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
Comments
this seems like an issue with ants version rather than nipype itself. nipype appears to be doing the correct thing. |
@satra yes ANTs version is not correct. Yet is it expected that for versions less than |
thanks @salma1601 - this is then a bug in the nipype core. at present the handling of in such a situation we should either:
my preference is towards 2, but this will require some modifications to how inputs are handled. |
If I understand correctly, this is a more general problem than specific to N4BiasFieldCorrection. |
yes
when you create an instance of an interface, the inputs that are available will depend on a scan through this would allow hashing of inputs properly and not using those inputs in format_arg, parse_arg, etc.,. also when we do interface.inputs it should not list disabled inputs. however, this would be a bigger change and we would have to ensure our tests cover the issues this may cause. |
Let's try to resolve the primary issue in 1.6.0. |
@satra Ran across this while thinking about pushing for a 1.6.0 release. If you get some minutes, would you mind refreshing yourself on the issue and estimating how big a lift this would be? I can probably find time to do it if the path is reasonably clear. |
Summary
N4BiasFieldCorrection
throws an errorActual behavior
The
rescale_intensities
trait is set by default toFalse
while it must not be specified for ANTS version under 2.1.0Expected behavior
rescale_intensities
should be undefined by defaultHow to replicate the behavior
We can replicate the behavior with compiled ANTs
Script/Workflow details
My Ants version
Ants version as read by nipype
throws the following error
while forcing the trait
rescale_intensities
to be undefined solves the issuePlatform details:
The text was updated successfully, but these errors were encountered: