From 767eb96db12476f741bb5197bda7555c29e79b55 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 28 Sep 2021 08:28:42 +0300 Subject: 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. --- gn3/heatmaps.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gn3') 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. -- cgit v1.2.3