5
5
from nibabies .interfaces .nibabel import MergeROIs
6
6
7
7
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' ):
9
9
"""
10
10
Align individual subcortical structures into MNI space.
11
11
@@ -18,6 +18,8 @@ def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
18
18
----------
19
19
name : :obj:`str`
20
20
Name of the workflow
21
+ vol_sigma : :obj:`float`
22
+ The sigma for the gaussian volume smoothing kernel, in mm
21
23
22
24
Inputs
23
25
------
@@ -142,7 +144,7 @@ def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
142
144
name = 'resample' ,
143
145
)
144
146
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 ),
146
148
iterfield = ["in_file" ],
147
149
name = "smooth"
148
150
)
@@ -166,7 +168,8 @@ def init_subcortical_mni_alignment_wf(*, name='subcortical_mni_alignment_wf'):
166
168
workflow .connect ([
167
169
(inputnode , applyxfm_atlas , [
168
170
("bold_file" , "in_file" ),
169
- ("atlas_roi" , "reference" )]),
171
+ ("atlas_roi" , "reference" ),
172
+ ("atlas_xfm" , "in_matrix_file" )]),
170
173
(inputnode , vol_resample , [
171
174
("bold_roi" , "in_file" ),
172
175
("atlas_xfm" , "affine" ),
0 commit comments