How to use the igv/dist/igv.removeBrowser function in igv

To help you get started, we’ve selected a few igv examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github macarthur-lab / gnomadjs / projects / gnomad / src / client / VariantPage / reads / IGVBrowser.js View on Github external
igv.createBrowser(this.el, browserConfig).then(browser => {
      if (this.mounted === false) {
        igv.removeBrowser(browser)
        return
      }

      this.browser = browser

      const resetButton = document.createElement('i')
      resetButton.className = 'igv-app-icon'
      resetButton.innerText = '⟲'
      resetButton.title = 'Reset'
      resetButton.style.cssText = `
        position: relative;
        top: -1px;
        font-style: normal;
        font-size: 14px;
        font-weight: bold;
        margin: 0 10px;
github macarthur-lab / gnomadjs / projects / gnomad / src / client / VariantPage / reads / IGVBrowser.js View on Github external
componentWillUnmount() {
    if (this.browser) {
      igv.removeBrowser(this.browser)
    }
    this.mounted = false
  }

igv

Embeddable genomic visualization component based on the Integrative Genomics Viewer

MIT
Latest version published 24 days ago

Package Health Score

84 / 100
Full package analysis