Skip to content

Commit 4614c94

Browse files
committed
RF: anat_second_derivatives_wf -> ds_fs_segs_wf
1 parent 3701d43 commit 4614c94

File tree

1 file changed

+20
-47
lines changed

1 file changed

+20
-47
lines changed

smriprep/workflows/outputs.py

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,13 +1031,11 @@ def init_ds_anat_volumes_wf(
10311031
return workflow
10321032

10331033

1034-
def init_anat_second_derivatives_wf(
1034+
def init_ds_fs_segs_wf(
10351035
*,
10361036
bids_root: str,
10371037
output_dir: str,
1038-
cifti_output: ty.Literal['91k', '170k', False],
1039-
name='anat_second_derivatives_wf',
1040-
tpm_labels=BIDS_TISSUE_ORDER,
1038+
name='ds_fs_segs_wf',
10411039
):
10421040
"""
10431041
Set up a battery of datasinks to store derivatives in the right location.
@@ -1049,41 +1047,18 @@ def init_anat_second_derivatives_wf(
10491047
output_dir : :obj:`str`
10501048
Directory in which to save derivatives
10511049
name : :obj:`str`
1052-
Workflow name (default: anat_derivatives_wf)
1053-
tpm_labels : :obj:`tuple`
1054-
Tissue probability maps in order
1050+
Workflow name (default: ds_anat_segs_wf)
10551051
10561052
Inputs
10571053
------
1054+
anat_fs_aparc
1055+
FreeSurfer's aparc+aseg segmentation, in native anatomical space
1056+
anat_fs_aseg
1057+
FreeSurfer's aseg segmentation, in native anatomical space
1058+
source_files
1059+
List of input anatomical images
10581060
template
10591061
Template space and specifications
1060-
source_files
1061-
List of input T1w images
1062-
t1w_preproc
1063-
The T1w reference map, which is calculated as the average of bias-corrected
1064-
and preprocessed T1w images, defining the anatomical space.
1065-
t1w_mask
1066-
Mask of the ``t1w_preproc``
1067-
t1w_dseg
1068-
Segmentation in T1w space
1069-
t1w_tpms
1070-
Tissue probability maps in T1w space
1071-
anat2std_xfm
1072-
Nonlinear spatial transform to resample imaging data given in anatomical space
1073-
into standard space.
1074-
surfaces
1075-
GIFTI surfaces (gray/white boundary, midthickness, pial, inflated)
1076-
morphometrics
1077-
GIFTIs of cortical thickness, curvature, and sulcal depth
1078-
t1w_fs_aseg
1079-
FreeSurfer's aseg segmentation, in native T1w space
1080-
t1w_fs_aparc
1081-
FreeSurfer's aparc+aseg segmentation, in native T1w space
1082-
cifti_morph
1083-
Morphometric CIFTI-2 dscalar files
1084-
cifti_metadata
1085-
JSON files containing metadata dictionaries
1086-
10871062
"""
10881063
workflow = Workflow(name=name)
10891064

@@ -1092,8 +1067,8 @@ def init_anat_second_derivatives_wf(
10921067
fields=[
10931068
'template',
10941069
'source_files',
1095-
't1w_fs_aseg',
1096-
't1w_fs_aparc',
1070+
'anat_fs_aseg',
1071+
'anat_fs_aparc',
10971072
]
10981073
),
10991074
name='inputnode',
@@ -1103,27 +1078,25 @@ def init_anat_second_derivatives_wf(
11031078
raw_sources.inputs.bids_root = bids_root
11041079

11051080
# Parcellations
1106-
ds_t1w_fsaseg = pe.Node(
1081+
ds_anat_fsaseg = pe.Node(
11071082
DerivativesDataSink(base_directory=output_dir, desc='aseg', suffix='dseg', compress=True),
1108-
name='ds_t1w_fsaseg',
1083+
name='ds_anat_fsaseg',
11091084
run_without_submitting=True,
11101085
)
1111-
ds_t1w_fsparc = pe.Node(
1086+
ds_anat_fsparc = pe.Node(
11121087
DerivativesDataSink(
11131088
base_directory=output_dir, desc='aparcaseg', suffix='dseg', compress=True
11141089
),
1115-
name='ds_t1w_fsparc',
1090+
name='ds_anat_fsparc',
11161091
run_without_submitting=True,
11171092
)
11181093

1119-
# fmt:off
11201094
workflow.connect([
1121-
(inputnode, ds_t1w_fsaseg, [('t1w_fs_aseg', 'in_file'),
1122-
('source_files', 'source_file')]),
1123-
(inputnode, ds_t1w_fsparc, [('t1w_fs_aparc', 'in_file'),
1124-
('source_files', 'source_file')]),
1125-
])
1126-
# fmt:on
1095+
(inputnode, ds_anat_fsaseg, [('anat_fs_aseg', 'in_file'),
1096+
('source_files', 'source_file')]),
1097+
(inputnode, ds_anat_fsparc, [('anat_fs_aparc', 'in_file'),
1098+
('source_files', 'source_file')]),
1099+
]) # fmt:skip
11271100

11281101
return workflow
11291102

0 commit comments

Comments
 (0)