Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata for motion parameters #3245

Merged
merged 7 commits into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion fmriprep/workflows/bold/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,31 @@ def init_bold_confs_wf(
name='crowncc_metadata_fmt',
)

# Combine all confounds metadata
mrg_conf_metadata = pe.Node(
niu.Merge(3), name='merge_confound_metadata', run_without_submitting=True
niu.Merge(4), name='merge_confound_metadata', run_without_submitting=True
)
# Tissue mean time series
mrg_conf_metadata.inputs.in3 = {label: {'Method': 'Mean'} for label in signals_class_labels}
# Movement parameters
mrg_conf_metadata.inputs.in4 = {
'trans_x': {'Description': 'Translation along left-right axis.', 'Units': 'mm'},
'trans_y': {'Description': 'Translation along anterior-posterior axis.', 'Units': 'mm'},
'trans_z': {'Description': 'Translation along superior-inferior axis.', 'Units': 'mm'},
'rot_x': {
'Description': 'Rotation about left-right axis. Also known as "pitch".',
'Units': 'rad',
},
'rot_y': {
'Description': 'Rotation about anterior-posterior axis. Also known as "roll".',
'Units': 'rad',
},
'rot_z': {
'Description': 'Rotation about superior-inferior axis. Also known as "yaw".',
'Units': 'rad',
},
'framewise_displacement': {'Units': 'mm'},
}
mrg_conf_metadata2 = pe.Node(
DictMerge(), name='merge_confound_metadata2', run_without_submitting=True
)
Expand Down