blob: b5e1e89dd574ebceed5adf2052dfd5763f1f1b85 (
plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
|
<head>
<script src="./scripts/d3.v4.min.js"></script>
<script src="./scripts/create_table.js"></script>
<?php
include("header_new.inc");
include("input_validate.php");
$keyval=valid_keyval($_GET["My_key"]);
$dir="./data/";
//$dir="/tmp/bnw/";
$score_file = $dir.$keyval."structure_input_temp.txt";
$mat_file = $dir.$keyval."structure_input.txt";
?>
</head>
<!-- Site navigation menu -->
<ul class="navbar2">
<li class="noHover"><p>Network ID:<br><?php print($keyval);?></p></a></li>
<li><a href="about_this_page.php#matrix">About this page</a>
<li><a href="help.php">Help</a>
<li><a href="home.php">Home</a>
</ul>
<body>
<div class="table_div">
<div class="d3_table" id="table_div1">
<script type="text/javascript">
d3.text("<?php print($mat_file);?>", function(error, raw){
var dsv = d3.dsvFormat("\t")
var data = dsv.parse(raw)
var caption_text = "Structure matrix";
if (error) throw error;
tabulate_header_row("#table_div1",data,caption_text);
});
</script>
</div>
<a class=button2 href="<?php print($mat_file);?>">Download structure matrix</a>
<br>
<br>
<?php
$filename1="/tmp/bnw/".$keyval."structure_input_temp.txt";
if(file_exists($filename1))
{
?>
<div class="d3_table" id="table_div2">
<script type="text/javascript">
d3.text("<?php print($score_file);?>", function(error, raw){
var dsv = d3.dsvFormat("\t")
var data = dsv.parse(raw)
var caption_text = "Model averaging scores";
if (error) throw error;
tabulate_header_row("#table_div2",data,caption_text);
});
</script>
</div>
<a class=button2 href="<?php print($score_file);?>">Download model averaging scores<br></a>
<br>
<?php
}
?>
<br>
<br>
<br>
<br>
<br>
</div>
</body>
|