Skip to content

Commit

Permalink
fix: Revel score for nonsense variant (#126) (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Oct 17, 2023
1 parent bc251d3 commit d501d98
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ uvicorn = "*"
alembic = "*"
requests = "*"
types-requests = "*"
greenlet = "*"

[dev-packages]
aiosqlite = "*"
Expand Down
10 changes: 5 additions & 5 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions frontend/src/components/VariantDetails/ScoreDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,13 @@ const getColorByName = (name: string): string => {
return getColorByValue(0.88)
case 'pathogenicVeryStrong':
return getColorByValue(1)
default:
return 'white'
}
return 'white'
}
const circleFill = computed((): string => {
if (props.value === null) {
return 'white'
} else if (props.benignVeryStrongUpper !== null && props.value < props.benignVeryStrongUpper) {
if (props.benignVeryStrongUpper !== null && props.value < props.benignVeryStrongUpper) {
return getColorByName('benignVeryStrong')
} else if (props.benignStrongUpper !== null && props.value < props.benignStrongUpper) {
return getColorByName('benignStrong')
Expand Down
15 changes: 9 additions & 6 deletions frontend/src/components/VariantDetails/VariantTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ const decodeMultiDbnsfp = (s: string): number | null => {
if (!s) {
return null
} else {
return Math.max(
...s
.split(';')
.filter((s) => s != '.')
.map(parseFloat)
)
const vals = s
.split(';')
.filter((s) => s != '.')
.map(parseFloat)
if (!vals.length) {
return null
} else {
return Math.max(...vals)
}
}
}
Expand Down

0 comments on commit d501d98

Please sign in to comment.