forked from igvteam/igv.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdownsampling.html
64 lines (49 loc) · 1.8 KB
/
downsampling.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
60
61
62
63
64
<!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>Downsampled BAM</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 =
{
genome: "hg19",
locus: "SLC25A3",
tracks: [
{
"type": "alignment",
"name": "Heart SLC25A3",
"format": "bam",
"url": "https://www.dropbox.com/s/tb6vueic5t1bvcv/heart_slc25a3.bam?dl=0",
"indexURL": "https://www.dropbox.com/s/x22tg6s3umkp5yy/heart_slc25a3.bam.bai?dl=0"
},
{
"type": "alignment",
"name": "Heart SLC25A3 - Downsampled",
"format": "bam",
"url": "https://www.dropbox.com/s/tb6vueic5t1bvcv/heart_slc25a3.bam?dl=0",
"indexURL": "https://www.dropbox.com/s/x22tg6s3umkp5yy/heart_slc25a3.bam.bai?dl=0",
samplingDepth: 5,
samplingWindowSize: 1000
}
]
};
var igvDiv = document.getElementById("igvDiv");
browser = igv.createBrowser(igvDiv, options)
.then(function (browser) {
console.log("Created IGV browser");
})
</script>
</body>
</html>