Zhaohan Meng commited on
Commit
7c5d226
·
verified ·
1 Parent(s): fd48f6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -293,8 +293,8 @@ def index():
293
 
294
  elif "confirm_structure" in request.form and tmp_structure_path:
295
  try:
296
- parsed = get_struc_seq(FOLDSEEK_BIN, tmp_structure_path, None, plddt_mask=False)
297
- chain = list(parsed.keys())[0]; _, _, structure_seq = parsed[chain]
298
  except Exception as e:
299
  result_html = (
300
  "<p style='color:red'><strong>Foldseek failed to extract sequence "
@@ -445,7 +445,7 @@ table.tg th{background:var(--bg);font-weight:600}
445
  <input type="number" name="drug_idx" min="1" style="width:120px">
446
 
447
  <div class="grid grid-2">
448
- <button class="btn btn-primary" type="Inference" name="confirm_structure">Confirm Structure</button>
449
  <button class="btn btn-primary" type="Inference" name="Inference">Inference</button>
450
  </div>
451
  <button class="btn btn-neutral" style="width:100%" type="Inference" name="clear">Clear</button>
 
293
 
294
  elif "confirm_structure" in request.form and tmp_structure_path:
295
  try:
296
+ parsed_seqs = get_struc_seq(FOLDSEEK_BIN, tmp_structure_path, ["A"], plddt_mask=False)["A"]
297
+ seq, foldseek_seq, structure_seq = parsed_seqs
298
  except Exception as e:
299
  result_html = (
300
  "<p style='color:red'><strong>Foldseek failed to extract sequence "
 
445
  <input type="number" name="drug_idx" min="1" style="width:120px">
446
 
447
  <div class="grid grid-2">
448
+ <button class="btn btn-primary" type="Inference" name="confirm_structure">Confirm</button>
449
  <button class="btn btn-primary" type="Inference" name="Inference">Inference</button>
450
  </div>
451
  <button class="btn btn-neutral" style="width:100%" type="Inference" name="clear">Clear</button>