_Assay.set_palette¶
-
_Assay.
set_palette
(palette=None)¶ Set the label color palette.
Modifies the palette metadata of the assay.
- Parameters
- palettedictionary
The color values for each label. A subset of labels is not accepted.
- Raises
- TypeError
When the provided palette is not a dictionary.
- ValueError
When one of the labels is not present in the given palette.