File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ def init_anat_preproc_wf(
100
100
spaces : SpatialReferences ,
101
101
precomputed : dict ,
102
102
omp_nthreads : int ,
103
+ flair : list = (), # Remove default after callers start passing it
103
104
debug : bool = False ,
104
105
sloppy : bool = False ,
105
106
cifti_output : ty .Literal ["91k" , "170k" , False ] = False ,
@@ -263,6 +264,7 @@ def init_anat_preproc_wf(
263
264
spaces = spaces ,
264
265
t1w = t1w ,
265
266
t2w = t2w ,
267
+ flair = flair ,
266
268
precomputed = precomputed ,
267
269
debug = debug ,
268
270
sloppy = sloppy ,
@@ -446,6 +448,7 @@ def init_anat_fit_wf(
446
448
spaces : SpatialReferences ,
447
449
precomputed : dict ,
448
450
omp_nthreads : int ,
451
+ flair : list = (), # Remove default after callers start passing it
449
452
debug : bool = False ,
450
453
sloppy : bool = False ,
451
454
name = "anat_fit_wf" ,
@@ -480,6 +483,7 @@ def init_anat_fit_wf(
480
483
msm_sulc=True,
481
484
t1w=['t1w.nii.gz'],
482
485
t2w=['t2w.nii.gz'],
486
+ flair=[],
483
487
skull_strip_mode='force',
484
488
skull_strip_template=Reference('OASIS30ANTs'),
485
489
spaces=SpatialReferences(spaces=['MNI152NLin2009cAsym', 'fsaverage5']),
@@ -1033,6 +1037,11 @@ def init_anat_fit_wf(
1033
1037
hires = hires ,
1034
1038
precomputed = precomputed ,
1035
1039
)
1040
+ if t2w or flair :
1041
+ t2w_or_flair = "T2-weighted" if t2w else "FLAIR"
1042
+ surface_recon_wf .__desc__ += f"""\
1043
+ A { t2w_or_flair } image was used to improve pial surface refinement.
1044
+ """
1036
1045
1037
1046
# fmt:off
1038
1047
workflow .connect ([
Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ def init_single_subject_wf(
331
331
subject_data = {
332
332
"t1w" : ["/completely/made/up/path/sub-01_T1w.nii.gz" ],
333
333
"t2w" : [],
334
+ "flair" : [],
334
335
}
335
336
else :
336
337
subject_data = collect_data (layout , subject_id , bids_filters = bids_filters )[0 ]
@@ -427,6 +428,7 @@ def init_single_subject_wf(
427
428
name = "anat_preproc_wf" ,
428
429
t1w = subject_data ["t1w" ],
429
430
t2w = subject_data ["t2w" ],
431
+ flair = subject_data ["flair" ],
430
432
omp_nthreads = omp_nthreads ,
431
433
output_dir = output_dir ,
432
434
skull_strip_fixed_seed = skull_strip_fixed_seed ,
You can’t perform that action at this time.
0 commit comments