From 7f460113cc9c7eca91935549c25d78a9393e0977 Mon Sep 17 00:00:00 2001 From: Pjotr Date: Mon, 28 Sep 2026 14:48:57 +0000 Subject: container: deployment fixes for the Guix container/VM Changes previously carried as bnw-container-paths.patch in guix-bioinformatics, now applied to the source directly: * unify data directories on /var/lib/genenet/bnw (was /tmp/bnw and ./data/ mixed) * make the shell_exec paths __DIR__-relative and the example/octave helper scripts location-independent, so php-fpm can run them from any working directory * use core-octave randn/exp instead of the statistics-package normrnd/normpdf (not available in the container's octave) * nnodes: strtrim before strfind so the node count parses with the container's octave output * python3 instead of a hardcoded /home/jziebart path * add diag.php, a debug page showing the request and data state * bn_genenet.php: serve the GeneNetwork (GN2) handshake server-side; the My_Gennenet POST is converted (commas -> tabs, semicolons -> newlines) in PHP and the prepared-data page is returned in ONE request. This removes the raw-echo of into a JavaScript string (an XSS hole on public deployments) and is backward compatible for GN2 (same POST, better response). --- sourcecodes/cross_valid.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sourcecodes/cross_valid.php') 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) { @@ -74,14 +74,14 @@ $varNamesArr = explode("\t",$varName_line);

@@ -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; -- cgit 1.4.1