Skip to content

Commit

Permalink
fix: Remove 1000 suffix in genome browser coordinates (#146) (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Oct 17, 2023
1 parent 65dcbdc commit a4de33c
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 a4de33c

Please sign in to comment.