Entering edit mode
3.2 years ago
Frieda
▴
60
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="https://cdn.jsdelivr.net/npm/igv@2.8.6/dist/igv.min.js"></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>
You may want to ask this in IGV help forum (https://groups.google.com/g/igv-help ). Jim Robinson (dev of IGV) participates here very infrequently.