Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heatmap: Option to transpose the plot #35

Closed
etal opened this issue Jun 25, 2015 · 2 comments · Fixed by #625
Closed

heatmap: Option to transpose the plot #35

etal opened this issue Jun 25, 2015 · 2 comments · Fixed by #625

Comments

@etal
Copy link
Owner

etal commented Jun 25, 2015

The current "horizontal" layout shows samples in rows, chromosomes in columns. A transposed or "vertical" layout would show samples in columns, chromosomes in rows. (Sometimes this makes a better figure.)

Consider the flags "-t/--transpose" or "-v/--vertical".

@etal etal added the plots label Dec 13, 2016
@etal etal modified the milestone: v1.0 Jun 30, 2017
@etal etal modified the milestones: v1.0, v0.9.x Jan 25, 2018
@tetedange13
Copy link
Contributor

tetedange13 commented May 25, 2021

Hi @etal ,

I do not know if this is still a desired new feature, but I came up with something quite satifying: https://github.com/tetedange13/cnvkit/tree/35-vertical-heatmap

  1. I first tried keeping up with BrokenBarHCollection, but verticalized plot was quite heavy to plot (loading all the time, zooming locked...)
  2. Then I implemented a 2nd version using pcolor + a native Matplotlib colormap

=> Not perfect but seems consistent with "default / not vertical view", still some polish left
=> Also I could not reimplement --desaturate mode as I had trouble understanding the maths...
=> IMHO it should be possible to implement it directly inside the colormap using custom normalization (with a proper sigmoid function)

Hope this helps.
Have a nice day.
Felix.

@etal
Copy link
Owner Author

etal commented Jun 4, 2021

Thanks for sharing, @tetedange13 . Would you like to create a pull request out of your branch to make reviewing easier?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants