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