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: Partial rollback of N4BiasFieldCorrection #3188

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

oesteban
Copy link
Contributor

@oesteban oesteban commented Mar 14, 2020

In the last maintenance (#3180) of the interface, we eliminated an
important section of the _list_outputs:

6979cbd#diff-b6f33a19b0e06b91023416db5faf7323L544-L547

This PR addresses the problem:

Execution Outputs
-----------------

* bias_image : <undefined>
* output_image : /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/brain_extraction_wf/inu_n4_final/mapflow/_inu_n4_final0/sub-01_T1w_cor
rected.nii.gz

Runtime info
------------

* cmdline : N4BiasFieldCorrection --bspline-fitting [ 200 ] -d 3 --input-image /oak/stanford/groups/russpold/data/openfmri/ds000005/sub-01/anat/sub-01_T1w.nii.gz --convergence [ 50x
50x50x50x50, 1e-07 ] --output [ sub-01_T1w_corrected.nii.gz, sub-01_T1w_bias.nii.gz ] -r --shrink-factor 4 --weight-image /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/brain_extraction_wf/atropos_wf/copy_xform/09_relabel_wm_maths_xform.nii.gz
* duration : 15.334786
* hostname : dendrite
* prev_wd : /home/oesteban/tmp/fmriprep-ds005
* working_dir : /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/brain_extraction_wf/inu_n4_final/mapflow/_inu_n4_final0

(bias_image should be 'sub-01_T1w_bias.nii.gz' given the cmdline)

Summary

Fixes # .

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

Acknowledgment

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

In the last maintenance (nipy#3180) of the interface, we eliminated an
important section of the ``_list_outputs``:

nipy@6979cbd#diff-b6f33a19b0e06b91023416db5faf7323L544-L547

This PR addresses the problem:
```
Execution Outputs
-----------------

* bias_image : <undefined>
* output_image : /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/brain_extraction_wf/inu_n4_final/mapflow/_inu_n4_final0/sub-01_T1w_cor
rected.nii.gz

Runtime info
------------

* cmdline : N4BiasFieldCorrection --bspline-fitting [ 200 ] -d 3 --input-image /oak/stanford/groups/russpold/data/openfmri/ds000005/sub-01/anat/sub-01_T1w.nii.gz --convergence [ 50x
50x50x50x50, 1e-07 ] --output [ sub-01_T1w_corrected.nii.gz, sub-01_T1w_bias.nii.gz ] -r --shrink-factor 4 --weight-image /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/brain_extraction_wf/atropos_wf/copy_xform/09_relabel_wm_maths_xform.nii.gz
* duration : 15.334786
* hostname : dendrite
* prev_wd : /home/oesteban/tmp/fmriprep-ds005
* working_dir : /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/brain_extraction_wf/inu_n4_final/mapflow/_inu_n4_final0
```
(`bias_image` should be `'sub-01_T1w_bias.nii.gz'` given the `cmdline`)
@oesteban oesteban marked this pull request as ready for review March 14, 2020 05:02
@codecov
Copy link

codecov bot commented Mar 14, 2020

Codecov Report

Merging #3188 into master will decrease coverage by 0.84%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3188      +/-   ##
==========================================
- Coverage   65.08%   64.23%   -0.85%     
==========================================
  Files         301      299       -2     
  Lines       39619    39542      -77     
  Branches     5246     5237       -9     
==========================================
- Hits        25785    25400     -385     
- Misses      12767    13085     +318     
+ Partials     1067     1057      -10     
Flag Coverage Δ
#unittests 64.23% <20.00%> (-0.85%) ⬇️
Impacted Files Coverage Δ
nipype/interfaces/ants/segmentation.py 76.51% <20.00%> (-0.58%) ⬇️
nipype/interfaces/nilearn.py 38.98% <0.00%> (-57.63%) ⬇️
nipype/workflows/__init__.py 47.05% <0.00%> (-52.95%) ⬇️
nipype/utils/spm_docs.py 20.00% <0.00%> (-48.00%) ⬇️
nipype/interfaces/freesurfer/base.py 45.68% <0.00%> (-30.18%) ⬇️
nipype/utils/logger.py 58.46% <0.00%> (-27.70%) ⬇️
nipype/testing/fixtures.py 76.38% <0.00%> (-22.23%) ⬇️
nipype/interfaces/matlab.py 63.91% <0.00%> (-12.38%) ⬇️
nipype/interfaces/spm/base.py 57.66% <0.00%> (-9.67%) ⬇️
nipype/pkg_info.py 75.00% <0.00%> (-6.25%) ⬇️
... and 14 more

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 75b598a...7963e31. Read the comment docs.

@oesteban oesteban added this to the 1.5.0 milestone Mar 14, 2020
@oesteban
Copy link
Contributor Author

Tested locally 👍

@oesteban oesteban merged commit c37fcfb into nipy:master Mar 14, 2020
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.

1 participant