forked from sutthidaAlizzabeth/BSI-Visualisation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testjs.html
executable file
·45 lines (44 loc) · 1.03 KB
/
testjs.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
<!DOCTYPE html>
<html>
<head>
<title>JS</title>
</head>
<body>
<script type="text/javascript">
var cytosol = [{
"substance": "Sucrose[c]",
"name": "v279",
"target_arrow": "triangle",
"pathway": "sucrose/starch metabolism pathway",
"flux": 0.00543344699046283,
"abbr": "R00802_c",
"source_arrow": "none"
}, {
"substance": "H2O[c]",
"name": "v279",
"target_arrow": "triangle",
"pathway": "sucrose/starch metabolism pathway",
"flux": 0.00543344699046283,
"abbr": "R00802_c",
"source_arrow": "none"
}, {
"product": "beta-D-Fructose[c]",
"name": "v279",
"target_arrow": "triangle",
"pathway": "sucrose/starch metabolism pathway",
"flux": 0.00543344699046283,
"abbr": "R00802_c",
"source_arrow": "none"
}];
// Get value
var games = new Array();
var publishers = new Array();
var edges = new Array();
for(i=0;i<cytosol.length;i++){
if (cytosol[i].product != undefined) {
console.log(cytosol[i].product);
}
}
</script>
</body>
</html>