cortex.freesurfer.get_paths

cortex.freesurfer.get_paths(fs_subject, hemi, type='patch', freesurfer_subject_dir=None)[source]

Retrieve paths for all surfaces for a subject processed by freesurfer

Parameters:
subjectstring

Subject ID for freesurfer subject

hemistring [‘lh’|’rh’]

Left (‘lh’) or right (‘rh’) hemisphere

typestring [‘patch’|’surf’|’curv’]

Which type of files to return

freesurfer_subject_dirstring | None

Directory of freesurfer subjects. Defaults to the value for the environment variable ‘SUBJECTS_DIR’ (which should be set by freesurfer)

Returns:
pathstr

Path template (with an unfilled {name} field) for the requested file type. Raises ValueError if type does not match any of ‘patch’, ‘surf’, ‘curv’, or ‘slim’.