update_qualitative_palette¶
- besca.pl.update_qualitative_palette(adata, palette, group='leiden', checkColors=True)[source]¶
Update adata object such that the umap will adhere to the palette provided.
- Parameters:
adata (AnnData) – the AnnData object
palette (dict) – dict with keys as the values of the group observation. To avoid warning from matlib it is advised to have hex color values
group (str) – string identifying the column name of adata.obs where colors will be set.
checkColors (boolean) – check the colors inputed to transform them if needed into a hex values. tupple of RBG of 0-1 values cna be converted. returns
------- –
object. (None; update the adata) –