netneurotools.interface.extract_annot_labels
- netneurotools.interface.extract_annot_labels(annot_file, parc_ignore=['unknown', 'corpuscallosum', 'Background+FreeSurfer_Defined_Medial_Wall', '???', 'Unknown', 'Medial_wall', 'Medial wall', 'medial_wall'])[source]
Extract vertices and labels from FreeSurfer annotation file.
- Parameters:
annot_file (str or Path) – Path to FreeSurfer annotation file.
parc_ignore (list, optional) – List of labels to ignore.
- Returns:
surf_data (np.ndarray) – Surface data.
keys (tuple) – Keys.
labels (tuple) – Labels.