pyavs.load_anatomical

pyavs.load_anatomical(subject_id: int, data_path: str | None = None) str[source]

Load anatomical data path for a subject.

Parameters:
  • subject_id (int) – Subject ID

  • data_path (str, optional) – Path to data directory. If None, uses configured data path

Returns:

Path to the defaced T1 volume.

Return type:

str

Notes

The release ships the defaced T1 at sub-XX/anat/T1.mgz. A FreeSurfer copy under derivatives/freesurfer/sub-XX/mri/T1.mgz is used as a fallback where present; mri/ volumes beyond the defaced T1 are withheld from the release.