-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: seqvar quality, clinvar & locus filters (#1856)
- Loading branch information
Showing
44 changed files
with
1,353 additions
and
980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<script setup lang="ts"> | ||
import { Query } from '@/seqvars/types' | ||
import { ClinvarGermlineAggregateDescriptionList } from '@varfish-org/varfish-api/lib' | ||
import { toggleArrayElement } from './utils' | ||
const model = defineModel<Query>({ required: true }) | ||
const GERMLINE_FIELDS = [ | ||
'pathogenic', | ||
'likely_pathogenic', | ||
'uncertain_significance', | ||
'likely_benign', | ||
'benign', | ||
] satisfies ClinvarGermlineAggregateDescriptionList[number][] | ||
const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1) | ||
</script> | ||
|
||
<template> | ||
<v-checkbox | ||
v-model="model.clinvar.clinvar_presence_required" | ||
label="Require ClinVar assessment" | ||
:hide-details="true" | ||
density="compact" | ||
/> | ||
|
||
<div style="padding-left: 16px"> | ||
<v-checkbox | ||
v-for="field in GERMLINE_FIELDS" | ||
:key="field" | ||
:label="capitalize(field.split('_').join(' '))" | ||
:model-value=" | ||
model.clinvar.clinvar_germline_aggregate_description?.includes(field) | ||
" | ||
:hide-details="true" | ||
density="compact" | ||
@update:model-value=" | ||
toggleArrayElement( | ||
model.clinvar.clinvar_germline_aggregate_description, | ||
field, | ||
) | ||
" | ||
/> | ||
|
||
<v-checkbox | ||
v-model="model.clinvar.allow_conflicting_interpretations" | ||
label="Allow conflicting interpretations" | ||
:hide-details="true" | ||
density="compact" | ||
style="margin-top: 8px" | ||
/> | ||
</div> | ||
</template> |
Oops, something went wrong.