nichesphere.tl.cells_niche_colors#
- nichesphere.tl.cells_niche_colors(CTs, niche_colors, niche_dict)#
Make dataframe of cell types with their corresponding niches and colors
- Parameters:
CTs (pd.Series or list) – list of cell types
niche_colors (pd.Series) – Series of colors in hexadecimal format with niche names as index
niche_dict (dictionary) – Dictionary with niche names as keys and cell types as elements
- Returns:
niche_df – Dataframe of cell types with their corresponding niches and colors
- Return type:
pd.DataFrame