How to use the igv/dist/igv.createBrowser 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
componentDidMount() {
    const { config, onCreateBrowser } = this.props

    const browserConfig = {
      ...config,
      promisified: true,
    }

    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;

igv

Embeddable genomic visualization component based on the Integrative Genomics Viewer

MIT
Latest version published 7 days ago

Package Health Score

84 / 100
Full package analysis