dittoSeq icon indicating copy to clipboard operation
dittoSeq copied to clipboard

How to flip the long heatmap in `dittoSeq::dittoHeatmap`?

Open denvercal1234GitHub opened this issue 1 year ago • 3 comments

Hi there,

Thanks for the tool!

I was hoping to flip my heatmap that has a lot of genes so that it has a horizontal orientation instead (not transpose). Do you have any pointer?

Thank you for your help.

denvercal1234GitHub avatar Aug 05 '24 19:08 denvercal1234GitHub

Hmmm, nothing built-in for this, but you could achieve it by using data.out = TRUE and then both transposing the mat as well as flipping any of the inputs that target columns / rows to target the opposite (e.g. use the annotation_col-named output instead for annotation_row).

I hope this makes sense and is not too much of a hassle... This is something which I could work in via an input down the road, but I foresee there being some complications to automating it that I won't have time to take on during the next few weeks.

dtm2451 avatar Aug 05 '24 19:08 dtm2451

Just re-read and noticed that you'd added "(not transpose)", so unsure if I've answered your intended question?

dtm2451 avatar Aug 05 '24 20:08 dtm2451

I see. For now I will just flip plot by other editor after rotating the axis labels then. Thanks @dtm2451!

denvercal1234GitHub avatar Aug 08 '24 17:08 denvercal1234GitHub