From c4f926438dcb8abe805e910399940f79ff643c4b Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Thu, 14 Sep 2017 15:39:41 -0500 Subject: Add files via upload --- sourcecodes/graphviz_structure.php | 97 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 sourcecodes/graphviz_structure.php (limited to 'sourcecodes/graphviz_structure.php') diff --git a/sourcecodes/graphviz_structure.php b/sourcecodes/graphviz_structure.php new file mode 100644 index 00000000..251c7557 --- /dev/null +++ b/sourcecodes/graphviz_structure.php @@ -0,0 +1,97 @@ + + + + %s;\n",$ii,$j); + //fprintf($fouttemp,"%s -> %s;\n",$row_name,$col_name); + + } + } + + +} +fwrite($fout,"$endstring"); +//fwrite($fouttemp,"$endstring"); + +//shell_exec('/usr/bin/dot -Tpng -o /var/www/html/compbio/BNW/graphviz.jpg /var/www/html/compbio/BNW/graphviztemp.txt'); + +$file1="./data/".$keyval."run_initialstructure.sh"; +$initiallines=file_get_contents("./data/temp_shell_file_initial_structure"); +$all_lines="$initiallines"."$keyval\nfi\nexit"; +$fp = fopen($file1,"w"); +fwrite($fp, "$all_lines\n"); +fclose($fp); +//prepare and execute shell script for matlab with a write lock +//$cmd="./runmat.sh $keyval"; +//system($cmd); +shell_exec('./runmat.sh '.$keyval); +?> + + + + -- cgit 1.4.1