@@ -368,7 +368,7 @@ def init_single_subject_wf(subject_id):
368
368
369
369
# SDC Step 2: Manually add further estimators (e.g., fieldmap-less)
370
370
fmap_wf = init_fmap_preproc_wf (
371
- debug = config .execution .debug ,
371
+ debug = config .execution .debug is True ,
372
372
estimators = fmap_estimators ,
373
373
omp_nthreads = config .nipype .omp_nthreads ,
374
374
output_dir = str (output_dir ),
@@ -424,8 +424,6 @@ def init_single_subject_wf(subject_id):
424
424
)
425
425
426
426
if estimator .method == fm .EstimatorType .ANAT :
427
- from niworkflows .utils .connections import pop_file as _pop
428
- from sdcflows .interfaces .brainmask import BrainExtraction
429
427
from sdcflows .workflows .fit .syn import init_syn_preprocessing_wf
430
428
from ..interfaces .vectors import CheckGradientTable
431
429
@@ -436,6 +434,7 @@ def init_single_subject_wf(subject_id):
436
434
layout = config .execution .layout
437
435
syn_preprocessing_wf = init_syn_preprocessing_wf (
438
436
omp_nthreads = config .nipype .omp_nthreads ,
437
+ debug = config .execution .debug is True ,
439
438
auto_bold_nss = False ,
440
439
t1w_inversion = True ,
441
440
name = f"syn_preprocessing_{ estimator .bids_id } " ,
@@ -450,26 +449,21 @@ def init_single_subject_wf(subject_id):
450
449
b0_masks .inputs .in_bvec = [str (layout .get_bvec (s )) for s in sources ]
451
450
b0_masks .inputs .in_bval = [str (layout .get_bval (s )) for s in sources ]
452
451
453
- epi_brain = pe .Node (BrainExtraction (), name = f"epi_brain_{ estimator .bids_id } " )
454
-
455
452
# fmt:off
456
453
workflow .connect ([
457
454
(anat_preproc_wf , syn_preprocessing_wf , [
458
455
("outputnode.t1w_preproc" , "inputnode.in_anat" ),
459
456
("outputnode.t1w_mask" , "inputnode.mask_anat" ),
457
+ ("outputnode.std2anat_xfm" , "inputnode.std2anat_xfm" ),
460
458
]),
461
459
(b0_masks , syn_preprocessing_wf , [("b0_mask" , "inputnode.t_masks" )]),
462
460
(syn_preprocessing_wf , fmap_wf , [
463
461
("outputnode.epi_ref" , f"in_{ estimator .bids_id } .epi_ref" ),
462
+ ("outputnode.epi_mask" , f"in_{ estimator .bids_id } .epi_mask" ),
464
463
("outputnode.anat_ref" , f"in_{ estimator .bids_id } .anat_ref" ),
465
- ("outputnode.anat2epi_xfm" , f"in_{ estimator .bids_id } .anat2epi_xfm" ),
466
- ]),
467
- (syn_preprocessing_wf , epi_brain , [
468
- (("outputnode.epi_ref" , _pop ), "in_file" )]),
469
- (anat_preproc_wf , fmap_wf , [
470
- ("outputnode.std2anat_xfm" , f"in_{ estimator .bids_id } .std2anat_xfm" ),
464
+ ("outputnode.anat_mask" , f"in_{ estimator .bids_id } .anat_mask" ),
465
+ ("outputnode.sd_prior" , f"in_{ estimator .bids_id } .sd_prior" ),
471
466
]),
472
- (epi_brain , fmap_wf , [("out_mask" , f"in_{ estimator .bids_id } .epi_mask" )]),
473
467
])
474
468
# fmt:on
475
469
0 commit comments