The-Philosopher commited on
Commit
aca9d91
·
verified ·
1 Parent(s): 25aa025

Deploy ChiralFold web Space from CI

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -253,12 +253,15 @@ def run_audit(uploaded) -> Tuple[str, Optional[str]]:
253
  score = report["overall_score"]
254
  score_cls = "ok" if score >= 80 else ("warn" if score >= 60 else "bad")
255
  chir_cls = "ok" if n_wrong == 0 else "bad"
 
 
256
  kpis = _kpi_html(
257
  [
258
  ("Overall score", f"{score:.1f}", score_cls),
259
  ("Cα correct %", f"{chir['pct_correct']:.1f}", chir_cls),
260
  ("Chirality violations", str(n_wrong), chir_cls),
261
  ("Ramachandran favored %", f"{rama['pct_favored']:.1f}", "ok"),
 
262
  ]
263
  )
264
  summary = format_report(report)
 
253
  score = report["overall_score"]
254
  score_cls = "ok" if score >= 80 else ("warn" if score >= 60 else "bad")
255
  chir_cls = "ok" if n_wrong == 0 else "bad"
256
+ clash = report["clashes"]["clash_score"]
257
+ clash_cls = "ok" if clash < 30 else ("warn" if clash < 60 else "bad")
258
  kpis = _kpi_html(
259
  [
260
  ("Overall score", f"{score:.1f}", score_cls),
261
  ("Cα correct %", f"{chir['pct_correct']:.1f}", chir_cls),
262
  ("Chirality violations", str(n_wrong), chir_cls),
263
  ("Ramachandran favored %", f"{rama['pct_favored']:.1f}", "ok"),
264
+ ("Clashscore", f"{clash:.1f}", clash_cls),
265
  ]
266
  )
267
  summary = format_report(report)