Skip to content

Commit

Permalink
Handle missing consequence mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
grosscol committed Jul 18, 2023
1 parent 6e05eed commit 438b8cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bravue",
"version": "0.12.5",
"version": "0.12.6",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
1 change: 1 addition & 0 deletions src/assets/snv_consequences.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.badge--transcript_ablation { color: #fb0007;}
.badge--splice_acceptor_variant { color: #fc4016;}
.badge--splice_donor_variant { color: #fc4016;}
.badge--splice_donor_5th_base_variant { color: #fc4016;}
.badge--stop_gained { color: #fb0007;}
.badge--frameshift_variant { color: #8000c9;}
.badge--stop_lost { color: #fb0007;}
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/GeneSNVTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
let html = ""
let annotations = cell.getValue()
if (annotations.length > 0) {
let title = snvConsequences[annotations[0]].title
let title = snvConsequences[annotations[0]].title || annotations[0]
let cssClass = `badge--${annotations[0]}`
html += `<div class="snvtable__cell--clickable" role="button">`
html += `<span class="badge badge-light clickable ${cssClass}" style="">${title} </span>`
Expand Down
4 changes: 4 additions & 0 deletions src/domainModel/snvConsequences.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export default {
title: "splice donor",
desc: "A splice variant that changes the 2 base region at the 5' end of an intron"
},
"splice_donor_5th_base_variant": {
title: "splice donor_5th",
desc: "A sequence variant that causes a change at the 5th base pair after the start of the intron in the orientation of the transcript."
},
"transcript_amplification": {
title: "transcript amplification",
desc: "A feature amplification of a region containing a transcript"
Expand Down

0 comments on commit 438b8cd

Please sign in to comment.