Skip to content

Commit

Permalink
UCSC exon parsing bug. Fixes #1222
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Nov 16, 2020
1 parent 0b3fe56 commit 9483c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/feature/decode/ucsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9483c0a

Please sign in to comment.