dtm2451 / dittoSeq

Color blindness friendly visualization of single-cell and bulk RNA-sequencing data
MIT License
190 stars 18 forks source link

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

Open denvercal1234GitHub opened 2 months ago

denvercal1234GitHub commented 2 months ago

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.

dtm2451 commented 2 months ago

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 commented 2 months ago

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

denvercal1234GitHub commented 2 months ago

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