Skip to content

Commit 1a6c9dc

Browse files
committed
🚚 ref_mask_res-2 and T1w_template_res-2 fields are moved out of registration and into surface.
1 parent 61ad414 commit 1a6c9dc

File tree

6 files changed

+23
-24
lines changed

6 files changed

+23
-24
lines changed

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- Moved `pygraphviz` from requirements to `graphviz` optional dependencies group.
3131
- Automatically tag untagged `subject_id` and `unique_id` as `!!str` when loading data config files.
3232
- Made orientation configurable (was hard-coded as "RPI").
33+
- Moved `ref_mask_res_2` and `T1w_template_res-2` fields from registration into surface under `abcd_prefreesurfer_prep`.
3334

3435
### Fixed
3536

‎CPAC/pipeline/schema.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,6 @@ def sanitize(filename):
712712
"interpolation": In({"trilinear", "sinc", "spline"}),
713713
"identity_matrix": Maybe(str),
714714
"ref_mask": Maybe(str),
715-
"ref_mask_res-2": Maybe(str),
716-
"T1w_template_res-2": Maybe(str),
717715
},
718716
},
719717
"overwrite_transform": {
@@ -816,6 +814,8 @@ def sanitize(filename):
816814
"surface_analysis": {
817815
"abcd_prefreesurfer_prep": {
818816
"run": bool1_1,
817+
"ref_mask_res-2": Maybe(str),
818+
"T1w_template_res-2": Maybe(str),
819819
},
820820
"freesurfer": {
821821
"run_reconall": bool1_1,

‎CPAC/resources/configs/pipeline_config_abcd-options.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ surface_analysis:
3131
# Run freesurfer_abcd_preproc to obtain preprocessed T1w for reconall
3232
abcd_prefreesurfer_prep:
3333
run: On
34+
35+
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
36+
ref_mask_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm_brain_mask_dil.nii.gz
37+
38+
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
39+
T1w_template_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm.nii.gz
3440

3541
# Will run Freesurfer for surface-based analysis. Will output traditional Freesurfer derivatives.
3642
# If you wish to employ Freesurfer outputs for brain masking or tissue segmentation in the voxel-based pipeline,
@@ -102,13 +108,6 @@ registration_workflows:
102108
anatomical_registration:
103109
run: On
104110
registration:
105-
FSL-FNIRT:
106-
107-
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
108-
ref_mask_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm_brain_mask_dil.nii.gz
109-
110-
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
111-
T1w_template_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm.nii.gz
112111

113112
# option parameters
114113
ANTs:

‎CPAC/resources/configs/pipeline_config_abcd-prep.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ surface_analysis:
3131
# Run freesurfer_abcd_preproc to obtain preprocessed T1w for reconall
3232
abcd_prefreesurfer_prep:
3333
run: On
34+
35+
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
36+
ref_mask_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm_brain_mask_dil.nii.gz
37+
38+
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
39+
T1w_template_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm.nii.gz
3440

3541
anatomical_preproc:
3642
run: On
@@ -72,13 +78,6 @@ anatomical_preproc:
7278
registration_workflows:
7379
anatomical_registration:
7480
registration:
75-
FSL-FNIRT:
76-
77-
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
78-
ref_mask_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm_brain_mask_dil.nii.gz
79-
80-
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
81-
T1w_template_res-2: /opt/dcan-tools/pipeline/global/templates/MNI152_T1_2mm.nii.gz
8281

8382
# option parameters
8483
ANTs:

‎CPAC/resources/configs/pipeline_config_blank.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ surface_analysis:
209209
abcd_prefreesurfer_prep:
210210
run: Off
211211

212+
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
213+
ref_mask_res-2: $FSLDIR/data/standard/MNI152_T1_2mm_brain_mask_dil.nii.gz
214+
215+
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
216+
T1w_template_res-2: $FSLDIR/data/standard/MNI152_T1_2mm.nii.gz
217+
212218
# Will run Freesurfer for surface-based analysis. Will output traditional Freesurfer derivatives.
213219
# If you wish to employ Freesurfer outputs for brain masking or tissue segmentation in the voxel-based pipeline,
214220
# select those 'Freesurfer-' labeled options further below in anatomical_preproc.
@@ -580,12 +586,6 @@ registration_workflows:
580586
# It is for monkey pipeline specifically.
581587
FNIRT_T1w_template:
582588

583-
# Reference mask with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
584-
ref_mask_res-2: $FSLDIR/data/standard/MNI152_T1_2mm_brain_mask_dil.nii.gz
585-
586-
# Template with 2mm resolution to be used during FNIRT-based brain extraction in ABCD-options pipeline.
587-
T1w_template_res-2: $FSLDIR/data/standard/MNI152_T1_2mm.nii.gz
588-
589589
# Configuration file to be used by FSL to set FNIRT parameters.
590590
# It is not necessary to change this path unless you intend to use custom FNIRT parameters or a non-standard template.
591591
fnirt_config: T1_2_MNI152_2mm

‎CPAC/resources/cpac_templates.csv‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ T1w-template-symmetric,"voxel_mirrored_homotopic_connectivity, symmetric_registr
3131
T1w-template-symmetric-deriv,"voxel_mirrored_homotopic_connectivity, symmetric_registration, T1w_template_symmetric_funcreg","Symmetric version of the T1w-based whole-head template, resampled to the desired functional derivative resolution","registration_workflows, functional_registration, func_registration_to_template, output_resolution, func_derivative_outputs"
3232
T1w-template-symmetric-for-resample,"voxel_mirrored_homotopic_connectivity, symmetric_registration, T1w_template_symmetric_for_resample",,
3333
template-ref-mask,"registration_workflows, anatomical_registration, registration, FSL-FNIRT, ref_mask",,"registration_workflows, anatomical_registration, resolution_for_anat"
34-
template-ref-mask-res-2,"registration_workflows, anatomical_registration, registration, FSL-FNIRT, ref_mask_res-2",,
35-
T1w-template-res-2,"registration_workflows, anatomical_registration, registration, FSL-FNIRT, T1w_template_res-2",,
34+
template-ref-mask-res-2,"surface_analysis, abcd_prefreesurfer_prep, ref_mask_res-2",,
35+
T1w-template-res-2,"surface_analysis, abcd_prefreesurfer_prep, T1w_template_res-2",,
3636
template-specification-file,"network_centrality, template_specification_file",Binary ROI mask for network centrality calculations,
3737
unet-model,"anatomical_preproc, brain_extraction, UNet, unet_model",,
3838
WM-path,"segmentation, tissue_segmentation, FSL-FAST, use_priors, WM_path",Template-space WM tissue prior,

0 commit comments

Comments
 (0)