diff --git a/src/helpers/utility.js b/src/helpers/utility.js index ca4e626..4e6b0cb 100644 --- a/src/helpers/utility.js +++ b/src/helpers/utility.js @@ -1036,14 +1036,8 @@ export function transformFilteredEventAttributes(filteredEvents) { const snvMatch = regex.exec(event.Variant_g); const snvStartPoint = parseInt(snvMatch[2]); const snvEndPoint = parseInt(snvMatch[3]); - const geneStartPoint = parseInt(startPoint); - const geneEndPoint = parseInt(endPoint); - - let padding = - snvStartPoint - geneStartPoint > geneEndPoint - snvEndPoint - ? snvStartPoint - geneStartPoint - : geneEndPoint - snvEndPoint; - padding += 1000; + + let padding = 250; startPoint = parseInt(snvStartPoint - padding); endPoint = parseInt(snvEndPoint + padding); location = event.Variant_g;