kharchenkolab / numbat

Haplotype-aware CNV analysis from single-cell RNA-seq
https://kharchenkolab.github.io/numbat/
Other
156 stars 22 forks source link

getting the order of cells in panel plots #145

Open MigleMi opened 7 months ago

MigleMi commented 7 months ago

Hi! Thank you for this great tool! I just have a small question - how can I extract the order of cells that are plotted in each panel? Where is this information stored or if there is a way to order cells based on the tree information?

Thanks!

teng-gao commented 7 months ago

Hi @MigleMi , fairly sure you can get it this way:

tree = ape::as.phylo(nb$gtree)
tree$tip.label

Let me know if this works