aboutsummaryrefslogtreecommitdiff
path: root/gn3/heatmaps.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-28 08:28:42 +0300
committerBonfaceKilz2021-09-28 11:23:46 +0300
commit767eb96db12476f741bb5197bda7555c29e79b55 (patch)
treea91aa2435606e549732552b70615c3e31d120ce2 /gn3/heatmaps.py
parent674dc56b9df38e7cf1bbc65a2fc6bf3cc16f7231 (diff)
downloadgenenetwork3-767eb96db12476f741bb5197bda7555c29e79b55.tar.gz
Approximate single-spectrum colour scale in GN1
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * To provide a somewhat similar experience to GeneNetwork1, this commit approximates the single-spectrum colour scale in GeneNetwork1 for the heatmaps in GeneNetwork3. Work to get the multiple-spectrum colour sc(ales/hemes) will be done in other commits, since that might require digging even deeper into Plotly's guts to figure out.
Diffstat (limited to 'gn3/heatmaps.py')
-rw-r--r--gn3/heatmaps.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gn3/heatmaps.py b/gn3/heatmaps.py
index a36940d..2ef2d16 100644
--- a/gn3/heatmaps.py
+++ b/gn3/heatmaps.py
@@ -326,9 +326,7 @@ def generate_clustered_heatmap(
data, clustering_data, image_filename_prefix, x_axis=None,
x_label: str = "", y_axis=None, y_label: str = "",
output_dir: str = TMPDIR,
- colorscale=(
- (0.0, '#5D5D5D'), (0.4999999999999999, '#ABABAB'),
- (0.5, '#F5DE11'), (1.0, '#FF0D00'))):
+ colorscale=((0.0, '#0000FF'), (0.5, '#00FF00'), (1.0, '#FF0000'))):
"""
Generate a dendrogram, and heatmaps for each chromosome, and put them all
into one plot.