anndict.utils.create_color_map#
- anndict.utils.create_color_map(adata, keys)[source]#
Creates a unified color map for given keys from an
AnnDataobject, differentiating between continuous and categorical data.- Parameters:
- adata
AnnData An :class`AnnData`.
- keys
list[str] keys for which the color map is required.
- adata
- Return type:
dict- Returns:
A color map linking unique values or ranges from the specified keys to colors.