Skip to content

Using custom colours for embedding #654

Answered by WeilerP
AAA-3 asked this question in Q&A
Discussion options

You must be logged in to vote

@AAA-3, you don't set the argument palette. You simply need to specify the column name by which to color the scatter plot. The colors are inferred automatically.

Note: Running your cell changes the value of adata.uns['ClusterName_colors']. Consequently, to color the embedding with your original colors, you need to reload the data and remove the argument palette.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AAA-3
Comment options

@WeilerP
Comment options

@AAA-3
Comment options

Answer selected by AAA-3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants