Spaces:
Running
on
T4
Running
on
T4
simonduerr
commited on
Commit
•
98bc8ee
1
Parent(s):
cb07643
Add omit aa
Browse files
app.py
CHANGED
@@ -403,6 +403,7 @@ def update(
|
|
403 |
sampling_temp,
|
404 |
model_name,
|
405 |
backbone_noise,
|
|
|
406 |
atomsel,
|
407 |
):
|
408 |
from protein_mpnn_utils import (
|
@@ -455,7 +456,9 @@ def update(
|
|
455 |
|
456 |
out_folder = "." # Path to a folder to output sequences, e.g. /home/out/
|
457 |
jsonl_path = "" # Path to a folder with parsed pdb into jsonl
|
458 |
-
|
|
|
|
|
459 |
|
460 |
pssm_multi = 0.0 # A value between [0.0, 1.0], 0.0 means do not use pssm, 1.0 ignore MPNN predictions
|
461 |
pssm_threshold = 0.0 # A value between -inf + inf to restric per position AAs
|
@@ -1277,6 +1280,10 @@ with proteinMPNN:
|
|
1277 |
gr.Markdown(
|
1278 |
"for correct symmetric tying lenghts of homomer chains should be the same"
|
1279 |
)
|
|
|
|
|
|
|
|
|
1280 |
gr.Markdown("## Fixed positions")
|
1281 |
gr.Markdown(
|
1282 |
"""You can fix important positions in the protein. Resid should be specified with the same numbering as in the input pdb file. The fixed residues will be highlighted in the output.
|
@@ -1429,6 +1436,7 @@ with proteinMPNN:
|
|
1429 |
sampling_temp,
|
1430 |
model_name,
|
1431 |
backbone_noise,
|
|
|
1432 |
atomsel,
|
1433 |
],
|
1434 |
outputs=[
|
|
|
403 |
sampling_temp,
|
404 |
model_name,
|
405 |
backbone_noise,
|
406 |
+
omit_AAs,
|
407 |
atomsel,
|
408 |
):
|
409 |
from protein_mpnn_utils import (
|
|
|
456 |
|
457 |
out_folder = "." # Path to a folder to output sequences, e.g. /home/out/
|
458 |
jsonl_path = "" # Path to a folder with parsed pdb into jsonl
|
459 |
+
|
460 |
+
if omit_AAs == "":
|
461 |
+
omit_AAs = "X" # Specify which amino acids should be omitted in the generated sequence, e.g. 'AC' would omit alanine and cystine.
|
462 |
|
463 |
pssm_multi = 0.0 # A value between [0.0, 1.0], 0.0 means do not use pssm, 1.0 ignore MPNN predictions
|
464 |
pssm_threshold = 0.0 # A value between -inf + inf to restric per position AAs
|
|
|
1280 |
gr.Markdown(
|
1281 |
"for correct symmetric tying lenghts of homomer chains should be the same"
|
1282 |
)
|
1283 |
+
with gr.Row():
|
1284 |
+
omit_AAs = gr.Textbox(
|
1285 |
+
placeholder="Specify omitted amino acids ", label="Omitted amino acids"
|
1286 |
+
)
|
1287 |
gr.Markdown("## Fixed positions")
|
1288 |
gr.Markdown(
|
1289 |
"""You can fix important positions in the protein. Resid should be specified with the same numbering as in the input pdb file. The fixed residues will be highlighted in the output.
|
|
|
1436 |
sampling_temp,
|
1437 |
model_name,
|
1438 |
backbone_noise,
|
1439 |
+
omit_AAs,
|
1440 |
atomsel,
|
1441 |
],
|
1442 |
outputs=[
|