Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -270,7 +270,9 @@ def labres(column_changer):
|
|
| 270 |
lab_comment_4 = ""
|
| 271 |
if column_changer == col_options[1]:
|
| 272 |
avg_zscore = zscore_eval.get_group('KGYC')['ASC-US/ASC-H ratio(%)'].mean()
|
| 273 |
-
|
|
|
|
|
|
|
| 274 |
if column_changer == col_options[2]:
|
| 275 |
descript = "**Description:** *Abnormal Rate represents the relative ratio of ASC, SIL and AGC diagnoses. Alterations ( Z Score: <-2) means a level of insecurity that requires attention.*<br><br>"
|
| 276 |
if column_changer == col_options[1] or column_changer == col_options[2]:
|
|
|
|
| 270 |
lab_comment_4 = ""
|
| 271 |
if column_changer == col_options[1]:
|
| 272 |
avg_zscore = zscore_eval.get_group('KGYC')['ASC-US/ASC-H ratio(%)'].mean()
|
| 273 |
+
treshold_1 = 90.0 - avg_zscore*1
|
| 274 |
+
treshold_2 = 10.0 + avg_zscore*1
|
| 275 |
+
descript = f"**Description:** *ASC-US/ASC-H ratio literature reference value 90% / 10%. Given our average laboratory Z score of {avg_zscore:.2f} the attention threshold is at {treshold_1:.2f}% / {treshold_2:.2f}%.* <br><br>"
|
| 276 |
if column_changer == col_options[2]:
|
| 277 |
descript = "**Description:** *Abnormal Rate represents the relative ratio of ASC, SIL and AGC diagnoses. Alterations ( Z Score: <-2) means a level of insecurity that requires attention.*<br><br>"
|
| 278 |
if column_changer == col_options[1] or column_changer == col_options[2]:
|