Skip to content

[ENH] Mrtrix3 enhancements #3426

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

Closed
wants to merge 27 commits into from
Closed

[ENH] Mrtrix3 enhancements #3426

wants to merge 27 commits into from

Conversation

GalKepler
Copy link
Contributor

Summary

Made some changes and additions to Mrtrix3's interfaces in the nipype platform.

Fixes #3400 and #3402 .

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

  • Added json and gradient table-related kwargs to mrconvert interface.
  • Added mrcatinterface.
  • Added mrtransform interface.

Acknowledgment

  • [] (Mandatory) I acknowledge that this contribution will be available under the Apache 2 license.

@codecov
Copy link

codecov bot commented Dec 22, 2021

Codecov Report

Merging #3426 (8375356) into master (1342d62) will increase coverage by 0.01%.
The diff coverage is 73.68%.

@@            Coverage Diff             @@
##           master    #3426      +/-   ##
==========================================
+ Coverage   65.22%   65.23%   +0.01%     
==========================================
  Files         308      308              
  Lines       40536    40625      +89     
  Branches     5355     5361       +6     
==========================================
+ Hits        26439    26503      +64     
- Misses      13022    13046      +24     
- Partials     1075     1076       +1     
Flag Coverage Δ
unittests 64.96% <73.68%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nipype/interfaces/mrtrix/convert.py 16.58% <ø> (ø)
nipype/interfaces/mrtrix/preprocess.py 64.10% <ø> (ø)
nipype/interfaces/mrtrix3/preprocess.py 82.83% <ø> (ø)
nipype/interfaces/mrtrix3/base.py 59.01% <60.00%> (-0.64%) ⬇️
nipype/interfaces/mrtrix3/utils.py 80.06% <73.25%> (-2.95%) ⬇️
nipype/interfaces/mrtrix3/__init__.py 100.00% <100.00%> (ø)

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 1342d62...8375356. Read the comment docs.

@ZviBaratz
Copy link
Contributor

Hi 😃

@GalBenZvi and I are trying to get this PR to pass the build (the tests pass locally), but it seems like we're missing something.

There are two issues we're currently facing:

  1. Contribution checks' tests raising:
 M nipype/interfaces/mrtrix3/tests/test_auto_BrainMask.py
 M nipype/interfaces/mrtrix3/tests/test_auto_ConstrainedSphericalDeconvolution.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIBiasCorrect.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIDenoise.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIExtract.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py
 M nipype/interfaces/mrtrix3/tests/test_auto_EstimateFOD.py
 M nipype/interfaces/mrtrix3/tests/test_auto_FitTensor.py
 M nipype/interfaces/mrtrix3/tests/test_auto_Generate5tt.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRCat.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRConvert.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRDeGibbs.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRMath.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRResize.py
 M nipype/interfaces/mrtrix3/tests/test_auto_ResponseSD.py
 M nipype/interfaces/mrtrix3/tests/test_auto_TensorMetrics.py
 M nipype/interfaces/mrtrix3/tests/test_auto_Tractography.py
++ git status -s
+ test -z ' M nipype/interfaces/mrtrix3/tests/test_auto_BrainMask.py
 M nipype/interfaces/mrtrix3/tests/test_auto_ConstrainedSphericalDeconvolution.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIBiasCorrect.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIDenoise.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIExtract.py
 M nipype/interfaces/mrtrix3/tests/test_auto_DWIPreproc.py
 M nipype/interfaces/mrtrix3/tests/test_auto_EstimateFOD.py
 M nipype/interfaces/mrtrix3/tests/test_auto_FitTensor.py
 M nipype/interfaces/mrtrix3/tests/test_auto_Generate5tt.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRCat.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRConvert.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRDeGibbs.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRMath.py
 M nipype/interfaces/mrtrix3/tests/test_auto_MRResize.py
 M nipype/interfaces/mrtrix3/tests/test_auto_ResponseSD.py
 M nipype/interfaces/mrtrix3/tests/test_auto_TensorMetrics.py
 M nipype/interfaces/mrtrix3/tests/test_auto_Tractography.py'
Error: Process completed with exit code 1.
  1. Even though the pre-commit hook is run successfully before pushing, it seems like there are many formatting changes being applied.

@effigies @satra I tried looking into checkspecs.py but haven't managed to track down the problem. Any help resolving this would be greatly appreciated 🙏

effigies added a commit to effigies/nipype that referenced this pull request Apr 2, 2022
effigies added a commit to effigies/nipype that referenced this pull request Apr 2, 2022
Co-authored-by: GalBenZvi <hershkovitz1@mail.tau.ac.il>
Co-authored-by: Zvi Baratz <z.baratz@gmail.com>
@effigies
Copy link
Member

effigies commented Apr 2, 2022

Hi @ZviBaratz @GalBenZvi, apologies for the very slow response. I went ahead and pared down a lot of the unrelated changes and squashed this into a single commit in #3445. Could you review that and let me know if that fully replaces what you were trying to do here?

@effigies effigies added this to the 1.7.1 milestone Apr 3, 2022
@GalKepler
Copy link
Contributor Author

Hi @effigies,
The PR looks good (I think it's most of what I tried to add some time ago but had some trouble with the checks).

I was wondering whether you'd like me to create interfaces to some other mrtrix's functions?
I saw there's another release coming and wouldn't want to delay it.

effigies added a commit that referenced this pull request Apr 4, 2022
ENH: Add MRTrix3 interfaces (pared-down gh-3426)
@effigies
Copy link
Member

effigies commented Apr 4, 2022

@GalBenZvi Thanks for looking it over. I'm going to try to release tomorrow or the day after, but please feel free to submit more interfaces when you have the opportunity.

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.

MRConvert missing json-related keyword arguments' interfaces
3 participants