From a4de33c1690464b429917b725932ab248c697798 Mon Sep 17 00:00:00 2001 From: Dzmitry Hramyka Date: Tue, 17 Oct 2023 11:49:43 +0200 Subject: [PATCH] fix: Remove 1000 suffix in genome browser coordinates (#146) (#149) --- frontend/src/views/SvDetailView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/SvDetailView.vue b/frontend/src/views/SvDetailView.vue index 4d63ce66..8c08fd8a 100644 --- a/frontend/src/views/SvDetailView.vue +++ b/frontend/src/views/SvDetailView.vue @@ -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}`