stochasticribosome
commited on
Commit
·
4562c4b
1
Parent(s):
80372ef
Remove extra py3Dmol options
Browse files
main.py
CHANGED
@@ -193,9 +193,10 @@ def predict(pdb_code, pdb_file):
|
|
193 |
view.setBackgroundColor('white')
|
194 |
view.addModel(pdb, "pdb")
|
195 |
view.setStyle({'stick': {'colorscheme': {'prop': 'resi', 'C': 'turquoise'}}})
|
196 |
-
|
197 |
-
view.
|
198 |
-
view.
|
|
|
199 |
|
200 |
for i in range(10):
|
201 |
adaptability_value = adaptability[topN_ind[i]]
|
@@ -233,6 +234,9 @@ def run():
|
|
233 |
#text_output = gr.Textbox()
|
234 |
#text_button = gr.Button("Flip")
|
235 |
inp = gr.Textbox(placeholder="PDB Code or upload file below", label="Input structure")
|
|
|
|
|
|
|
236 |
pdb_file = gr.File(label="PDB File Upload")
|
237 |
#with gr.Row():
|
238 |
# helix = gr.ColorPicker(label="helix")
|
|
|
193 |
view.setBackgroundColor('white')
|
194 |
view.addModel(pdb, "pdb")
|
195 |
view.setStyle({'stick': {'colorscheme': {'prop': 'resi', 'C': 'turquoise'}}})
|
196 |
+
# Commenting since the visualizer is not rendered
|
197 |
+
# view.addLight([0, 0, 10], [1, 1, 1], 1) # Add directional light from the z-axis
|
198 |
+
# view.setSpecular(0.5) # Adjust the specular lighting effect
|
199 |
+
# view.setAmbient(0.5) # Adjust the ambient lighting effect
|
200 |
|
201 |
for i in range(10):
|
202 |
adaptability_value = adaptability[topN_ind[i]]
|
|
|
234 |
#text_output = gr.Textbox()
|
235 |
#text_button = gr.Button("Flip")
|
236 |
inp = gr.Textbox(placeholder="PDB Code or upload file below", label="Input structure")
|
237 |
+
topN = gr.Slider(value=10,
|
238 |
+
minimum=1, maximum=100, label="Number of atoms to visualize", step=1
|
239 |
+
)
|
240 |
pdb_file = gr.File(label="PDB File Upload")
|
241 |
#with gr.Row():
|
242 |
# helix = gr.ColorPicker(label="helix")
|