You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi developer,
I want to defined the color in paga plot node?
and i can defined it properly.
how to define the color that i want in page node plot
color_map_dict = {}
cluster_name = adata.obs['cluster'].unique()
if len(colors)>0:
for i in range(len(cluster_name)):
color_map_dict.update({cluster_name[i]: colors[i]})
else:
for i in range(len(cluster_name)):
color_map_dict.update({cluster_name[i]: cluster_name[i]})
Hi developer,
I want to defined the color in paga plot node?
and i can defined it properly.
how to define the color that i want in page node plot
color_map_dict = {}
cluster_name = adata.obs['cluster'].unique()
if len(colors)>0:
for i in range(len(cluster_name)):
color_map_dict.update({cluster_name[i]: colors[i]})
else:
for i in range(len(cluster_name)):
color_map_dict.update({cluster_name[i]: cluster_name[i]})
adata.obs['cluster_color'] = adata.obs['cluster'].map(color_map_dict)
sc.pl.paga(adata, color='cluster_color', ax=axes[0, 0], show=False)
it not work for this code
any advice would be appreciated.
Best,
hanhuihong
The text was updated successfully, but these errors were encountered: