hcp — HCP-preprocessed inputs#
Schema: HCPConfig in src/thesis/core/config/validators.py. Describes the on-disk layout of an HCP-style subject directory.
Field |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Diffusion subdirectory relative to the subject’s |
|
|
|
BedpostX output subdirectory. Houses |
|
|
|
T1 image path relative to |
|
|
|
Optional T2 image path relative to |
|
|
|
Number of fibres modelled in BedpostX. Used to construct sample-file names. |
|
|
|
Brain-mask filename inside |
|
|
|
Full brain-mask path relative to |
Example#
hcp:
diffusion_dir: T1w/Diffusion
bedpostx_dir: T1w/Diffusion.bedpostX
t1_image: T1w/T1w_acpc_dc_restore_1.25.nii.gz
t2_image: null
n_fibers: 3
mask_name: nodif_brain_mask.nii.gz
mask_path: null # falls back to diffusion_dir/mask_name
Notes#
The
hcpworkflow tolerates either.niior.nii.gzformask_name; the helper picks whichever exists. The same tolerance applies tot1_image— the documented default ends in.nii, but the loader resolves whichever of.nii/.nii.gzis present on disk (hence the example below uses the.nii.gzform).For non-HCP-preprocessed data, run
thesis run -w preprocess -p <patient> -c preprocessfirst to produce the expected layout underdata/processed/<patient>/T1w/.The
tract_synthsegworkflow (ProbTrackX2 backend) consumeshcp.t1_imagefor the SynthSeg step.