Skip to content

Commit

Permalink
#996 - Symbolic alts - quick links
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Jan 30, 2025
1 parent 5c88733 commit 63ea63f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion variantgrid/static_files/default_static/js/vc_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ let VCLinks = (function() {
range = `chr${parts[1]}%3A${coordinate - 20}-${coordinate + 20}`;
} else if (this.variant_coordinate_symbolic_parts) {
let parts = this.variant_coordinate_symbolic_parts;
range = `chr${parts[1]}%3A${parts[2] - 20}-${parts[3] + 20}`;
let start = parseInt(parts[2]);
let end = parseInt(parts[3]);
range = `chr${parts[1]}%3A${start - 20}-${end + 20}`;
} else {
return new VCLink({
text: 'UCSC',
Expand Down

0 comments on commit 63ea63f

Please sign in to comment.