How to load user-defined genome in IGV-webapp
0
0
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>
IGV-WEBAPP IGV igv • 724 views
ADD COMMENT
1
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 2071 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6