forked from igvteam/igv.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeepcoverage.html
59 lines (44 loc) · 1.53 KB
/
deepcoverage.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
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<link href=../img/favicon.ico rel="shortcut icon">
<title>IGV - Dev</title>
<!-- IGV CSS -->
<link href="css/dev.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h1>1000 Genomes CRAM file</h1>
<div id="igvDiv" style="padding-top: 50px;padding-bottom: 20px; height: auto"></div>
<script type="module">
import igv from "../js/api.js";
var options =
{
reference: {
fastaURL: "../drive-download-20191024T140251Z-001/subpiece_ref.fa",
indexURL: "../drive-download-20191024T140251Z-001/subpiece_ref.fa.fai"
},
tracks: [
{
type: 'alignment',
format: 'bam',
url: '../drive-download-20191024T140251Z-001/subpiece.bam',
index: '../drive-download-20191024T140251Z-001/subpiece.bam.bai',
name: 'subpiece'
}
],
samplingDepth: 5,
samplingWindowSize: 1000
};
var igvDiv = document.getElementById("igvDiv");
igv.createBrowser(igvDiv, options)
.then(function (browser) {
console.log("Created IGV browser");
})
</script>
</body>
</html>