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
{{ message }}
Repository navigation
pl.umap/tsne/draw_graph colored by principal component or diffusion component #613
I would like to color my tsnes, umaps and graph layouts by specific principal components or diffusion components. Any chance you could add an option to use columns from obsm objects as colors for these plots? (Or maybe that's already possible and I missed it...?)
Thanks for your help.
Hi Lisa,
I reckon this is a sensible request for cases when you give PCs or DCs a biological interpretation. It shouldn't be hard to implement I guess. But @fidelram will have a better overview of this.
A temporary workaround would be to do the following:
@gokceneraslan, how about a tuple like ({obsm_key}, {obsm_value_column})? It's more verbose, but I think more flexible, particularly if obsm starts to allow more kinds of values.
Here's an example (using some stuff on personal branches):
Activity
LuckyMD commentedon Apr 18, 2019
Hi Lisa,
I reckon this is a sensible request for cases when you give PCs or DCs a biological interpretation. It shouldn't be hard to implement I guess. But @fidelram will have a better overview of this.
A temporary workaround would be to do the following:
gokceneraslan commentedon Apr 19, 2019
I think it'll be very cool to make this lookup dynamic somehow e.g.
sc.pl.umap(adata, color='X_PCA:1').ivirshup commentedon Apr 23, 2019
@gokceneraslan, how about a tuple like
({obsm_key}, {obsm_value_column})? It's more verbose, but I think more flexible, particularly ifobsmstarts to allow more kinds of values.Here's an example (using some stuff on personal branches):