Skip to content

Commit

Permalink
wip with fixing the config a bit for gnomad and added the css to make…
Browse files Browse the repository at this point in the history
… that row be horizontal
  • Loading branch information
SeriousHorncat committed Dec 10, 2024
1 parent 3e23ed5 commit 2215466
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions etc/fixtures/initial-seed/annotations-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"genomic_unit_type": "hgvs_variant",
"annotation_source_type": "http",
"url": "https://rest.ensembl.org/vep/human/hgvs/{hgvs_variant_without_transcript_version}?content-type=application/json;refseq=1;vcf_string=1;",
"attribute": ".[] | .vcf_string",
"attribute": ".[] | {\"ensembl_vep_vcf_string\": .vcf_string} ",
"versioning_type": "rest",
"dependencies": ["hgvs_variant_without_transcript_version"],
"version_url": "https://rest.ensembl.org/info/data/?content-type=application/json",
Expand Down Expand Up @@ -233,9 +233,9 @@
"data_source": "Rosalution",
"genomic_unit_type": "gene",
"annotation_source_type": "forge",
"base_string": "https://gnomad.broadinstitute.org/gene/{ensembl_vep_vcf_string}?dataset=gnomad_r4",
"base_string": "https://gnomad.broadinstitute.org/variant/{ensembl_vep_vcf_string}?dataset=gnomad_r4",
"attribute": "{ \"gnomAD_variant_url\": .gnomAD_variant_url }",
"dependencies": ["Ensembl Gene Id"],
"dependencies": ["ensembl_vep_vcf_string"],
"versioning_type": "rosalution"
},
{
Expand Down Expand Up @@ -606,7 +606,7 @@
"genomic_unit_type": "hgvs_variant",
"annotation_source_type": "http",
"url": "https://rest.ensembl.org/vep/human/hgvs/{hgvs_variant_without_transcript_version}?content-type=application/json;CADD=1;refseq=1;vcf_string=1;",
"attribute": ".[] | .vcf_string | split(\"-\") | \"chrom=chr\" + .[0] + \"&pos=\" + .[1] + \"&ref_base=\" + .[2] + \"&alt_base=\" + .[3] ",
"attribute": ".[] | .vcf_string | split(\"-\") | \"chrom=chr\" + .[0] + \"&pos=\" + .[1] + \"&ref_base=\" + .[2] + \"&alt_base=\" + .[3] | {\"opencravat_search_variant_vcf_string\": . }",
"versioning_type": "rest",
"dependencies": ["hgvs_variant_without_transcript_version"],
"version_url": "https://rest.ensembl.org/info/data/?content-type=application/json",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/models/analyses.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const annotationRenderingTemporary = [
}],
'rows': [
{
'class': '',
'class': 'fill-horizontal',
'datasets': [
{
'dataset': 'CADD',
Expand Down Expand Up @@ -426,7 +426,7 @@ const annotationRenderingTemporary = [
'dataset': 'AlphaMissense',
'type': 'score-dataset',
'props': {
'label': 'REVEL',
'label': 'AlphaMissense',
'minimum': 0,
'maximum': 1,
'bounds': {
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/views/AnnotationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/>
</template>
<template #default>
<div v-for="(row, index) in section.rows" :key="`row-${index}`">
<div v-for="(row, index) in section.rows" :key="`row-${index}`" :class="row.class">
<component
v-for="(datasetConfig, index) in row.datasets"
:key="`${datasetConfig.dataset}-${index}`"
Expand Down Expand Up @@ -296,6 +296,12 @@ app-header {
flex: 1
}
.fill-horizontal {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.sidebar {
position: sticky;
height: 90vh;
Expand Down

0 comments on commit 2215466

Please sign in to comment.