Skip to content

Commit

Permalink
adjusts key for compare_mutation_profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlk committed May 29, 2024
1 parent ffbcfb1 commit d57c66e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/draw-base-image:0.20', '.']
images: ['gcr.io/$PROJECT_ID/draw-base-image:0.20']
args: ['build', '-t', 'gcr.io/$PROJECT_ID/draw-base-image:0.22', '.']
images: ['gcr.io/$PROJECT_ID/draw-base-image:0.22']
9 changes: 5 additions & 4 deletions seismic_graph/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def compare_mutation_profiles(data, table:LinFitTable, normalize=False, max_plot
model = LinearRegression()
model.fit(x.reshape(-1,1), y)
slope, intercept, r_value = model.coef_[0], model.intercept_, model.score(x.reshape(-1,1), y)
fig.add_trace(go.Scatter(x=np.linspace(0, maxValue), y=slope*np.linspace(0, maxValue)+intercept, mode='lines', name='linear regression: y = {}x + {}'.format(round(slope,4), round(intercept,4)), visible=False))
fig.add_trace(go.Scatter(x=np.linspace(0, maxValue), y=slope*np.linspace(0, maxValue)+intercept, mode='lines', name='linear regression:<br>y = {}x + {}'.format(round(slope,4), round(intercept,4)), visible=False))
traceTrack.append(plotLabel)

# 1:1 line
Expand Down Expand Up @@ -585,10 +585,11 @@ def compare_mutation_profiles(data, table:LinFitTable, normalize=False, max_plot
)
for idx, plot in enumerate(np.unique(traceTrack))
]),
x=1,
y=0.4,
xanchor='left',
x=0.5,
y=-0.2,
xanchor='center',
yanchor='top',
direction='up'
)
],
)
Expand Down

0 comments on commit d57c66e

Please sign in to comment.