Spaces:
Running
Running
simonduerr
commited on
Commit
•
64b65a1
1
Parent(s):
27510cd
Update app.py
Browse files
app.py
CHANGED
@@ -1134,24 +1134,25 @@ with proteinMPNN:
|
|
1134 |
with gr.Tabs():
|
1135 |
with gr.TabItem("Input"):
|
1136 |
inp = gr.Textbox(
|
1137 |
-
placeholder="PDB Code or upload file below", label="Input structure"
|
1138 |
)
|
1139 |
-
file = gr.File(file_count="single")
|
1140 |
|
1141 |
with gr.TabItem("Settings"):
|
1142 |
with gr.Row():
|
1143 |
-
designed_chain = gr.Textbox(value="A", label="Designed chain")
|
1144 |
fixed_chain = gr.Textbox(
|
1145 |
-
placeholder="Use commas to fix multiple chains", label="Fixed chain"
|
1146 |
)
|
1147 |
with gr.Row():
|
1148 |
num_seqs = gr.Slider(
|
1149 |
-
minimum=1, maximum=15, value=1, step=1, label="Number of sequences"
|
1150 |
)
|
1151 |
sampling_temp = gr.Radio(
|
1152 |
choices=[0.1, 0.15, 0.2, 0.25, 0.3],
|
1153 |
value=0.1,
|
1154 |
label="Sampling temperature",
|
|
|
1155 |
)
|
1156 |
gr.Markdown(
|
1157 |
""" Sampling temperature for amino acids, `T=0.0` means taking argmax, `T>>1.0` means sample randomly. Suggested values `0.1, 0.15, 0.2, 0.25, 0.3`. Higher values will lead to more diversity.
|
@@ -1167,12 +1168,14 @@ with proteinMPNN:
|
|
1167 |
],
|
1168 |
label="Model",
|
1169 |
value="v_48_020",
|
|
|
1170 |
)
|
1171 |
backbone_noise = gr.Dropdown(
|
1172 |
-
choices=[0, 0.02, 0.10, 0.20, 0.30], label="Backbone noise", value=0
|
|
|
1173 |
)
|
1174 |
with gr.Row():
|
1175 |
-
homomer = gr.Checkbox(value=False, label="Homomer?")
|
1176 |
gr.Markdown(
|
1177 |
"for correct symmetric tying lenghts of homomer chains should be the same"
|
1178 |
)
|
@@ -1195,7 +1198,8 @@ with proteinMPNN:
|
|
1195 |
pLDDT is an alias for beta, it only works correctly with structures that contain the appropriate values in the beta column of the PDB file. """
|
1196 |
)
|
1197 |
atomsel = gr.Textbox(
|
1198 |
-
placeholder="Specify atom selection ", label="Fixed positions"
|
|
|
1199 |
)
|
1200 |
|
1201 |
btn = gr.Button("Run")
|
|
|
1134 |
with gr.Tabs():
|
1135 |
with gr.TabItem("Input"):
|
1136 |
inp = gr.Textbox(
|
1137 |
+
placeholder="PDB Code or upload file below", label="Input structure", api_name = "pdb_code"
|
1138 |
)
|
1139 |
+
file = gr.File(file_count="single", api_name = "file")
|
1140 |
|
1141 |
with gr.TabItem("Settings"):
|
1142 |
with gr.Row():
|
1143 |
+
designed_chain = gr.Textbox(value="A", label="Designed chain", api_name= "designed_chain")
|
1144 |
fixed_chain = gr.Textbox(
|
1145 |
+
placeholder="Use commas to fix multiple chains", label="Fixed chain", api_name= "fixed_chain"
|
1146 |
)
|
1147 |
with gr.Row():
|
1148 |
num_seqs = gr.Slider(
|
1149 |
+
minimum=1, maximum=15, value=1, step=1, label="Number of sequences", api_name= "n_seqs"
|
1150 |
)
|
1151 |
sampling_temp = gr.Radio(
|
1152 |
choices=[0.1, 0.15, 0.2, 0.25, 0.3],
|
1153 |
value=0.1,
|
1154 |
label="Sampling temperature",
|
1155 |
+
api_name= "sampling_temp"
|
1156 |
)
|
1157 |
gr.Markdown(
|
1158 |
""" Sampling temperature for amino acids, `T=0.0` means taking argmax, `T>>1.0` means sample randomly. Suggested values `0.1, 0.15, 0.2, 0.25, 0.3`. Higher values will lead to more diversity.
|
|
|
1168 |
],
|
1169 |
label="Model",
|
1170 |
value="v_48_020",
|
1171 |
+
api_name= "model_name"
|
1172 |
)
|
1173 |
backbone_noise = gr.Dropdown(
|
1174 |
+
choices=[0, 0.02, 0.10, 0.20, 0.30], label="Backbone noise", value=0,
|
1175 |
+
api_name= "backbone_noise"
|
1176 |
)
|
1177 |
with gr.Row():
|
1178 |
+
homomer = gr.Checkbox(value=False, label="Homomer?", api_name= "homomer")
|
1179 |
gr.Markdown(
|
1180 |
"for correct symmetric tying lenghts of homomer chains should be the same"
|
1181 |
)
|
|
|
1198 |
pLDDT is an alias for beta, it only works correctly with structures that contain the appropriate values in the beta column of the PDB file. """
|
1199 |
)
|
1200 |
atomsel = gr.Textbox(
|
1201 |
+
placeholder="Specify atom selection ", label="Fixed positions",
|
1202 |
+
api_name= "fixed_positions"
|
1203 |
)
|
1204 |
|
1205 |
btn = gr.Button("Run")
|