@@ -857,6 +857,7 @@ def plot_cnv_hmm_heatmap_track(
857857 width : gplt_params .width = gplt_params .width_default ,
858858 row_height : gplt_params .row_height = 7 ,
859859 height : Optional [gplt_params .height ] = None ,
860+ palette : Optional [gplt_params .colors ] = cnv_params .colorscale_default ,
860861 show : gplt_params .show = True ,
861862 output_backend : gplt_params .output_backend = gplt_params .output_backend_default ,
862863 ) -> gplt_params .optional_figure :
@@ -929,7 +930,6 @@ def plot_cnv_hmm_heatmap_track(
929930 )
930931
931932 debug ("set up palette and color mapping" )
932- palette = cnv_params .colorscale_default
933933 color_mapper = bkmod .LinearColorMapper (low = - 1.5 , high = 4.5 , palette = palette )
934934
935935 debug ("plot the HMM copy number data as an image" )
@@ -999,6 +999,7 @@ def plot_cnv_hmm_heatmap(
999999 width : gplt_params .width = gplt_params .width_default ,
10001000 row_height : gplt_params .row_height = 7 ,
10011001 track_height : Optional [gplt_params .track_height ] = None ,
1002+ palette : Optional [gplt_params .colors ] = cnv_params .colorscale_default ,
10021003 genes_height : gplt_params .genes_height = gplt_params .genes_height_default ,
10031004 show : gplt_params .show = True ,
10041005 gene_labels : Optional [gplt_params .gene_labels ] = None ,
@@ -1020,6 +1021,7 @@ def plot_cnv_hmm_heatmap(
10201021 width = width ,
10211022 row_height = row_height ,
10221023 height = track_height ,
1024+ palette = palette ,
10231025 show = False ,
10241026 )
10251027 fig1 .xaxis .visible = False
0 commit comments