DICOM Sort Configuration
Standalone DICOM rename / reorganize via dcm2niix (habit sort-dicom).
This is not the full preprocessing pipeline; for resample / N4 / registration
see Preprocessing Configuration.
Schema: DicomSortConfig. Template:
config/dicom_sort/config_sort_dicom.yaml.
API reference: habit.core.dicom_sort.
Example configuration:
data_dir: ../../demo_data/dicom
out_dir: ../../demo_data/results/sorted_dicom
dcm2niix_path: ../../tools/bin/dcm2niix.exe
f: "subj_%n_%g_%x/%s_%d/%r_%o.dcm"
extra_args: []
Top-level fields
Field |
Default |
Description |
|---|---|---|
|
none (required) |
Input DICOM root; relative paths resolve against the YAML directory |
|
none (required) |
Output root for sorted files |
|
none (required*) |
dcm2niix |
|
|
Deprecated alias for |
|
|
Executable file or directory; omit to search |
|
|
Extra CLI tokens appended to the dcm2niix command |
|
|
If set, used as dcm2niix |
* Provide either f or filename_format.
Notes
Do not put path-like tokens in
fthat HABIT would treat as file paths; the loader intentionally skips path resolution for the-fpattern.On Windows lightweight installs,
tools/bin/dcm2niix.exeis the usual bundled binary.Command walkthrough: Preprocessing.