Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,16 @@ def predict_stability(model_choice, organism_choice, pdb_file=None, sequence=Non
|
|
10 |
return f"Predicted Stability using {model_choice} for {organism_choice}: Example Output"
|
11 |
|
12 |
def get_foldseek_seq(pdb_path):
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
21 |
|
22 |
|
23 |
# Gradio Interface
|
|
|
10 |
return f"Predicted Stability using {model_choice} for {organism_choice}: Example Output"
|
11 |
|
12 |
def get_foldseek_seq(pdb_path):
|
13 |
+
try:
|
14 |
+
parsed_seqs = get_struc_seq(
|
15 |
+
"bin/foldseek",
|
16 |
+
pdb_path,
|
17 |
+
["A"],
|
18 |
+
process_id=random.randint(0, 10000000),
|
19 |
+
)["A"]
|
20 |
+
return parsed_seqs
|
21 |
+
except:
|
22 |
+
return None
|
23 |
|
24 |
|
25 |
# Gradio Interface
|