netneurotools.interface.extract_cifti_labels

netneurotools.interface.extract_cifti_labels(axis, parc_ignore=['unknown', 'corpuscallosum', 'Background+FreeSurfer_Defined_Medial_Wall', '???', 'Unknown', 'Medial_wall', 'Medial wall', 'medial_wall'])[source]

Extract label data from CIFTI file.

Parameters:
  • axis (nibabel.cifti2.LabelAxis) – LabelAxis object from CIFTI file.

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

Returns:

  • keys (tuple) – Keys.

  • labels (tuple) – Labels.