Po-yuLin commited on
Commit
fa30e87
·
verified ·
1 Parent(s): 97ac85e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -69,9 +69,7 @@ def heatmap_fig(fig_data: pd.DataFrame, zmode: str) -> go.Figure:
69
  colorscale = "RdBu_r"
70
  zmin, zmax, zmid = -8.0, 8.0, 0.0
71
 
72
- import numpy as np
73
  z = fig_data.to_numpy()
74
- # customdata: NaN/None 顯示 N/A,其餘顯示四位小數
75
  customdata = np.where(np.isnan(z), "N/A", np.round(z, 4))
76
  fig = go.Figure(
77
  data=go.Heatmap(
@@ -88,7 +86,7 @@ def heatmap_fig(fig_data: pd.DataFrame, zmode: str) -> go.Figure:
88
  )
89
  fig.update_layout(
90
  template="plotly_white",
91
- xaxis=dict(title=f"Position (genomic coordinate)", tickangle=-45),
92
  yaxis=dict(title="Alternate nucleotide", range=[-0.5, 3.5], fixedrange=True),
93
  margin=dict(l=60, r=20, t=60, b=60),
94
  height=350
 
69
  colorscale = "RdBu_r"
70
  zmin, zmax, zmid = -8.0, 8.0, 0.0
71
 
 
72
  z = fig_data.to_numpy()
 
73
  customdata = np.where(np.isnan(z), "N/A", np.round(z, 4))
74
  fig = go.Figure(
75
  data=go.Heatmap(
 
86
  )
87
  fig.update_layout(
88
  template="plotly_white",
89
+ xaxis=dict(title=f"Position_Reference nucleotide", tickangle=-45),
90
  yaxis=dict(title="Alternate nucleotide", range=[-0.5, 3.5], fixedrange=True),
91
  margin=dict(l=60, r=20, t=60, b=60),
92
  height=350