Skip to content

Commit

Permalink
Add "quick-start" example. Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Nov 23, 2022
1 parent 647e47d commit 99ad8a0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions examples/quick-start.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<html>
<head>
<title>igv.js embedding example</title>
</head>

<body>

<div id="igvDiv"></div>

<script type="module">

import igv from "https://cdn.jsdelivr.net/npm/[email protected]/dist/igv.esm.min.js"

const config = {
reference: "hg38",
locus: "myc",
tracks: [
{
name: "GM12878 H3K27ac ",
url: "https://www.encodeproject.org/files/ENCFF716VWO/@@download/ENCFF716VWO.bigWig",
color: "rgb(200,0,0)",
type: "wig",
format: "bigwig"
},
{
name: "GM12878 H3K4me3 ",
url: "https://www.encodeproject.org/files/ENCFF669DTI/@@download/ENCFF669DTI.bigWig",
color: "rgb(0,150,0)",
format: "bigwig",
type: "wig"
}
]
}

igv.createBrowser(document.getElementById("igvDiv"), config)

</script>

</body>
</html>
2 changes: 1 addition & 1 deletion js/version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const _version = "2.13.5"
const _version = "2.13.6"
function version() {
return _version
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "igv",
"version": "2.13.5",
"version": "2.13.6",
"main": "dist/igv.esm.js",
"browser": "dist/igv.js",
"module": "dist/igv.esm.js",
Expand Down

0 comments on commit 99ad8a0

Please sign in to comment.