validation — warped-ROI validation#
Schema: ValidationConfig in src/thesis/core/config/validators.py. Controls automatic post-warp QC for the hcp and meta-pipeline workflows.
Field |
Type |
Default |
Constraints |
Description |
|---|---|---|---|---|
|
|
|
— |
Run automated validation on warped ROI masks after ANTs transformation. |
|
|
|
|
Minimum non-zero voxels in a warped ROI mask. Fewer voxels raises |
|
|
|
|
Minimum absolute determinant of the affine 3×3 rotation/scale block. Below this the ROI is rejected as degenerate (prevents |
|
|
|
|
Lower bound for the warped-vs-original voxel-count ratio. Below this a warning is emitted. |
|
|
|
|
Upper bound for the warped-vs-original voxel-count ratio. Above this a warning is emitted. |
Example#
validation:
check_rois: true
min_voxels: 10
singularity_threshold: 1.0e-6
volume_ratio_min: 0.5
volume_ratio_max: 1.5
Per-patient overrides are useful when a specific subject has unusually small anatomy:
# config/patients/SMALL_ROI_PATIENT.yaml
validation:
min_voxels: 5
volume_ratio_min: 0.3
Notes#
The validator runs after the ANTs warp and before tractography, so a failure aborts the patient early with a clear error message rather than producing zero streamlines.
volume_ratio_minandvolume_ratio_maxonly emit warnings — they don’t fail the run.