From 9483c0aad6073c7a97d8fb6dc26d35cc017e88cf Mon Sep 17 00:00:00 2001 From: Jim Robinson Date: Mon, 16 Nov 2020 08:18:58 -0800 Subject: [PATCH] UCSC exon parsing bug. Fixes #1222 --- js/feature/decode/ucsc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/feature/decode/ucsc.js b/js/feature/decode/ucsc.js index 985fbdc50..91fd7e25a 100644 --- a/js/feature/decode/ucsc.js +++ b/js/feature/decode/ucsc.js @@ -102,8 +102,8 @@ function decodeBed(tokens, header) { return feature; } - const exonSizes = tokens[10].split(','); - const exonStarts = tokens[11].split(','); + const exonSizes = tokens[10].replace(/,$/, '').split(','); + const exonStarts = tokens[11].replace(/,$/, '').split(','); if (!(exonSizes.length === exonStarts.length && exonCount === exonSizes.length)) { return feature; }