eigenstrapping.utils.parcify

eigenstrapping.utils.parcify(annotation, drop=True)[source]

Returns an array of parcel labels for every vertex in the surface of annotation

Parameters:
  • annotation (str) – FreeSurfer annotation file

  • drop (bool, optional) – Whether to drop the medial wall labels. Default True.

Returns:

parc – Parcel labels for every vertex

Return type:

np.ndarray of shape (N,)