spatialdata-plot icon indicating copy to clipboard operation
spatialdata-plot copied to clipboard

Use spaco for picking colors?

Open timtreis opened this issue 1 year ago • 4 comments

Without having tried it yet, the figure looks convincingly nice. Basically calculates the degree of mixture of all cell type pairs and then maximises contrast based on the given palette.

Potential drawback could be runtime for something as simple as picking a palette.

gr3.jpg

https://www.cell.com/patterns/fulltext/S2666-3899(23)00324-0?_returnURL=https%3A%2F%2Flinkinghub.elsevier.com%2Fretrieve%2Fpii%2FS2666389923003240%3Fshowall%3Dtrue

Wdyt @LucaMarconato @Sonja-Stockhaus @giovp @aeisenbarth

timtreis avatar Jan 23 '24 08:01 timtreis

I like it a lot, but is there a way to reimplement instead of relying on the dependency?

giovp avatar Jan 23 '24 09:01 giovp

Imports are kind of icky for just a plotting package, sklearn + umap. But probably required for the algo. We could have this as optional which only checks for those imports when palette='spaco'

timtreis avatar Jan 23 '24 12:01 timtreis

Looks really nice! At a first look, I didn't find anything about runtime in the paper, so I guess we would just have to test it.

Sonja-Stockhaus avatar Jan 23 '24 13:01 Sonja-Stockhaus

There are also https://github.com/thu-vis/Dynamic-Color and https://github.com/simonwarchol/psudo which could be explored (could be complementary to spaco)

keller-mark avatar Nov 13 '24 08:11 keller-mark