@@ -604,6 +604,7 @@ def init_single_subject_wf(
604
604
omp_nthreads = omp_nthreads ,
605
605
output_dir = output_dir ,
606
606
subject = subject_id ,
607
+ sd_prior = False , # No priors for infants yet
607
608
)
608
609
fmap_wf .__desc__ = f"""
609
610
@@ -618,17 +619,18 @@ def init_single_subject_wf(
618
619
if node .split ('.' )[- 1 ].startswith ('ds_' ):
619
620
fmap_wf .get_node (node ).interface .out_path_base = ''
620
621
621
- fmap_select_std = pe .Node (
622
- KeySelect (fields = ['std2anat_xfm' ], key = 'MNI152NLin2009cAsym' ),
623
- name = 'fmap_select_std' ,
624
- run_without_submitting = True ,
625
- )
626
- if any (estimator .method == fm .EstimatorType .ANAT for estimator in fmap_estimators ):
627
- workflow .connect ([
628
- (anat_fit_wf , fmap_select_std , [
629
- ('outputnode.std2anat_xfm' , 'std2anat_xfm' ),
630
- ('outputnode.template' , 'keys' )]),
631
- ]) # fmt:skip
622
+ # MG: No prior is used ATM, so no need for xfm
623
+ # fmap_select_std = pe.Node(
624
+ # KeySelect(fields=['std2anat_xfm'], key='MNI152NLin2009cAsym'),
625
+ # name='fmap_select_std',
626
+ # run_without_submitting=True,
627
+ # )
628
+ # if any(estimator.method == fm.EstimatorType.ANAT for estimator in fmap_estimators):
629
+ # workflow.connect([
630
+ # (anat_fit_wf, fmap_select_std, [
631
+ # ('outputnode.std2anat_xfm', 'std2anat_xfm'),
632
+ # ('outputnode.template', 'keys')]),
633
+ # ]) # fmt:skip
632
634
633
635
for estimator in fmap_estimators :
634
636
config .loggers .workflow .info (
@@ -663,6 +665,7 @@ def init_single_subject_wf(
663
665
debug = config .execution .sloppy ,
664
666
auto_bold_nss = True ,
665
667
t1w_inversion = False ,
668
+ sd_prior = False ,
666
669
name = f'syn_preprocessing_{ estimator .bids_id } ' ,
667
670
)
668
671
syn_preprocessing_wf .inputs .inputnode .in_epis = sources
@@ -673,9 +676,10 @@ def init_single_subject_wf(
673
676
('outputnode.anat_preproc' , 'inputnode.in_anat' ),
674
677
('outputnode.anat_mask' , 'inputnode.mask_anat' ),
675
678
]),
676
- (fmap_select_std , syn_preprocessing_wf , [
677
- ('std2anat_xfm' , 'inputnode.std2anat_xfm' ),
678
- ]),
679
+ # MG: No prior is used ATM, so no need for xfm
680
+ # (fmap_select_std, syn_preprocessing_wf, [
681
+ # ('std2anat_xfm', 'inputnode.std2anat_xfm'),
682
+ # ]),
679
683
(syn_preprocessing_wf , fmap_wf , [
680
684
('outputnode.epi_ref' , f'in_{ estimator .bids_id } .epi_ref' ),
681
685
('outputnode.epi_mask' , f'in_{ estimator .bids_id } .epi_mask' ),
@@ -920,6 +924,7 @@ def map_fieldmap_estimation(
920
924
fmapless = bool (use_syn ) or ignore_fieldmaps and force_syn ,
921
925
force_fmapless = force_syn or ignore_fieldmaps and use_syn ,
922
926
bids_filters = filters ,
927
+ anat_suffix = ['T1w' , 'T2w' ],
923
928
)
924
929
925
930
if not fmap_estimators :
@@ -933,12 +938,16 @@ def map_fieldmap_estimation(
933
938
raise ValueError (message )
934
939
return [], {}
935
940
936
- if ignore_fieldmaps and any (f .method == fm .EstimatorType .ANAT for f in fmap_estimators ):
937
- config .loggers .workflow .info (
938
- 'Option "--ignore fieldmaps" was set, but either "--use-syn-sdc" '
939
- 'or "--force-syn" were given, so fieldmap-less estimation will be executed.'
940
- )
941
- fmap_estimators = [f for f in fmap_estimators if f .method == fm .EstimatorType .ANAT ]
941
+ if ignore_fieldmaps :
942
+ if any (f .method == fm .EstimatorType .ANAT for f in fmap_estimators ):
943
+ config .loggers .workflow .info (
944
+ 'Option "--ignore fieldmaps" was set, but either "--use-syn-sdc" '
945
+ 'or "--force-syn" were given, so fieldmap-less estimation will be executed.'
946
+ )
947
+ fmap_estimators = [f for f in fmap_estimators if f .method == fm .EstimatorType .ANAT ]
948
+ else :
949
+ config .loggers .workflow .info ('Ignoring fieldmaps - no estimators will be used.' )
950
+ return [], {}
942
951
943
952
# Pare down estimators to those that are actually used
944
953
# If fmap_estimators == [], all loops/comprehensions terminate immediately
0 commit comments