Skip to content

Commit

Permalink
set padding for the tracks modal to 250b
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthopoulakis committed Dec 9, 2024
1 parent dbdfe57 commit 11caac0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/helpers/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11caac0

Please sign in to comment.