Skip to content

Commit 3090f68

Browse files
committed
ENH: Add fmap-jacobian to ignore list, thread through workflows
1 parent fcdbb54 commit 3090f68

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

fmriprep/cli/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _slice_time_ref(value, parser):
285285
action="store",
286286
nargs="+",
287287
default=[],
288-
choices=["fieldmaps", "slicetiming", "sbref", "t2w", "flair"],
288+
choices=["fieldmaps", "slicetiming", "sbref", "t2w", "flair", "fmap-jacobian"],
289289
help="Ignore selected aspects of the input dataset to disable corresponding "
290290
"parts of the workflow (a space delimited list)",
291291
)

fmriprep/workflows/bold/apply.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def init_bold_volumetric_resample_wf(
1616
*,
1717
metadata: dict,
1818
mem_gb: dict[str, float],
19+
jacobian: bool,
1920
fieldmap_id: str | None = None,
2021
omp_nthreads: int = 1,
2122
name: str = 'bold_volumetric_resample_wf',
@@ -123,7 +124,7 @@ def init_bold_volumetric_resample_wf(
123124
boldref2target = pe.Node(niu.Merge(2), name='boldref2target', run_without_submitting=True)
124125
bold2target = pe.Node(niu.Merge(2), name='bold2target', run_without_submitting=True)
125126
resample = pe.Node(
126-
ResampleSeries(),
127+
ResampleSeries(jacobian=jacobian),
127128
name="resample",
128129
n_procs=omp_nthreads,
129130
mem_gb=mem_gb['resampled'],

fmriprep/workflows/bold/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ def init_bold_wf(
380380
fieldmap_id=fieldmap_id if not multiecho else None,
381381
omp_nthreads=omp_nthreads,
382382
mem_gb=mem_gb,
383+
jacobian='fmap-jacobian' not in config.workflow.ignore,
383384
name='bold_anat_wf',
384385
)
385386
bold_anat_wf.inputs.inputnode.resolution = "native"
@@ -437,6 +438,7 @@ def init_bold_wf(
437438
fieldmap_id=fieldmap_id if not multiecho else None,
438439
omp_nthreads=omp_nthreads,
439440
mem_gb=mem_gb,
441+
jacobian='fmap-jacobian' not in config.workflow.ignore,
440442
name='bold_std_wf',
441443
)
442444
ds_bold_std_wf = init_ds_volumes_wf(
@@ -521,6 +523,7 @@ def init_bold_wf(
521523
fieldmap_id=fieldmap_id if not multiecho else None,
522524
omp_nthreads=omp_nthreads,
523525
mem_gb=mem_gb,
526+
jacobian='fmap-jacobian' not in config.workflow.ignore,
524527
name='bold_MNI6_wf',
525528
)
526529

fmriprep/workflows/bold/fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def init_bold_native_wf(
838838

839839
# Resample to boldref
840840
boldref_bold = pe.Node(
841-
ResampleSeries(),
841+
ResampleSeries(jacobian="fmap-jacobian" not in config.workflow.ignore),
842842
name="boldref_bold",
843843
n_procs=omp_nthreads,
844844
mem_gb=mem_gb["resampled"],

0 commit comments

Comments
 (0)