Skip to content

ENH: Enable per-stage masking in ants.Registration #2070

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

Merged
merged 2 commits into from
Jun 15, 2017

Conversation

effigies
Copy link
Member

@effigies effigies commented Jun 8, 2017

antsRegistration permits per-stage masking, and accepts invalid filenames to indicate that no mask should be applied, providing NULL as the example string of choice.

Changes proposed in this pull request

  • Permit fixed_image_mask and moving_image_mask to be a (single or list of) 'NULL' string(s) or existing file(s)

This should change the command lines, but not semantics, of existing interface calls.

@codecov-io
Copy link

codecov-io commented Jun 8, 2017

Codecov Report

Merging #2070 into master will decrease coverage by <.01%.
The diff coverage is 23.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2070      +/-   ##
==========================================
- Coverage   72.16%   72.15%   -0.01%     
==========================================
  Files        1138     1138              
  Lines       57229    57235       +6     
  Branches     8199     8200       +1     
==========================================
  Hits        41299    41299              
- Misses      14640    14646       +6     
  Partials     1290     1290
Flag Coverage Δ
#smoketests 72.15% <23.07%> (-0.01%) ⬇️
#unittests 69.76% <23.07%> (-0.01%) ⬇️
Impacted Files Coverage Δ
...pe/interfaces/ants/tests/test_auto_Registration.py 85.71% <ø> (ø) ⬆️
nipype/interfaces/ants/registration.py 73.45% <23.07%> (-1.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5d83d4...a73efae. Read the comment docs.

@effigies effigies requested a review from chrisgorgo June 13, 2017 20:53
@effigies effigies force-pushed the ants/registration_masks branch from d27922c to eec128e Compare June 14, 2017 20:52
@effigies effigies force-pushed the ants/registration_masks branch from eec128e to e97caa4 Compare June 15, 2017 13:12
desc='mask used to limit metric sampling region of the fixed image')
fixed_image_mask = InputMultiPath(
traits.Either('NULL', File(exists=True)),
desc='mask used to limit metric sampling region of the fixed image')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please describe the use of special string 'NULL' in the desc.

Copy link
Member

@chrisgorgo chrisgorgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge at will after the desc improvements.

@effigies
Copy link
Member Author

Thanks. I'll wait for the first round of tests to finish, but won't waste time with a full Circle build on the latest.

@effigies effigies merged commit 3d930e8 into nipy:master Jun 15, 2017
@effigies effigies deleted the ants/registration_masks branch June 15, 2017 15:28
effigies added a commit to effigies/niworkflows that referenced this pull request Jun 15, 2017
effigies added a commit to nipreps/niworkflows that referenced this pull request Jun 15, 2017
@satra satra added this to the 0.14.0 milestone Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants