zunderlab / FLOWMAP

Other
23 stars 8 forks source link

Averaging metadata in clusters? #10

Open AmandaKedaigle opened 3 years ago

AmandaKedaigle commented 3 years ago

Hi! Thanks for this cool package!

I am using FLOWMAPfromDF on single cell data and one of my variables is celltypes, which I've labeled 1-11. They are not one of my clustering.vars (using PCs for that as recommended). I set clustering to be true. In some of the resulting clusters, I have celltypes 1.5, 2.5, etc. I am wondering what that means? This is a cluster of mixed cell types? (Very possible, these are closely related cell types). If it is 1.5, is it a mix of 1 and 2, or maybe just a mix with mostly cell type 1?

More importantly, if some clusters are mixing cell types with non-consecutive numbers, could it be landing on a different integer? (i.e. a mix of cell types 1 and 3 erroneously being labeled as cell type 2?).

smgoggin10 commented 3 years ago

Hi! Very sorry for the delayed reply. What you have observed is correct, and I am working on a fix for this currently, as I just ran into this same issue. We originally weren't using this to overlay cluster IDs or cell type labels in this way, so this hasn't come up as an issue until now. I will let you know when I have added a solution for this!

AmandaKedaigle commented 3 years ago

Hello - have there been any updates on this?