Spaces:
Runtime error
Runtime error
Commit
·
ac5a470
1
Parent(s):
46124fc
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ import moleculekit
|
|
| 21 |
print(moleculekit.__version__)
|
| 22 |
|
| 23 |
|
| 24 |
-
def update(inp, file, mode, custom_resids, clustering_threshold):
|
| 25 |
try:
|
| 26 |
filepath = file.name
|
| 27 |
except:
|
|
@@ -105,7 +105,7 @@ def update(inp, file, mode, custom_resids, clustering_threshold):
|
|
| 105 |
grid,
|
| 106 |
writeprobes=True,
|
| 107 |
probefile=f"output/probes_{identifier}.pdb",
|
| 108 |
-
threshold=
|
| 109 |
p=clustering_threshold,
|
| 110 |
)
|
| 111 |
|
|
@@ -359,7 +359,7 @@ with metal3d:
|
|
| 359 |
minimum=1,
|
| 360 |
maximum=10,
|
| 361 |
value=7,
|
| 362 |
-
step=
|
| 363 |
label="Clustering distance cutoff",
|
| 364 |
)
|
| 365 |
btn = gr.Button("Run")
|
|
@@ -389,7 +389,7 @@ with metal3d:
|
|
| 389 |
mol = gr.HTML()
|
| 390 |
btn.click(
|
| 391 |
fn=update,
|
| 392 |
-
inputs=[inp, file, mode, custom_resids, clustering_threshold],
|
| 393 |
outputs=[out, mol],
|
| 394 |
)
|
| 395 |
|
|
|
|
| 21 |
print(moleculekit.__version__)
|
| 22 |
|
| 23 |
|
| 24 |
+
def update(inp, file, mode, custom_resids, clustering_threshold, distance_cutoff):
|
| 25 |
try:
|
| 26 |
filepath = file.name
|
| 27 |
except:
|
|
|
|
| 105 |
grid,
|
| 106 |
writeprobes=True,
|
| 107 |
probefile=f"output/probes_{identifier}.pdb",
|
| 108 |
+
threshold=distance_cutoff,
|
| 109 |
p=clustering_threshold,
|
| 110 |
)
|
| 111 |
|
|
|
|
| 359 |
minimum=1,
|
| 360 |
maximum=10,
|
| 361 |
value=7,
|
| 362 |
+
step=0.5,
|
| 363 |
label="Clustering distance cutoff",
|
| 364 |
)
|
| 365 |
btn = gr.Button("Run")
|
|
|
|
| 389 |
mol = gr.HTML()
|
| 390 |
btn.click(
|
| 391 |
fn=update,
|
| 392 |
+
inputs=[inp, file, mode, custom_resids, clustering_threshold, distance_cutoff],
|
| 393 |
outputs=[out, mol],
|
| 394 |
)
|
| 395 |
|