ismms-himc / clustergrammer2

"Dimensionality-increasing" data visualization tool and interactive WebGL Jupyter widget built for single-cell data.
https://clustergrammer.readthedocs.io/case_studies.html
MIT License
116 stars 20 forks source link

Unable to set any other color other than white to denote a 0 value in a heatmap #83

Closed mayankmusaddi closed 4 years ago

mayankmusaddi commented 4 years ago

I wish to have a heatmap with a 0 value corresponding to red and a 1 value corresponding to white in the Clustergrammer JS Module. However this seems unachievable by any parametric changes. The only option provided in Clustergrammer JS is changing the color of the positive and the negative end. This Feature is especially needed for P-Value heat maps where a lower value denotes higher significance, hence a darker color corresponding to the 0 is preferred.

cornhundred commented 4 years ago

Hi @mayankmusaddi, thanks for the feature request we can think about how to implement this. One option for P-values would be to transform them using -log10 for instance to have an easier set of values to visualize.

mayankmusaddi commented 4 years ago

Thanks for the suggestion @cornhundred . It helped me indeed.

This issue is not pertaining to this repository. Hence I'm closing this issue here and would reopen it in the clustergrammer JS repository belonging to the MaayanLab. Apologies.