stochasticribosome
commited on
Commit
•
80372ef
1
Parent(s):
f724df8
Refactor
Browse files
main.py
CHANGED
@@ -193,7 +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 |
for i in range(10):
|
198 |
adaptability_value = adaptability[topN_ind[i]]
|
199 |
color = 'orange'
|
@@ -207,12 +210,6 @@ def predict(pdb_code, pdb_file):
|
|
207 |
'color': color,
|
208 |
'alpha': 0.75
|
209 |
})
|
210 |
-
# Add lighting and shading options to the view object:
|
211 |
-
view.setStyle({'stick': {'colorscheme': {'prop': 'resi', 'C': 'turquoise'}}})
|
212 |
-
view.setStyle({'sphere': {}})
|
213 |
-
view.addLight([0, 0, 10], [1, 1, 1], 1) # Add directional light from the z-axis
|
214 |
-
view.setSpecular(0.5) # Adjust the specular lighting effect
|
215 |
-
view.setAmbient(0.5) # Adjust the ambient lighting effect
|
216 |
|
217 |
view.zoomTo()
|
218 |
|
|
|
193 |
view.setBackgroundColor('white')
|
194 |
view.addModel(pdb, "pdb")
|
195 |
view.setStyle({'stick': {'colorscheme': {'prop': 'resi', 'C': 'turquoise'}}})
|
196 |
+
view.addLight([0, 0, 10], [1, 1, 1], 1) # Add directional light from the z-axis
|
197 |
+
view.setSpecular(0.5) # Adjust the specular lighting effect
|
198 |
+
view.setAmbient(0.5) # Adjust the ambient lighting effect
|
199 |
+
|
200 |
for i in range(10):
|
201 |
adaptability_value = adaptability[topN_ind[i]]
|
202 |
color = 'orange'
|
|
|
210 |
'color': color,
|
211 |
'alpha': 0.75
|
212 |
})
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
view.zoomTo()
|
215 |
|