Skip to content

Commit ad65d0b

Browse files
tsaloeffigies
andauthored
Add metadata for motion parameters (#3245)
Closes #3231. ## Changes proposed in this pull request - Add metadata, including Units, for motion parameters (6 basic parameters and FD). - I included FD because it might be good to log the head radius that is used to calculate it at some point (e.g., if nipreps/nibabies#198 moves forward) ## Documentation that should be reviewed none --------- Co-authored-by: Chris Markiewicz <[email protected]>
1 parent d9f0a8e commit ad65d0b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

fmriprep/workflows/bold/confounds.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,31 @@ def init_bold_confs_wf(
413413
name='crowncc_metadata_fmt',
414414
)
415415

416+
# Combine all confounds metadata
416417
mrg_conf_metadata = pe.Node(
417-
niu.Merge(3), name='merge_confound_metadata', run_without_submitting=True
418+
niu.Merge(4), name='merge_confound_metadata', run_without_submitting=True
418419
)
420+
# Tissue mean time series
419421
mrg_conf_metadata.inputs.in3 = {label: {'Method': 'Mean'} for label in signals_class_labels}
422+
# Movement parameters
423+
mrg_conf_metadata.inputs.in4 = {
424+
'trans_x': {'Description': 'Translation along left-right axis.', 'Units': 'mm'},
425+
'trans_y': {'Description': 'Translation along anterior-posterior axis.', 'Units': 'mm'},
426+
'trans_z': {'Description': 'Translation along superior-inferior axis.', 'Units': 'mm'},
427+
'rot_x': {
428+
'Description': 'Rotation about left-right axis. Also known as "pitch".',
429+
'Units': 'rad',
430+
},
431+
'rot_y': {
432+
'Description': 'Rotation about anterior-posterior axis. Also known as "roll".',
433+
'Units': 'rad',
434+
},
435+
'rot_z': {
436+
'Description': 'Rotation about superior-inferior axis. Also known as "yaw".',
437+
'Units': 'rad',
438+
},
439+
'framewise_displacement': {'Units': 'mm'},
440+
}
420441
mrg_conf_metadata2 = pe.Node(
421442
DictMerge(), name='merge_confound_metadata2', run_without_submitting=True
422443
)

0 commit comments

Comments
 (0)