i_vorobyev
commited on
Commit
·
289b045
1
Parent(s):
64f9281
add files generation
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from igfold import IgFoldRunner
|
| 3 |
import os
|
| 4 |
-
|
| 5 |
|
| 6 |
def read_mol(molpath):
|
| 7 |
with open(molpath, "r") as fp:
|
|
@@ -78,7 +78,10 @@ def pred_seq(seq):
|
|
| 78 |
sequences = {
|
| 79 |
"H": "QVQLQESGGGLVQAGGSLTLSCAVSGLTFSNYAMGWFRQAPGKEREFVAAITWDGGNTYYTDSVKGRFTISRDNAKNTVFLQMNSLKPEDTAVYYCAAKLLGSSRYELALAGYDYWGQGTQVTVS"
|
| 80 |
}
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
igfold = IgFoldRunner()
|
| 84 |
igfold.fold(
|
|
@@ -97,4 +100,4 @@ def pred_seq(seq):
|
|
| 97 |
iface = gr.Interface(fn=pred_seq,
|
| 98 |
inputs="text",
|
| 99 |
outputs=gr.HTML())
|
| 100 |
-
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from igfold import IgFoldRunner
|
| 3 |
import os
|
| 4 |
+
import random
|
| 5 |
|
| 6 |
def read_mol(molpath):
|
| 7 |
with open(molpath, "r") as fp:
|
|
|
|
| 78 |
sequences = {
|
| 79 |
"H": "QVQLQESGGGLVQAGGSLTLSCAVSGLTFSNYAMGWFRQAPGKEREFVAAITWDGGNTYYTDSVKGRFTISRDNAKNTVFLQMNSLKPEDTAVYYCAAKLLGSSRYELALAGYDYWGQGTQVTVS"
|
| 80 |
}
|
| 81 |
+
|
| 82 |
+
f_name = ''.join([random.choice("ACDEFGHIKLMNPQRSTVWY") for _ in range(15)])
|
| 83 |
+
|
| 84 |
+
pred_pdb = f"{f_name}.pdb"
|
| 85 |
|
| 86 |
igfold = IgFoldRunner()
|
| 87 |
igfold.fold(
|
|
|
|
| 100 |
iface = gr.Interface(fn=pred_seq,
|
| 101 |
inputs="text",
|
| 102 |
outputs=gr.HTML())
|
| 103 |
+
iface.launch(share = True)
|