simonduerr commited on
Commit
8716a07
1 Parent(s): a9b9087

change scale for pLDDT

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 < 50) {
55
  return "OrangeRed";
56
- } else if (atom.b < 70) {
57
  return "Gold";
58
- } else if (atom.b < 90) {
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";