forked from igvteam/igv.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsars_igv.html
51 lines (35 loc) · 1.36 KB
/
sars_igv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="https://igv.org/web/img/favicon.ico">
<title>igv.js</title>
<!-- IGV JS-->
<script src="dist/igv.min.js"></script>
</head>
<body>
<div id="igv-div" style="padding-top: 10px;padding-bottom: 10px; border:1px solid lightgray"></div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
var igvDiv = document.getElementById("igv-div");
var options =
{
reference: {
id: "sarscov2",
fastaURL: "https://sysbio.informatics.iupui.edu/primer_project/genomes/sarscov2/sars_cov_2.fasta",
indexURL: "https://sysbio.informatics.iupui.edu/primer_project/genomes/sarscov2/sars_cov_2.fasta.fai",
wholeGenomeView: false
},
};
igv.createBrowser(igvDiv, options)
.then(function (browser) {
console.log("Created IGV browser");
})
});
</script>
</body>
</html>