Skip to content

Commit 731666c

Browse files
committed
adding specific switch for correct_restore_brain_intensity_abcd nodeblock
1 parent 7523a5c commit 731666c

File tree

6 files changed

+15
-3
lines changed

6 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343
- Renamed `desc-ref_bold` created in this workflow to `desc-unifized_bold`.
4444
- `coregistration_prep_fmriprep` nodeblock now checks if `desc-unifized_bold` exists in the Resource Pool, if not it runs the `FSL-AFNI subworkflow` to create it.
4545
- Input `desc-brain_bold` to `desc-preproc_bold` for `sbref` generation nodeblock `coregistration_prep_vol`.
46+
- Introduced specific switch for `correct_restore_brain_intensity_abcd` nodeblock, enabling it by default only in `abcd-options` pre-config.
4647

4748
### Fixed
4849

CPAC/anat_preproc/anat_preproc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,9 +3161,8 @@ def fast_bias_field_correction(config=None, wf_name="fast_bias_field_correction"
31613161

31623162
@nodeblock(
31633163
name="correct_restore_brain_intensity_abcd",
3164-
config=["anatomical_preproc", "brain_extraction"],
3165-
option_key="using",
3166-
option_val="FreeSurfer-ABCD",
3164+
config=["anatomical_preproc", "brain_extraction", "FreeSurfer-ABCD"],
3165+
switch=["correct_restore_brain_intensity_abcd"],
31673166
inputs=[
31683167
(
31693168
"desc-preproc_T1w",

CPAC/pipeline/schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ def sanitize(filename):
638638
"regmask_path": Maybe(str),
639639
},
640640
"FreeSurfer-BET": {"T1w_brain_template_mask_ccs": Maybe(str)},
641+
"FreeSurfer-ABCD": {
642+
"correct_restore_brain_intensity_abcd": bool1_1,
643+
},
641644
},
642645
},
643646
"segmentation": {

CPAC/resources/configs/pipeline_config_abcd-options.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ anatomical_preproc:
8080
# this is a fork option
8181
using: [FreeSurfer-ABCD]
8282

83+
FreeSurfer-ABCD:
84+
correct_restore_brain_intensity_abcd: On
85+
8386
# Non-local means filtering via ANTs DenoiseImage
8487
non_local_means_filtering:
8588

CPAC/resources/configs/pipeline_config_blank.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,9 @@ anatomical_preproc:
419419
# niworkflows-ants registration mask (can be optional)
420420
regmask_path: /ants_template/oasis/T_template0_BrainCerebellumRegistrationMask.nii.gz
421421

422+
FreeSurfer-ABCD:
423+
correct_restore_brain_intensity_abcd: Off
424+
422425
run_t2: Off
423426

424427
# Bias field correction based on square root of T1w * T2w

CPAC/resources/configs/pipeline_config_default.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ anatomical_preproc:
484484
# Template to be used for FreeSurfer-BET brain extraction in CCS-options pipeline
485485
T1w_brain_template_mask_ccs: /ccs_template/MNI152_T1_1mm_first_brain_mask.nii.gz
486486

487+
FreeSurfer-ABCD:
488+
correct_restore_brain_intensity_abcd: Off
489+
487490

488491
segmentation:
489492

0 commit comments

Comments
 (0)