diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-12 16:37:01 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-12 16:37:01 +0000 |
| commit | 84ad4d1e3f96ad45fdf3d72abfbcf516802e4532 (patch) | |
| tree | fc922095aee5c443ecfa5510848334350fc9c7fa /sourcecodes/data/old/initialstructure | |
| parent | 7daeb84295f076fb38dcc80d226e85471719a873 (diff) | |
| download | gn-bnw-84ad4d1e3f96ad45fdf3d72abfbcf516802e4532.tar.gz | |
Plan: a headless driver here, a call-out in GN4, and the parameters measured
Two corrections from the owner, both structural, so the plan is rewritten around them rather than patched. The split: BNW's knowledge stays in this repository. Phase 1 becomes a headless driver with a contract GN4 can code against -- `bnw learn --input matrix.tsv --maxparents 4 --k 1 --tiers 3 --threshold 0.5 [--ban] [--white] [--format json|tsv] [--svg] [--workdir] [--keep]`, stdout as one edge per line plus a header naming the parameters and version, exit 2 for bad input and 3 for a failed computation -- with a private work directory per invocation instead of /var/lib/genenet/bnw, the parameters as arguments instead of <key>*.txt files, and no PHP, web server or /var/www. Acceptance is unchanged: byte-identical structure_input.txt and postProbEachEdge.txt against the web app's own answer. GN4's side is then a call-out and nothing more: BNW_CMD in config, a matrix in a temp file, one subprocess, edges parsed out. No knowledge of run.sh, of the C programs or of the <key> layout enters GN4, so they can change without a GN4 release. The guix.scm dependency lands last, once the driver works -- gn-bioinformatics/gn/packages/bnw.scm already pins this repository. The parameters are now measured rather than guessed. GN2 sends none: send_to_bnw.py builds only the payload (traits' shared samples, comma-joined rows, semicolon-terminated, My_Genenet) and the user picks parameters in BNW's own settings page afterwards. BNW's defaults are in sourcecodes/create_tiers_gom_part1.php, which writes parent.txt, k.txt and thr.txt from a | -joined form value: maxparents 4 (with an "All" option capped at variables-1), k 1 (no model averaging), tiers 3, edge-posterior threshold 0.5. A single-call endpoint has to expose all four, because the UI step that would set them is gone. Licence question settled by the owner: we own the code, so shipping the binaries in GN4's profile needs no third-party permission. The repository still has no LICENSE/COPYING and the C sources carry no header -- worth adding before GN4 distributes it.
Diffstat (limited to 'sourcecodes/data/old/initialstructure')
0 files changed, 0 insertions, 0 deletions
