supercat666 commited on
Commit
a6ec4bb
1 Parent(s): 9260769
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -214,7 +214,8 @@ if selected_model == 'Cas9':
214
  # Iterate over the sorted predictions to create the plot
215
  for i, prediction in enumerate(st.session_state['on_target_results'], start=1):
216
  chrom, start, end, strand, target, gRNA, pred_score = prediction
217
- midpoint = (start + end) / 2
 
218
  y_value = i * 0.1 if strand == '1' else -i * 0.1 # Adjust multiplier for spacing
219
 
220
  fig.add_trace(go.Scatter(
 
214
  # Iterate over the sorted predictions to create the plot
215
  for i, prediction in enumerate(st.session_state['on_target_results'], start=1):
216
  chrom, start, end, strand, target, gRNA, pred_score = prediction
217
+
218
+ midpoint = (int(start) + int(end)) / 2
219
  y_value = i * 0.1 if strand == '1' else -i * 0.1 # Adjust multiplier for spacing
220
 
221
  fig.add_trace(go.Scatter(