Skip to content

Commit e5ba0f2

Browse files
💡 Update comments based on default preconfig
1 parent 64d875e commit e5ba0f2

13 files changed

+55
-15
lines changed

CPAC/resources/configs/pipeline_config_anat-only.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ registration_workflows:
9898
boundary_based_registration:
9999

100100
# this is a fork point
101-
# run: [On, Off] - this will run both and fork the pipeline
101+
# run: [On, Off, fallback] - this will run both and fork the pipeline
102+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
102103
run: [Off]
103104

104105
func_registration_to_template:

CPAC/resources/configs/pipeline_config_benchmark-ANTS.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ registration_workflows:
109109
boundary_based_registration:
110110

111111
# this is a fork point
112-
# run: [On, Off] - this will run both and fork the pipeline
112+
# run: [On, Off, fallback] - this will run both and fork the pipeline
113+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
113114
run: [On]
114115

115116
func_registration_to_template:

CPAC/resources/configs/pipeline_config_benchmark-FNIRT.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ registration_workflows:
126126
boundary_based_registration:
127127

128128
# this is a fork point
129-
# run: [On, Off] - this will run both and fork the pipeline
129+
# run: [On, Off, fallback] - this will run both and fork the pipeline
130+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
130131
run: [On]
131132

132133
func_registration_to_template:

CPAC/resources/configs/pipeline_config_blank.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,28 @@ segmentation:
522522
WM_label: [2, 41]
523523

524524
registration_workflows:
525+
526+
# Runtime quality checks
525527
guardrails:
528+
529+
# Minimum QC values to allow a run to complete post-registration
530+
# Set any metric empty (like "Dice:") or to None to disable that guardrail
531+
# Default thresholds adopted from XCP-Engine
532+
# (https://github.com/PennLINC/xcpEngine/blob/397ab6cf/designs/cbf_all.dsn#L66)
526533
thresholds:
527534
Dice:
528535
Jaccard:
529536
CrossCorr:
530537
Coverage:
538+
539+
# If this option is turned on and best_of is set to 1, any registration step that falls below the specified thresholds will retry with an incremented seed
531540
retry_on_first_failure: Off
541+
542+
# If this number is > 1, C-PAC will run that many iterations of each registration calculation and choose the registration with the smallest difference from 1 across all specified thresholds
543+
# If this number ≠ 1, the retry_on_first_failure option will have no effect
544+
# Must be at least 1
532545
best_of: 1
546+
533547
anatomical_registration:
534548
run: Off
535549
registration:
@@ -695,7 +709,8 @@ registration_workflows:
695709
boundary_based_registration:
696710

697711
# this is a fork point
698-
# run: [On, Off] - this will run both and fork the pipeline
712+
# run: [On, Off, fallback] - this will run both and fork the pipeline
713+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
699714
run: [Off]
700715

701716
# reference for boundary based registration
@@ -1199,8 +1214,7 @@ functional_preproc:
11991214
# this is a fork point
12001215
# run: [On, Off] - this will run both and fork the pipeline
12011216
run: [Off]
1202-
1203-
space: 'native'
1217+
space: native
12041218

12051219
nuisance_corrections:
12061220
2-nuisance_regression:

CPAC/resources/configs/pipeline_config_ccs-options.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ registration_workflows:
126126
boundary_based_registration:
127127

128128
# this is a fork point
129-
# run: [On, Off] - this will run both and fork the pipeline
129+
# run: [On, Off, fallback] - this will run both and fork the pipeline
130+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
130131
run: [On]
131132

132133
func_registration_to_template:

CPAC/resources/configs/pipeline_config_fmriprep-options.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ registration_workflows:
264264
boundary_based_registration:
265265

266266
# this is a fork point
267-
# run: [On, Off] - this will run both and fork the pipeline
267+
# run: [On, Off, fallback] - this will run both and fork the pipeline
268+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
268269
run: [On]
269270

270271
# reference for boundary based registration

CPAC/resources/configs/pipeline_config_ndmg.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ registration_workflows:
7474
boundary_based_registration:
7575

7676
# this is a fork point
77-
# run: [On, Off] - this will run both and fork the pipeline
77+
# run: [On, Off, fallback] - this will run both and fork the pipeline
78+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
7879
run: [On]
7980

8081
func_registration_to_template:

CPAC/resources/configs/pipeline_config_rbc-options.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,23 @@ pipeline_setup:
3131
random_seed: 77742777
3232

3333
registration_workflows:
34+
35+
# Runtime quality checks
3436
guardrails:
37+
38+
# Minimum QC values to allow a run to complete post-registration
39+
# Set any metric empty (like "Dice:") or to None to disable that guardrail
40+
# Default thresholds adopted from XCP-Engine
41+
# (https://github.com/PennLINC/xcpEngine/blob/397ab6cf/designs/cbf_all.dsn#L66)
3542
thresholds:
3643
Dice: 0.8
3744
Jaccard: 0.9
3845
CrossCorr: 0.7
3946
Coverage: 0.8
47+
48+
# If this option is turned on and best_of is set to 1, any registration step that falls below the specified thresholds will retry with an incremented seed
4049
retry_on_first_failure: On
50+
4151
anatomical_registration:
4252

4353
# Template to be used during registration.
@@ -55,7 +65,12 @@ registration_workflows:
5565
functional_registration:
5666
coregistration:
5767
boundary_based_registration:
68+
69+
# this is a fork point
70+
# run: [On, Off, fallback] - this will run both and fork the pipeline
71+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
5872
run: [fallback]
73+
5974
func_registration_to_template:
6075
output_resolution:
6176

@@ -120,7 +135,7 @@ functional_preproc:
120135
# this is a fork point
121136
# run: [On, Off] - this will run both and fork the pipeline
122137
run: [On]
123-
space: 'template'
138+
space: template
124139

125140
nuisance_corrections:
126141
2-nuisance_regression:

CPAC/resources/configs/pipeline_config_regtest-1.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ registration_workflows:
109109
boundary_based_registration:
110110

111111
# this is a fork point
112-
# run: [On, Off] - this will run both and fork the pipeline
112+
# run: [On, Off, fallback] - this will run both and fork the pipeline
113+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
113114
run: [On]
114115

115116
func_registration_to_template:

CPAC/resources/configs/pipeline_config_regtest-2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ registration_workflows:
130130
boundary_based_registration:
131131

132132
# this is a fork point
133-
# run: [On, Off] - this will run both and fork the pipeline
133+
# run: [On, Off, fallback] - this will run both and fork the pipeline
134+
# if 'fallback' is one of the selected options, BBR will run and, if its output fails quality_thresholds, the pipeline will fallback to BBR's input image
134135
run: [On]
135136

136137
func_registration_to_template:

0 commit comments

Comments
 (0)