Skip to content

Commit bbeb265

Browse files
committed
ENH: Use available transform, set volumetric sigma as parameter
1 parent 10f1f45 commit bbeb265

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nibabies/workflows/bold/alignment.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from nibabies.interfaces.nibabel import MergeROIs
66

77

8-
def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
8+
def init_subcortical_mni_alignment_wf(*, vol_sigma=0.8, name='subcortical_mni_alignment_wf'):
99
"""
1010
Align individual subcortical structures into MNI space.
1111
@@ -18,6 +18,8 @@ def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
1818
----------
1919
name : :obj:`str`
2020
Name of the workflow
21+
vol_sigma : :obj:`float`
22+
The sigma for the gaussian volume smoothing kernel, in mm
2123
2224
Inputs
2325
------
@@ -142,7 +144,7 @@ def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
142144
name='resample',
143145
)
144146
smooth = pe.MapNode(
145-
CiftiSmooth(direction="COLUMN", fix_zeros_vol=True, sigma_surf=0, sigma_vol=0.8),
147+
CiftiSmooth(direction="COLUMN", fix_zeros_vol=True, sigma_surf=0, sigma_vol=vol_sigma),
146148
iterfield=["in_file"],
147149
name="smooth"
148150
)
@@ -166,7 +168,8 @@ def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
166168
workflow.connect([
167169
(inputnode, applyxfm_atlas, [
168170
("bold_file", "in_file"),
169-
("atlas_roi", "reference")]),
171+
("atlas_roi", "reference"),
172+
("atlas_xfm", "in_matrix_file")]),
170173
(inputnode, vol_resample, [
171174
("bold_roi", "in_file"),
172175
("atlas_xfm", "affine"),

0 commit comments

Comments
 (0)