@@ -1031,13 +1031,11 @@ def init_ds_anat_volumes_wf(
1031
1031
return workflow
1032
1032
1033
1033
1034
- def init_anat_second_derivatives_wf (
1034
+ def init_ds_fs_segs_wf (
1035
1035
* ,
1036
1036
bids_root : str ,
1037
1037
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' ,
1041
1039
):
1042
1040
"""
1043
1041
Set up a battery of datasinks to store derivatives in the right location.
@@ -1049,41 +1047,18 @@ def init_anat_second_derivatives_wf(
1049
1047
output_dir : :obj:`str`
1050
1048
Directory in which to save derivatives
1051
1049
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)
1055
1051
1056
1052
Inputs
1057
1053
------
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
1058
1060
template
1059
1061
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
-
1087
1062
"""
1088
1063
workflow = Workflow (name = name )
1089
1064
@@ -1092,8 +1067,8 @@ def init_anat_second_derivatives_wf(
1092
1067
fields = [
1093
1068
'template' ,
1094
1069
'source_files' ,
1095
- 't1w_fs_aseg ' ,
1096
- 't1w_fs_aparc ' ,
1070
+ 'anat_fs_aseg ' ,
1071
+ 'anat_fs_aparc ' ,
1097
1072
]
1098
1073
),
1099
1074
name = 'inputnode' ,
@@ -1103,27 +1078,25 @@ def init_anat_second_derivatives_wf(
1103
1078
raw_sources .inputs .bids_root = bids_root
1104
1079
1105
1080
# Parcellations
1106
- ds_t1w_fsaseg = pe .Node (
1081
+ ds_anat_fsaseg = pe .Node (
1107
1082
DerivativesDataSink (base_directory = output_dir , desc = 'aseg' , suffix = 'dseg' , compress = True ),
1108
- name = 'ds_t1w_fsaseg ' ,
1083
+ name = 'ds_anat_fsaseg ' ,
1109
1084
run_without_submitting = True ,
1110
1085
)
1111
- ds_t1w_fsparc = pe .Node (
1086
+ ds_anat_fsparc = pe .Node (
1112
1087
DerivativesDataSink (
1113
1088
base_directory = output_dir , desc = 'aparcaseg' , suffix = 'dseg' , compress = True
1114
1089
),
1115
- name = 'ds_t1w_fsparc ' ,
1090
+ name = 'ds_anat_fsparc ' ,
1116
1091
run_without_submitting = True ,
1117
1092
)
1118
1093
1119
- # fmt:off
1120
1094
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
1127
1100
1128
1101
return workflow
1129
1102
0 commit comments