-
Notifications
You must be signed in to change notification settings - Fork 22
/
example-das-reader.html
42 lines (36 loc) · 1.29 KB
/
example-das-reader.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
<html>
<head>
<title>pViz, DASReader example</title>
<link rel="stylesheet" type="text/css" href="deps/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="deps/pviz-core.css">
<script src="deps/pviz-bundle.min.js"></script>
<!-- just a few lines of javscript to decorate the page -->
<script src="examples-utils.js"></script>
</head>
<body class="container">
<div class="row">
<h2>pViz, DASReader example</h2>
</div>
<div id="main" class="row"></div>
<div class="row">
<h3>Comments</h3>
Protein sequence and features are retrieved from ebi/uniprot DAS server
<br/>
Zoom by dragging mouse and out by double-clicking
</div>
<script class="example">
//namespace handling pViz classes
var pviz = this.pviz;
var dasReader = new pviz.DASReader()
dasReader.buildSeqEntry("Q01279", {
getFeatures : true,
success : function(se) {
new pviz.SeqEntryAnnotInteractiveView({
model : se,
el : '#main'
}).render();
}
});
</script>
</body>
</html>