From a9c518d7c5d51e21b39fc9be197689d28a846433 Mon Sep 17 00:00:00 2001 From: mlarsen5 Date: Mon, 7 Oct 2024 09:20:23 -0400 Subject: [PATCH] coloring the ccr pathogenicity cell added --- cravat/webresult/nocache/js/widgethelper.js | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cravat/webresult/nocache/js/widgethelper.js b/cravat/webresult/nocache/js/widgethelper.js index 88f9f375..e5c9aa53 100644 --- a/cravat/webresult/nocache/js/widgethelper.js +++ b/cravat/webresult/nocache/js/widgethelper.js @@ -693,3 +693,25 @@ function addGradientStopBarComponent (outerDiv, row, header, col, tabName, color } addEl(outerDiv, div); } + +function getCalibrationGradientColor(pathogenicity) { + let color = "" + if (pathogenicity === "Indeterminate") { + color = "#fffff" + } else if (pathogenicity === "BP4 Very Strong") { + color = "#03045e" + } else if (pathogenicity === "BP4 Strong") { + color = "#023e8a" + } else if (pathogenicity === "BP4 Moderate") { + color = "#48cae4" + } else if (pathogenicity === "BP4 Supporting") { + color = "#ade8f4" + } else if (pathogenicity === "PP3 Supporting") { + color = "#ffcbd1" + } else if (pathogenicity === "PP3 Moderate") { + color = "#f94449" + } else if (pathogenicity === "PP3 Strong") { + color = "#c30010" + } + return color +} \ No newline at end of file