about summary refs log tree commit diff
path: root/sourcecodes/run.sh
AgeCommit message (Collapse)Author
2026-10-03run.sh: self-locate the C binaries; fix the production run failurePjotr
run.sh cd'ed to /var/lib/genenet/bnw and ran ./network_score etc RELATIVE to that directory -- depending on the activation having copied the binaries there. On production that copy was incomplete (the binaries live in the bnw PACKAGE store item since 00e5b05f removed the vendored ones and build.sh recompiles them), so every structure-learning run died with "./network_score: No such file or directory". run.sh now locates the binaries next to itself: BNW_BIN_DIR=$(dirname $0)/../var_lib_genenet_bnw which in the package is <out>/sourcecodes/../var_lib_genenet_bnw -- provably present in the store item. The per-run working directory stays /var/lib/genenet/bnw.
2026-09-28container: deployment fixes for the Guix container/VMPjotr
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).
2026-08-24Make all shell scripts executable.Frederick Muriuki Muriithi
The code needs the shell scripts to be executable, otherwise the code will raise an error (Permission Denied).
2021-02-24Moving final GENENET8 version to masterziejd2
2021-02-24GENENET8 updateziejd2
2017-09-14Add files via uploadziejd2