osanseviero simonduerr commited on
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>

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";