Skip to content

Commit

Permalink
VALIS-43-added-2nd-highlight-line
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldello committed Oct 22, 2021
1 parent 1bef847 commit 1013c18
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 41 deletions.
93 changes: 53 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"domready": "^1.0.8",
"form-serialize": "^0.6.0",
"framer-motion": "^4.1.17",
"genome-visualizer": "git://github.com/ENCODE-DCC/valis-hpgv.git#1.8.0",
"genome-visualizer": "git://github.com/ENCODE-DCC/valis-hpgv.git#VALIS-43-added-2nd-highlight-line",
"google-analytics": "file:node_shims/google-analytics",
"graphlib": "git://github.com/ENCODE-DCC/graphlib.git#v1.0.8",
"immutable": "^3.7.5",
Expand Down
3 changes: 3 additions & 0 deletions src/encoded/static/components/genome_browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,13 @@ class GenomeBrowser extends React.Component {

drawTracks(container) {
const { contig, x0, x1, trackList } = this.state;
const highlightLocation = Math.floor((x1 + x0) / 2);
const highlightString = `${contig}:${highlightLocation}`;
const visualizer = new this.GV.GenomeVisualizer({
clampToTracks: true,
reorderTracks: true,
removableTracks: false,
highlightLocation: highlightString,
panels: [{
location: { contig, x0, x1 },
}],
Expand Down

0 comments on commit 1013c18

Please sign in to comment.