Skip to content

Commit

Permalink
fix: 1000 suffix in genome coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Oct 17, 2023
1 parent f349e39 commit b1e8238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/SvDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const svLocus = (record: SvRecord): string | undefined => {
let locus: string
if (record.sv_type === 'BND' || record.sv_type === 'INS') {
locus = `${record.chromosome}:${record.start - 1000}-${record.start + 1000}`
locus = `${record.chromosome}:${parseInt(record.start) - 1000}-${parseInt(record.start) + 1000}`
} else {
locus = `${record.chromosome}:${record.start - 1000}-${record.end + 1000}`
locus = `${record.chromosome}:${parseInt(record.start) - 1000}-${parseInt(record.end) + 1000}`
}
if (!locus.startsWith('chr') && record.release === 'GRCh38') {
locus = `chr${locus}`
Expand Down

0 comments on commit b1e8238

Please sign in to comment.