Spaces:
Paused
Paused
Commit
•
cb99bf4
1
Parent(s):
8eea040
change scale for pLDDT (#4)
Browse files- change scale for pLDDT (8716a070203a0b8375eac9d7bb8c3cb542e9b7fa)
Co-authored-by: Simon Duerr <simonduerr@users.noreply.huggingface.co>
app.py
CHANGED
@@ -51,11 +51,11 @@ def molecule(input_pdb):
|
|
51 |
let config = { backgroundColor: "white" };
|
52 |
let viewer = $3Dmol.createViewer(element, config);
|
53 |
let colorAlpha = function (atom) {
|
54 |
-
if (atom.b <
|
55 |
return "OrangeRed";
|
56 |
-
} else if (atom.b <
|
57 |
return "Gold";
|
58 |
-
} else if (atom.b <
|
59 |
return "MediumTurquoise";
|
60 |
} else {
|
61 |
return "Blue";
|
|
|
51 |
let config = { backgroundColor: "white" };
|
52 |
let viewer = $3Dmol.createViewer(element, config);
|
53 |
let colorAlpha = function (atom) {
|
54 |
+
if (atom.b < 0.5) {
|
55 |
return "OrangeRed";
|
56 |
+
} else if (atom.b < 0.7) {
|
57 |
return "Gold";
|
58 |
+
} else if (atom.b < 0.9) {
|
59 |
return "MediumTurquoise";
|
60 |
} else {
|
61 |
return "Blue";
|