@@ -857,6 +857,7 @@ def plot_cnv_hmm_heatmap_track(
857
857
width : gplt_params .width = gplt_params .width_default ,
858
858
row_height : gplt_params .row_height = 7 ,
859
859
height : Optional [gplt_params .height ] = None ,
860
+ palette : Optional [gplt_params .colors ] = cnv_params .colorscale_default ,
860
861
show : gplt_params .show = True ,
861
862
output_backend : gplt_params .output_backend = gplt_params .output_backend_default ,
862
863
) -> gplt_params .optional_figure :
@@ -929,7 +930,6 @@ def plot_cnv_hmm_heatmap_track(
929
930
)
930
931
931
932
debug ("set up palette and color mapping" )
932
- palette = cnv_params .colorscale_default
933
933
color_mapper = bkmod .LinearColorMapper (low = - 1.5 , high = 4.5 , palette = palette )
934
934
935
935
debug ("plot the HMM copy number data as an image" )
@@ -999,6 +999,7 @@ def plot_cnv_hmm_heatmap(
999
999
width : gplt_params .width = gplt_params .width_default ,
1000
1000
row_height : gplt_params .row_height = 7 ,
1001
1001
track_height : Optional [gplt_params .track_height ] = None ,
1002
+ palette : Optional [gplt_params .colors ] = cnv_params .colorscale_default ,
1002
1003
genes_height : gplt_params .genes_height = gplt_params .genes_height_default ,
1003
1004
show : gplt_params .show = True ,
1004
1005
gene_labels : Optional [gplt_params .gene_labels ] = None ,
@@ -1020,6 +1021,7 @@ def plot_cnv_hmm_heatmap(
1020
1021
width = width ,
1021
1022
row_height = row_height ,
1022
1023
height = track_height ,
1024
+ palette = palette ,
1023
1025
show = False ,
1024
1026
)
1025
1027
fig1 .xaxis .visible = False
0 commit comments