-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdrug-targets.html
40 lines (33 loc) · 1.19 KB
/
drug-targets.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
<html>
<head>
<meta charset="UTF-8">
<title>Example drug-targets graph</title>
<link href="../jslibs/cytoscape.js-navigator.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.2.16/cytoscape.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="../jslibs/cytoscape-navigator.js"></script>
<script src="./cydraw.js"></script>
</head>
<body>
Network of
<a href=https://www.drugbank.ca/>DrugBank </a>
<span style='color:yellowgreen'>drugs</span>
with their <span style='color:orchid'>targets</span>
which have mention of term "defensin" :
<div id='cy' style="width: 100%; height: 100%;"></div>
<p style="font-size: small; text-align: right">
Graph rendered using
<a href=http://js.cytoscape.org/>Cytoscape.js </a> library
</p>
<script>
jfile = './defensin-targets.json'
fetch(jfile, { mode: 'no-cors' })
.then(function (res) {
return res.json()
})
.then(function (data) {
cydraw(data.elements);
})
</script>
</body>
</html>