diff options
Diffstat (limited to 'info_files/gn4-integration-plan.md')
| -rw-r--r-- | info_files/gn4-integration-plan.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/info_files/gn4-integration-plan.md b/info_files/gn4-integration-plan.md index b0276eb0..c155e782 100644 --- a/info_files/gn4-integration-plan.md +++ b/info_files/gn4-integration-plan.md @@ -1,6 +1,8 @@ # Plan: BNW as a GeneNetwork4 endpoint -Status: **plan, nothing implemented**. Written from the code in this +Status: **Phase 0 and Phase 1 done** (the driver exists and matches the web +application on BNW's own example; see `test/parity_check.py` and the README's +*Headless driver* section). The GN4 endpoint is not started. Written from the code in this repository and from how GN4 already embeds the other engines (`/compute/bulklmm`, `/compute/qtl2`, `/compute/gemma/ravanan`), so that the first commit of real work has a target to hit and a parity test to pass. @@ -166,6 +168,26 @@ Acceptance: byte-identical `structure_input.txt` and `postProbEachEdge.txt` to Phase 0's golden files, and one documented invocation that reproduces the web app's answer. +**Done (2026-11-12).** `bin/bnw` exists; on the six continuous traits of BNW's +own 8-node example its `structure_input.txt` is byte-identical to the +container's, and `test/parity_check.py` checks that plus the input file on every +run. Four things the reference run settled: + +* the input file is header, then a **type line** (1 = continuous, n = n-level + discrete), then data -- `network_score` reads the type before the data, which + is why the web application's `continuous_input.txt` has one more line than the + matrix; +* `structure` exits with an uninitialised status while writing a correct file, + so it must be judged by its output -- the web application ignores the status + and so does the driver; +* `get_kbest_nets.cc` used SGI's `<ext/hash_set>`; it now uses + `std::unordered_set` with an explicit hasher (specialising `std::hash` for a + pointer type is not allowed), and `build.sh` compiles the C with + `-std=gnu89` because the sources predate C99; +* the driver produces `postProbEachEdge.txt` with per-edge posteriors; the web + application's flow leaves none in `/var/lib/genenet/bnw/`, so the posteriors + are new information the endpoint can report. + Acceptance: byte-identical `structure_input.txt` and `postProbEachEdge.txt` to Phase 0's golden files. |
