Skip to content

Commit 6d3138f

Browse files
committed
added SliceEncodingDirection to stc
1 parent e706408 commit 6d3138f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fmriprep/workflows/bold/stc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ def init_bold_stc_wf(metadata, name='bold_stc_wf'):
6565

6666
LOGGER.log(25, 'Slice-timing correction will be included.')
6767

68+
6869
# It would be good to fingerprint memory use of afni.TShift
6970
slice_timing_correction = pe.Node(
7071
afni.TShift(outputtype='NIFTI_GZ',
7172
tr='{}s'.format(metadata["RepetitionTime"]),
7273
slice_timing=metadata['SliceTiming']),
7374
name='slice_timing_correction')
75+
if 'SliceEncodingDirection' in metadata:
76+
slice_timing_correction.inputs.slice_encoding_direction = metadata['SliceEncodingDirection']
7477

7578
copy_xform = pe.Node(CopyXForm(), name='copy_xform', mem_gb=0.1)
7679

0 commit comments

Comments
 (0)