Skip to content
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

Fix nipy#3653 and nipy#3654 in the CAT12 Interface #3683

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JailanOweda
Copy link

Summary

Fixes nipy#3653 and nipy#3654.

List of changes proposed in this PR (pull-request)

  • Added input trait for the option of no surface measures (noROI) in the CAT12 Segment function.
  • Added missing input traits (that were added to the Matlab GUI but not updated in Nipype's CAT12 Interface) for the templates used for surface measures (e.g. thalamus, thalamic_nuclei).
  • Added option to process compressed nifti files (.nii.gz) like the latest GUI version allows.
  • Corrected if statement for saving ROI and ROIs (surface measure) files.

@JailanOweda JailanOweda changed the title Fix #3653 and #3654 in the CAT12 Interface Fix nipy#3653 and nipy#3654 in the CAT12 Interface Sep 25, 2024
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 26.31579% with 14 lines in your changes missing coverage. Please review.

Project coverage is 70.54%. Comparing base (83e3903) to head (6afc8b5).
Report is 29 commits behind head on master.

Files with missing lines Patch % Lines
nipype/interfaces/cat12/preprocess.py 26.31% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3683      +/-   ##
==========================================
- Coverage   70.89%   70.54%   -0.36%     
==========================================
  Files        1277     1277              
  Lines       59212    59223      +11     
  Branches     9799     9804       +5     
==========================================
- Hits        41980    41779     -201     
- Misses      16066    16292     +226     
+ Partials     1166     1152      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -239,33 +240,71 @@ class CAT12SegmentInputSpec(SPMCommandInputSpec):
neuromorphometrics = traits.Bool(
True,
field="output.ROImenu.atlases.neuromorphometrics",
usedefault=True,
# usedefault=True,
Copy link
Member

Choose a reason for hiding this comment

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

We can't change the interface like this. The reason to have defaults expliciltly added is so that when tools change their defaults, old workflows that depended on those defaults would continue using the old settings.

If the changes are this extensive, new interfaces will be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nipype.interfaces.cat12.preprocess.CAT12Segment does not accept compressed .nii.gz files
2 participants