about summary refs log tree commit diff
path: root/sourcecodes/cross_valid.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/cross_valid.php')
-rw-r--r--sourcecodes/cross_valid.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/sourcecodes/cross_valid.php b/sourcecodes/cross_valid.php
index 9ed8ab07..4356b276 100644
--- a/sourcecodes/cross_valid.php
+++ b/sourcecodes/cross_valid.php
@@ -48,7 +48,7 @@ function test_input($data) {
 
 
 <?php
-$varName_file = "/tmp/bnw/".$keyval."name.txt";
+$varName_file = "/var/lib/genenet/bnw/".$keyval."name.txt";
 $varName_line = file_get_contents($varName_file);
 $varNamesArr = explode("\t",$varName_line);
 ?>
@@ -74,14 +74,14 @@ $varNamesArr = explode("\t",$varName_line);
 <div id="outer">
 
 <?php
-  //  $filename1="./data/".$keyval."looCV.txt";
-  //  $filename2="./data/".$keyval."looCV_temp.txt";
-  $dir="/tmp/bnw/";
+  //  $filename1="/var/lib/genenet/bnw/".$keyval."looCV.txt";
+  //  $filename2="/var/lib/genenet/bnw/".$keyval."looCV_temp.txt";
+  $dir="/var/lib/genenet/bnw/";
 $filename1=$dir.$keyval."looCV.txt";
 $filename2=$dir.$keyval."looCV_temp.txt";
    $plotly_file=$dir.$keyval."loo_plotly.html";
-   $plotly_file_local = "./data/".$keyval."loo_plotly.html";
-   $pred_file_local = "./data/".$keyval."looCV.txt";
+   $plotly_file_local = "/var/lib/genenet/bnw/".$keyval."loo_plotly.html";
+   $pred_file_local = "/var/lib/genenet/bnw/".$keyval."looCV.txt";
 if(file_exists($filename2))
  {?>
 <br>
@@ -155,7 +155,7 @@ if(file_exists($filename2))
 
 if($varNameErr=="1")
 {
-  $command = './run_scripts/run_loo '.$keyval.' '.$varName;
+  $command = __DIR__.'/run_scripts/run_loo '.$keyval.' '.$varName;
   //  $command = 'sh plotly_loo.sh'
   $output = shell_exec("$command > /dev/null 2 > /dev/null &");
   $pred_link='cv_predictions.php?My_key='.$keyval;