Skip to content

Commit 70282c9

Browse files
committed
wc: update color mapping and scoring thresholds in variant summary deleteriousness
1 parent 8b80608 commit 70282c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/webcomponents/variant/annotation/variant-summary-deleteriousness.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ export default class VariantSummaryDeleteriousness extends LitElement {
193193
const q = qualitative.toLowerCase().trim();
194194

195195
const colorMap = [
196-
{ keywords: ["benign", "tolerated", "low", "bottom 90%"], color: "#13a574" },
197-
{ keywords: ["potentially pathogenic", "possibly damaging", "top 10%"], color: "#f7b233" },
196+
{ keywords: ["benign", "tolerated", "none", "bottom 90%"], color: "#13a574" },
197+
{ keywords: ["potentially pathogenic", "possibly damaging", "low", "top 10%"], color: "#f7b233" },
198198
{ keywords: ["moderate", "top 5%"], color: "#dd7a16" },
199199
{ keywords: ["likely pathogenic", "probably damaging", "top 1%"], color: "#d9534f" },
200200
{ keywords: ["deleterious", "damaging", "pathogenic", "high", "top 0.1%"], color: "#d9534f" },
@@ -236,9 +236,9 @@ export default class VariantSummaryDeleteriousness extends LitElement {
236236
console.log("fallback spliceai")
237237
if (score >= 0.8) return "High";
238238
if (score >= 0.5) return "Moderate";
239-
//if (score >= 0.2) return 'Low';
240-
// return 'Minimal/None';
241-
return "Low";
239+
if (score >= 0.2) return 'Low';
240+
return 'None';
241+
// return "Low";
242242
default:
243243
return '';
244244
}

0 commit comments

Comments
 (0)