| Age | Commit message (Collapse) | Author |
|
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.
|
|
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).
|
|
The code needs the shell scripts to be executable, otherwise the code
will raise an error (Permission Denied).
|
|
|
|
|
|
|