@@ -128,13 +128,14 @@ def init_single_subject_wf(subject_id: str):
128
128
from smriprep .workflows .outputs import (
129
129
init_ds_anat_volumes_wf ,
130
130
init_ds_grayord_metrics_wf ,
131
+ init_ds_surfaces_wf ,
131
132
init_template_iterator_wf ,
132
133
)
133
134
from smriprep .workflows .surfaces import (
134
135
init_gifti_morphometrics_wf ,
135
136
init_hcp_morphometrics_wf ,
136
137
init_morph_grayords_wf ,
137
- init_resample_midthickness_wf ,
138
+ init_resample_surfaces_wf ,
138
139
)
139
140
140
141
from aslprep .interfaces .bids import BIDSDataGrabber
@@ -422,7 +423,8 @@ def init_single_subject_wf(subject_id: str):
422
423
grayord_density = config .workflow .cifti_output ,
423
424
omp_nthreads = omp_nthreads ,
424
425
)
425
- resample_midthickness_wf = init_resample_midthickness_wf (
426
+ resample_surfaces_wf = init_resample_surfaces_wf (
427
+ surfaces = ['white' , 'pial' , 'midthickness' ],
426
428
grayord_density = config .workflow .cifti_output ,
427
429
)
428
430
ds_grayord_metrics_wf = init_ds_grayord_metrics_wf (
@@ -431,6 +433,15 @@ def init_single_subject_wf(subject_id: str):
431
433
metrics = ['curv' , 'thickness' , 'sulc' ],
432
434
cifti_output = config .workflow .cifti_output ,
433
435
)
436
+ ds_fsLR_surfaces_wf = init_ds_surfaces_wf (
437
+ output_dir = aslprep_dir ,
438
+ surfaces = ['white' , 'pial' , 'midthickness' ],
439
+ entities = {
440
+ 'space' : 'fsLR' ,
441
+ 'density' : '32k' if config .workflow .cifti_output == '91k' else '59k' ,
442
+ },
443
+ name = 'ds_fsLR_surfaces_wf' ,
444
+ )
434
445
435
446
workflow .connect ([
436
447
(anat_fit_wf , curv_wf , [
@@ -446,7 +457,9 @@ def init_single_subject_wf(subject_id: str):
446
457
(curv_wf , hcp_morphometrics_wf , [
447
458
('outputnode.curv' , 'inputnode.curv' ),
448
459
]),
449
- (anat_fit_wf , resample_midthickness_wf , [
460
+ (anat_fit_wf , resample_surfaces_wf , [
461
+ ('outputnode.white' , 'inputnode.white' ),
462
+ ('outputnode.pial' , 'inputnode.pial' ),
450
463
('outputnode.midthickness' , 'inputnode.midthickness' ),
451
464
(
452
465
f"outputnode.sphere_reg_{ 'msm' if msm_sulc else 'fsLR' } " ,
@@ -466,12 +479,15 @@ def init_single_subject_wf(subject_id: str):
466
479
('outputnode.sulc' , 'inputnode.sulc' ),
467
480
('outputnode.roi' , 'inputnode.roi' ),
468
481
]),
469
- (resample_midthickness_wf , morph_grayords_wf , [
482
+ (resample_surfaces_wf , morph_grayords_wf , [
470
483
('outputnode.midthickness_fsLR' , 'inputnode.midthickness_fsLR' ),
471
484
]),
472
485
(anat_fit_wf , ds_grayord_metrics_wf , [
473
486
('outputnode.t1w_valid_list' , 'inputnode.source_files' ),
474
487
]),
488
+ (anat_fit_wf , ds_fsLR_surfaces_wf , [
489
+ ('outputnode.t1w_valid_list' , 'inputnode.source_files' ),
490
+ ]),
475
491
(morph_grayords_wf , ds_grayord_metrics_wf , [
476
492
('outputnode.curv_fsLR' , 'inputnode.curv' ),
477
493
('outputnode.curv_metadata' , 'inputnode.curv_metadata' ),
@@ -480,6 +496,11 @@ def init_single_subject_wf(subject_id: str):
480
496
('outputnode.sulc_fsLR' , 'inputnode.sulc' ),
481
497
('outputnode.sulc_metadata' , 'inputnode.sulc_metadata' ),
482
498
]),
499
+ (resample_surfaces_wf , ds_fsLR_surfaces_wf , [
500
+ ('outputnode.white_fsLR' , 'inputnode.white' ),
501
+ ('outputnode.pial_fsLR' , 'inputnode.pial' ),
502
+ ('outputnode.midthickness_fsLR' , 'inputnode.midthickness' ),
503
+ ]),
483
504
]) # fmt:skip
484
505
485
506
if config .workflow .anat_only :
@@ -713,7 +734,7 @@ def init_single_subject_wf(subject_id: str):
713
734
(select_MNI6_xfm , asl_wf , [('anat2std_xfm' , 'inputnode.anat2mni6_xfm' )]),
714
735
(select_MNI6_tpl , asl_wf , [('brain_mask' , 'inputnode.mni6_mask' )]),
715
736
(hcp_morphometrics_wf , asl_wf , [('outputnode.roi' , 'inputnode.cortex_mask' )]),
716
- (resample_midthickness_wf , asl_wf , [
737
+ (resample_surfaces_wf , asl_wf , [
717
738
('outputnode.midthickness_fsLR' , 'inputnode.midthickness_fsLR' ),
718
739
]),
719
740
]) # fmt:skip
0 commit comments