Spaces:
Paused
Paused
simonduerr
commited on
Commit
•
8716a07
1
Parent(s):
a9b9087
change scale for pLDDT
Browse files
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";
|