Skip to content

Commit 4925d25

Browse files
committed
fix: WM mask selection from dseg before generating report
Following suit of nipreps/fmriprep#2084 and inline with nipreps/niworkflows#500, this PR uses a more robust version of the extraction code. Resolves: #99 Depends: nipreps/niworkflows#500
1 parent 8f25fd2 commit 4925d25

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git+https://github.com/rwblair/sphinxcontrib-versioning.git@39b40b0b84bf872fc398
33
nbsphinx
44
niflow-nipype1-workflows ~= 0.0.1
55
nipype>=1.3.1
6-
niworkflows ~= 1.1.2
6+
niworkflows >=1.2.0rc4,<1.4
77
packaging
88
pydot>=1.2.3
99
pydotplus

sdcflows/workflows/outputs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def init_sdc_unwarp_report_wf(name='sdc_unwarp_report_wf', forcedsyn=False):
4343
"""
4444
from niworkflows.interfaces import SimpleBeforeAfter
4545
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
46-
from niworkflows.interfaces.images import extract_wm
46+
from niworkflows.utils.images import dseg_label as _dseg_label
4747

4848
DEFAULT_MEMORY_MIN_GB = 0.01
4949

@@ -56,8 +56,9 @@ def init_sdc_unwarp_report_wf(name='sdc_unwarp_report_wf', forcedsyn=False):
5656
dimension=3, float=True, interpolation='MultiLabel'),
5757
name='map_seg', mem_gb=0.3)
5858

59-
sel_wm = pe.Node(niu.Function(function=extract_wm), name='sel_wm',
59+
sel_wm = pe.Node(niu.Function(function=_dseg_label), name='sel_wm',
6060
mem_gb=DEFAULT_MEMORY_MIN_GB)
61+
sel_wm.inputs.label = 2
6162

6263
bold_rpt = pe.Node(SimpleBeforeAfter(), name='bold_rpt',
6364
mem_gb=0.1)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ install_requires =
2929
nibabel >=3.0.1
3030
niflow-nipype1-workflows ~= 0.0.1
3131
nipype >=1.3.1,<2.0
32-
niworkflows >=1.1.4,<1.3
32+
niworkflows >=1.2.0rc4,<1.4
3333
numpy
3434
pybids >= 0.9.2
3535
templateflow >=0.4

0 commit comments

Comments
 (0)