netneurotools.interface.extract_cifti_surface_labels

netneurotools.interface.extract_cifti_surface_labels(data, label_axis, brainmodel_axis, surf_name, parc_ignore=['unknown', 'corpuscallosum', 'Background+FreeSurfer_Defined_Medial_Wall', '???', 'Unknown', 'Medial_wall', 'Medial wall', 'medial_wall'])[source]

Extract surface data and related labels from CIFTI file.

Parameters:
  • data (np.ndarray) – Data from CIFTI file.

  • label_axis (nibabel.cifti2.LabelAxis) – LabelAxis object from CIFTI file.

  • brainmodel_axis (nibabel.cifti2.BrainModelAxis) – BrainModelAxis object from CIFTI file.

  • surf_name (str) – Name of surface.

  • parc_ignore (list, optional) – List of labels to ignore.

Returns:

  • surf_data (np.ndarray) – Surface data.

  • keys (tuple) – Keys.

  • labels (tuple) – Labels.