Skip to content

Commit

Permalink
fix: Linkout to UCSC (#121) (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Oct 16, 2023
1 parent eb971cb commit 7f9c1e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/VariantDetails/VariantTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ const ucscLinkout = computed((): string => {
return '#'
}
const db = props.smallVar.release === 'grch37' ? 'hg19' : 'hg38'
const prefix = db == 'hg19' ? 'chr' : ''
return (
`https://genome-euro.ucsc.edu/cgi-bin/hgTracks?db=${db}&position=` +
`${prefix}${props.smallVar.chromosome}:${props.smallVar.start}-` +
`${props.smallVar.chromosome}:${props.smallVar.start}-` +
`${props.smallVar.end}`
)
})
Expand Down

0 comments on commit 7f9c1e4

Please sign in to comment.