Update app.py
Browse files
app.py
CHANGED
|
@@ -20,11 +20,10 @@ def fold(id, sequence):
|
|
| 20 |
|
| 21 |
sp.run(f"sincFold pred {sequence} --name {id} -o output --draw --draw-resolution {resolution}", shell=True)
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
except:
|
| 26 |
dotbracket = None
|
| 27 |
-
structure_draw =
|
| 28 |
msg = "CT to dotbracket failed (check ct file)"
|
| 29 |
|
| 30 |
with open(fasta_file, "w") as f:
|
|
@@ -51,7 +50,7 @@ def run():
|
|
| 51 |
lines=3),
|
| 52 |
gr.File(label="Fasta file"),
|
| 53 |
gr.File(label="CT file"),
|
| 54 |
-
gr.Textbox(label="
|
| 55 |
],
|
| 56 |
examples=[
|
| 57 |
["srp_Shig.flex._CP000266", "CCGUCAGGUCCGGAAGGAAGCAGCGGUA"],
|
|
|
|
| 20 |
|
| 21 |
sp.run(f"sincFold pred {sequence} --name {id} -o output --draw --draw-resolution {resolution}", shell=True)
|
| 22 |
|
| 23 |
+
dotbracket = ct2dot(ct_file)
|
| 24 |
+
if not dotbracket:
|
|
|
|
| 25 |
dotbracket = None
|
| 26 |
+
structure_draw = None
|
| 27 |
msg = "CT to dotbracket failed (check ct file)"
|
| 28 |
|
| 29 |
with open(fasta_file, "w") as f:
|
|
|
|
| 50 |
lines=3),
|
| 51 |
gr.File(label="Fasta file"),
|
| 52 |
gr.File(label="CT file"),
|
| 53 |
+
gr.Textbox(label=""),
|
| 54 |
],
|
| 55 |
examples=[
|
| 56 |
["srp_Shig.flex._CP000266", "CCGUCAGGUCCGGAAGGAAGCAGCGGUA"],
|