Hello,
I would like to create a session in IGV-webapp using a HTML file.
The following works with pre-defined genomes (g.e. genome: “hg38”),
but I would like to load my own genome. Is there a way to achieve this?
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script src=""></script>
<div id="igv-div"></div>
<script>
var igvDiv = document.getElementById("igv-div");
var options =
{
genome: "hg38",
locus: "chr8:127,736,588-127,739,371",
tracks: [
{
"name": "",
"url": "",
"indexURL": "",
"format": ""
}
]
};
igv.createBrowser(igvDiv, options)
.then(function (browser) {
console.log("Created IGV browser");
})
</script>
</body>
</html>
```