How to load user-defined genome in IGV-webapp

How to load user-defined genome in IGV-webapp

0

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

• 18 views

updated 23 minutes ago by

106k

written 2 hours ago by

&utrif;

40

Read more here: Source link