Skip to content

Commit

Permalink
Hubs 3 (#1722)
Browse files Browse the repository at this point in the history
* fix problem with genome name aliasing
* refinements to hub loading
      -- as "genome" => only sequence, cytoband, and tracks in group "genes"
      -- as "session" => all tracks in hubs.txt not marked "visibility=hide".
  • Loading branch information
jrobinso authored Oct 26, 2023
1 parent e318ae7 commit 7209cd6
Show file tree
Hide file tree
Showing 13 changed files with 194 additions and 454 deletions.
77 changes: 0 additions & 77 deletions dev/tnt/chm13v2.0.html

This file was deleted.

52 changes: 0 additions & 52 deletions dev/twobit/twobit_aliasBB.html

This file was deleted.

50 changes: 0 additions & 50 deletions dev/twobit/twobit_basic.html

This file was deleted.

37 changes: 0 additions & 37 deletions dev/twobit/twobit_chromSizes.html

This file was deleted.

86 changes: 0 additions & 86 deletions dev/twobit/twobit_t2t.html

This file was deleted.

14 changes: 11 additions & 3 deletions dev/ucsc/hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,29 @@
includeTracks: true
}

const hub = await Hub.loadHub("https://hgdownload.soe.ucsc.edu/hubs/GCA/018/471/515/GCA_018471515.1/hub.txt", hubOptions)
const hub = await Hub.loadHub("https://hgdownload.soe.ucsc.edu/hubs/GCA/009/914/755/GCA_009914755.4/hub.txt", hubOptions)
const ref = hub.getGenomeConfig()

const igvConfig = {
locus: hub.getDefaultPosition(),
showChromosomeWidget: false,
reference: ref
}

// for(let tc of hub.getTrackConfigurations()) {
// for(let t of tc.tracks) {
// if(t.url.endsWith("undefined")) console.log(`${tc.label} ${t.name} ${t.url}`)
// }
// }

const browser = await igv.createBrowser(document.getElementById('igvDiv'), igvConfig)

const selector = document.getElementById("select")
selector.addEventListener("change", () => document.getElementById("hub-input").value = selector.value)

document.getElementById("hub-input").value = "https://hgdownload.soe.ucsc.edu/hubs/GCA/009/914/755/GCA_009914755.4/hub.txt"

document.getElementById("load-genome").addEventListener("click", () =>
browser.loadGenome({url: document.getElementById("hub-input").value}))

document.getElementById("load-session").addEventListener("click", () =>
browser.loadSession({url: document.getElementById("hub-input").value}))

Expand Down
File renamed without changes.
Loading

0 comments on commit 7209cd6

Please sign in to comment.