@@ -1191,6 +1191,7 @@ def init_bold_grayords_wf(grayord_density, mem_gb, repetition_time, name="bold_g
1191
1191
from niworkflows .engine .workflows import LiterateWorkflow as Workflow
1192
1192
from niworkflows .interfaces .utility import KeySelect
1193
1193
1194
+ from ...interfaces .nibabel import ReorientImage
1194
1195
from ...interfaces .workbench import CiftiCreateDenseTimeseries
1195
1196
1196
1197
workflow = Workflow (name = name )
@@ -1224,10 +1225,17 @@ def init_bold_grayords_wf(grayord_density, mem_gb, repetition_time, name="bold_g
1224
1225
niu .Function (function = _split_surfaces , output_names = ["left_surface" , "right_surface" ]),
1225
1226
name = "split_surfaces" ,
1226
1227
)
1228
+
1229
+ reorient_data = pe .Node (ReorientImage (target_orientation = "LAS" ), name = "reorient_data" )
1230
+ reorient_labels = reorient_data .clone (name = "reorient_labels" )
1231
+
1227
1232
gen_cifti = pe .Node (CiftiCreateDenseTimeseries (timestep = repetition_time ), name = "gen_cifti" )
1228
- gen_cifti .inputs .volume_structure_labels = str (
1229
- tf .get ("MNI152NLin6Asym" , resolution = mni_density , atlas = "HCP" , suffix = "dseg" )
1230
- )
1233
+ # gen_cifti.inputs.roi_left = tf.api.get(
1234
+ # "fsLR", density=fslr_density, hemi="L", desc="nomedialwall", suffix="dparc"
1235
+ # )
1236
+ # gen_cifti.inputs.roi_right = tf.api.get(
1237
+ # "fsLR", density=fslr_density, hemi="R", desc="nomedialwall", suffix="dparc"
1238
+ # )
1231
1239
gen_cifti_metadata = pe .Node (
1232
1240
niu .Function (function = _gen_metadata , output_names = ["out_metadata" ]),
1233
1241
name = "gen_cifti_metadata" ,
@@ -1236,11 +1244,9 @@ def init_bold_grayords_wf(grayord_density, mem_gb, repetition_time, name="bold_g
1236
1244
1237
1245
# fmt: off
1238
1246
workflow .connect ([
1239
- (inputnode , gen_cifti , [
1240
- ('subcortical_volume' , 'volume_data' ),
1241
- ('subcortical_labels' , 'volume_structure_labels' )]),
1242
- (inputnode , split_surfaces , [
1243
- ('bold_fsLR' , 'in_surfaces' )]),
1247
+ (inputnode , reorient_data , [("subcortical_volume" , "in_file" )]),
1248
+ (inputnode , reorient_labels , [("subcortical_labels" , "in_file" )]),
1249
+ (inputnode , split_surfaces , [('bold_fsLR' , 'in_surfaces' )]),
1244
1250
(split_surfaces , gen_cifti , [
1245
1251
('left_surface' , 'left_metric' ),
1246
1252
('right_surface' , 'right_metric' )]),
0 commit comments