From 25b843f6bbacb1937bdb960777b73acbece64115 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 24 Feb 2021 14:36:59 -0600 Subject: GENENET8 update --- sourcecodes/network_layout_evd.php | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'sourcecodes/network_layout_evd.php') diff --git a/sourcecodes/network_layout_evd.php b/sourcecodes/network_layout_evd.php index 661caebc..7d97483a 100644 --- a/sourcecodes/network_layout_evd.php +++ b/sourcecodes/network_layout_evd.php @@ -25,11 +25,11 @@ foreach($leve_l as $l) } - /////////////Read data from net_figure file///////////// -$dir="./data/"; - +//$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $keyval=valid_keyval($_GET["My_key"]); @@ -50,7 +50,7 @@ $str_arrmat=explode("\n",$matrix1); if($str_arrmat[2]=="" || $matrix1=="") { ?> -

Error: Unable to display your network structure.

+




Error: Unable to display your network structure.

- + @@ -247,12 +248,19 @@ google.load('visualization', '1', {packages: ['corechart']}); $x_max) $x_max = $ID_data[$i][1]; + if($ID_data[$i][2] > $y_max) $y_max = $ID_data[$i][2]; + $name=$ID_data[$i][0]; - $fname="draw_".$name."()"; + $replaced_char = array("-","/",",",".","!","?"); + $name_replaced = str_replace($replaced_char,"_",$name); + $fname="draw_".$name_replaced."()"; $data_val.=$name; for($j=0;$j<$node;$j++) { @@ -354,7 +362,7 @@ for($i=0;$i<$nnode;$i++) function { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ - [{label:'',type:'number'}, {label:''}], + [{label:"",type:'number'}, {label:''}], + +
-- cgit 1.4.1