Skip to content

Commit

Permalink
coloring the ccr pathogenicity cell added
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarsen5 authored and kmoad committed Dec 16, 2024
1 parent 8b41efa commit a9c518d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cravat/webresult/nocache/js/widgethelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a9c518d

Please sign in to comment.