xcp_d.utils.bids.get_freesurfer_sphere

xcp_d.utils.bids.get_freesurfer_sphere(freesurfer_path, subject_id, hemisphere)[source]

Find FreeSurfer sphere file.

NOTE: This is a Node function.

Parameters:
  • freesurfer_path (str) – Path to the FreeSurfer derivatives.

  • subject_id (str) – Subject ID. This may or may not be prefixed with “sub-“.

  • hemisphere ({“L”, “R”}) – The hemisphere to grab.

Returns:

sphere_raw – Sphere file for the requested subject and hemisphere.

Return type:

str

Raises:

FileNotFoundError – If the sphere file cannot be found.