Skip to content

Commit

Permalink
feat: integrate plotly-based clinvar landscape (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 6, 2024
1 parent 538bfc0 commit ec7641e
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 4 deletions.
41 changes: 41 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@
"@protobuf-ts/runtime": "^2.9.3",
"@reactgular/chunks": "^1.0.1",
"@types/luxon": "^3.4.2",
"downsample": "^1.4.0",
"igv": "^2.15.11",
"luxon": "^3.4.4",
"plotly.js-dist": "^2.29.0",
"title-case": "^4.3.1",
"vega": "^5.27.0",
"vega-embed": "^6.24.0",
Expand Down Expand Up @@ -87,6 +89,7 @@
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-vue": "^9.21.1",
"jsdom": "^24.0.0",
"jsdom-worker": "^0.3.0",
"path": "^0.12.7",
"prettier": "^3.2.5",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/GeneClinvarCard/GeneClinvarCard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe.concurrent('GeneClinvarCard.vue', async () => {
expect(wrapper.text()).toContain('ClinVar Information')
const clinvarImpact = wrapper.findComponent({ name: 'ClinvarImpact' })
expect(clinvarImpact.exists()).toBe(true)
const variationLandscape = wrapper.findComponent({ name: 'VariationLandscape' })
const variationLandscape = wrapper.findComponent({ name: 'VariationLandscapePlotly' })
expect(variationLandscape.exists()).toBe(true)
const clinvarFreqPlot = wrapper.findComponent({ name: 'ClinvarFreqPlot' })
expect(clinvarFreqPlot.exists()).toBe(true)
Expand Down
7 changes: 5 additions & 2 deletions src/components/GeneClinvarCard/GeneClinvarCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ import ClinvarImpact from './ClinvarImpact.vue'
// The variation landascape is defined as an async component as rendering it
// may take a while.
const VariationLandscape = defineAsyncComponent(() => import('./VariationLandscape.vue'))
const VariationLandscapePlotly = defineAsyncComponent(
() => import('./VariationLandscapePlotly.vue')
)
/** This component's props. */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const props = defineProps<{
/** Gene per clinvar */
Expand Down Expand Up @@ -53,7 +56,7 @@ const props = defineProps<{
<ClinvarFreqPlot :clinvar-per-gene="clinvarPerGene" />
</v-col>
<v-col cols="12">
<VariationLandscape
<VariationLandscapePlotly
:clinvar-per-gene="clinvarPerGene"
:transcripts="transcripts"
:genome-build="genomeBuild"
Expand Down
Loading

0 comments on commit ec7641e

Please sign in to comment.