recon_all
tit.pre.recon_all ¶
FreeSurfer recon-all wrapper for cortical surface reconstruction.
This module provides a wrapper around FreeSurfer's recon-all command
for automated cortical reconstruction and segmentation.
run_subcortical_segmentations ¶
run_subcortical_segmentations(project_dir: str, subject_id: str, *, logger, runner: CommandRunner | None = None) -> None
Run thalamic nuclei and hippocampal subfield segmentations standalone.
Resolves the FreeSurfer subjects directory from the project layout and delegates to the internal segmentation runner. Intended for cases where recon-all has already completed and only the subcortical step needs to be (re-)run.
Parameters¶
project_dir : str
BIDS project root.
subject_id : str
Subject identifier without the sub- prefix.
logger : logging.Logger
Logger for progress output.
runner : CommandRunner, optional
Subprocess runner for streaming output.
Source code in tit/pre/recon_all.py
run_recon_all ¶
run_recon_all(project_dir: str, subject_id: str, *, logger, parallel: bool = False, runner: CommandRunner | None = None) -> None
Run FreeSurfer recon-all for a subject.
Parameters¶
project_dir : str
BIDS project root.
subject_id : str
Subject identifier without the sub- prefix.
logger : logging.Logger
Logger used for progress and command output.
parallel : bool, optional
Use FreeSurfer OpenMP parallelization.
runner : CommandRunner, optional
Subprocess runner used to stream output.