Skip to content

Commit

Permalink
Fix issue with IGV center line being shifted right.
Browse files Browse the repository at this point in the history
  Update IGV.js package and import to pull fix from upstream package.
  Fix issue #23
  • Loading branch information
grosscol committed Nov 28, 2023
1 parent c70b46b commit 76763fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bravue",
"version": "0.15.1",
"version": "0.15.2",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand All @@ -25,7 +25,7 @@
"core-js": "^3.6.5",
"d3": "^7.1.1",
"devbridge-autocomplete": "^1.4.11",
"igv": "^2.10.4",
"igv": "^2.15.11",
"just-clone": "^3.2.1",
"sinon": "^14.0.2",
"tabulator-tables": "^4.9.3",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Reads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</template>

<script>
import igv from "igv"
import igv from "igv/dist/igv.esm.js"
import axios from "axios"
import { inject } from "vue"
axios.defaults.withCredentials=true
Expand Down Expand Up @@ -128,7 +128,7 @@ export default {
}
this.loading = false;
this.$nextTick(function () {
this.options.locus = `${this.variant.chrom}:${this.variant.pos - 100}-${this.variant.pos + 99}`;
this.options.locus = `${this.variant.chrom}:${this.variant.pos}`;
let self = this;
igv.createBrowser(this.$refs.igv, this.options).then(function(browser) {
igv.browser = browser
Expand Down

0 comments on commit 76763fb

Please sign in to comment.