From b1e823811c68f62571b77094f48062e6bc172e0b Mon Sep 17 00:00:00 2001 From: gromdimon Date: Tue, 17 Oct 2023 11:43:06 +0200 Subject: [PATCH] fix: 1000 suffix in genome coordinates --- 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}`