Diff of /exseek/templates/igv.html [000000] .. [4c33d4]

Switch to unified view

a b/exseek/templates/igv.html
1
2
<!DOCTYPE html>
3
<html lang="en">
4
5
<head>
6
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
    <meta charset="utf-8">
8
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
    <meta name="viewport" content="width=device-width, initial-scale=1">
10
    <meta name="description" content="">
11
    <meta name="author" content="">
12
    <link rel="shortcut icon" href="https://igv.org/web/img/favicon.ico">
13
    <title>Integrative Genomics Viewer</title>
14
15
    <!-- IGV JS -->
16
    <script src="https://igv.org/web/release/2.1.0/dist/igv.min.js"></script>
17
18
</head>
19
20
<body>
21
22
<div id="igv-div" style="padding-top: 10px;padding-bottom: 10px; border:1px solid lightgray"></div>
23
24
<script type="text/javascript">
25
26
    document.addEventListener("DOMContentLoaded", function () {
27
28
        var options =
29
        {
30
            locus: "{{ locus }}",
31
            genome: "{{ genome }}",
32
            {% if reference %}
33
            reference: {
34
                id: "{{ reference.id }}",
35
                fastaURL: "{{ reference.fastaURL }}",
36
                indexURL: "{{ reference.indexURL }}",
37
                cytobandURL: "{{ reference.cytobandURL }}"
38
            },
39
            {% endif %}
40
            {% for track in tracks %}
41
            {% if loop.first %}
42
            tracks: [
43
            {% endif %}
44
                {
45
                    type: '{{ track.type }}',
46
                    format: '{{ track.format }}',
47
                    url: '{{ track.url }}',
48
                    {% if 'indexURL' in track %}
49
                    indexURL: '{{ track.indexURL }}',
50
                    {% endif %}
51
                    name: '{{ track.name }}'
52
                }
53
            {% if not loop.last %},{% else %}]{% endif %}
54
            {% endfor %}
55
        };
56
57
        var igvDiv = document.getElementById("igv-div");
58
59
        igv.createBrowser(igvDiv, options)
60
                .then(function (browser) {
61
                    console.log("Created IGV browser");
62
                })
63
64
    });
65
66
</script>
67
68
</body>
69
70
</html>