@@ -57,6 +57,7 @@ def init_bold_wf(
5757 bold_series : list [str ],
5858 precomputed : dict = None ,
5959 fieldmap_id : str | None = None ,
60+ jacobian : bool = False ,
6061) -> pe .Workflow :
6162 """
6263 This workflow controls the functional preprocessing stages of *fMRIPrep*.
@@ -253,6 +254,7 @@ def init_bold_wf(
253254 bold_series = bold_series ,
254255 precomputed = precomputed ,
255256 fieldmap_id = fieldmap_id ,
257+ jacobian = jacobian ,
256258 omp_nthreads = omp_nthreads ,
257259 )
258260
@@ -292,6 +294,7 @@ def init_bold_wf(
292294 bold_native_wf = init_bold_native_wf (
293295 bold_series = bold_series ,
294296 fieldmap_id = fieldmap_id ,
297+ jacobian = jacobian ,
295298 omp_nthreads = omp_nthreads ,
296299 )
297300
@@ -383,7 +386,7 @@ def init_bold_wf(
383386 fieldmap_id = fieldmap_id if not multiecho else None ,
384387 omp_nthreads = omp_nthreads ,
385388 mem_gb = mem_gb ,
386- jacobian = 'fmap- jacobian' not in config . workflow . ignore ,
389+ jacobian = jacobian ,
387390 name = 'bold_anat_wf' ,
388391 )
389392 bold_anat_wf .inputs .inputnode .resolution = 'native'
@@ -443,7 +446,7 @@ def init_bold_wf(
443446 fieldmap_id = fieldmap_id if not multiecho else None ,
444447 omp_nthreads = omp_nthreads ,
445448 mem_gb = mem_gb ,
446- jacobian = 'fmap- jacobian' not in config . workflow . ignore ,
449+ jacobian = jacobian ,
447450 name = 'bold_std_wf' ,
448451 )
449452 ds_bold_std_wf = init_ds_volumes_wf (
@@ -550,7 +553,7 @@ def init_bold_wf(
550553 fieldmap_id = fieldmap_id if not multiecho else None ,
551554 omp_nthreads = omp_nthreads ,
552555 mem_gb = mem_gb ,
553- jacobian = 'fmap- jacobian' not in config . workflow . ignore ,
556+ jacobian = jacobian ,
554557 name = 'bold_MNI6_wf' ,
555558 )
556559
0 commit comments