diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-16 11:24:26 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-16 11:24:26 +0000 |
| commit | 6f48a70b389f712bd5a53bbd7495cb40954a7eaa (patch) | |
| tree | 79ff90186a14815b7f814ce4ea618b35d128d944 | |
| parent | 9ff458ee52079a2385b231f0b7b629170ecfc6a1 (diff) | |
| download | genenetwork4-6f48a70b389f712bd5a53bbd7495cb40954a7eaa.tar.gz | |
cwl: make the ravanan path use the gemma build the wrapper path uses
`(specifications->manifest (list "gemma"))` resolved to Guix's `gemma`, which is 0.98.5 (banner 2021-08-25); gemma-wrapper pins `gemma-gn2`, which is 0.98.6 (banner 2022-08-05). Same source, different build, and the two paths disagreed in beta by ~3e-3 because of it. Now both name `gemma-gn2`. Verified on the job side: the latest runs' own logs report GEMMA 0.98.6 and OpenBLAS 0.3.31, the same pair the wrapper profile resolves to. The remaining difference is smaller and has a different cause, measured rather than guessed: same path, two cold runs: worst |Δbeta| 5.1e-6 (1034/21055 bit-identical) wrapper vs ravanan: worst |Δbeta| 3.1e-3 their kinship matrices: differ by ~1e-5 cell-wise, same 198 individuals So GEMMA is not reproducible run to run under multithreaded BLAS (both contexts report 96 threads), and the kinship matrix amplifies that by roughly two orders of magnitude into beta. Pinning threads on both paths is what would make the parity gate exact; until then 0.005 is the honest tolerance, and scripts/gemma-compare.py now defaults to exact and says which one it is enforcing. Also notes in the comment that a manifest change alone does not take effect: ravanan keys a step on (script, inputs), so it kept reusing step scripts built against the old manifest until the workflow source changed.
| -rw-r--r-- | cwl/gemma/gemma-loco.scm | 4 | ||||
| -rw-r--r-- | cwl/gemma/manifest.scm | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/cwl/gemma/gemma-loco.scm b/cwl/gemma/gemma-loco.scm index 86041c7..c8e3664 100644 --- a/cwl/gemma/gemma-loco.scm +++ b/cwl/gemma/gemma-loco.scm @@ -18,6 +18,10 @@ ;; step as a CWL File output, and `-o` names each artifact ;; deterministically instead of hashing it. ;; +;; The gemma binary comes from the manifest, so a manifest change must be +;; followed by a cold run: ravanan keys a step on (script, inputs) and will +;; happily reuse a script built when the manifest named something else. +;; ;; CACHING here is ravanan's own store (`--store`), which keys a step on ;; (script, inputs): a repeat request is answered from the store -- 9.4 s ;; cold against ~4 s warm on the BXD fixture. There is no gemma-wrapper diff --git a/cwl/gemma/manifest.scm b/cwl/gemma/manifest.scm index 32be327..e88a59f 100644 --- a/cwl/gemma/manifest.scm +++ b/cwl/gemma/manifest.scm @@ -5,4 +5,13 @@ ;; GEMMA itself, not gemma-wrapper: the workflow invokes `gemma` ;; directly, one invocation per chromosome, since 0.98.6 has -loco ;; natively for both -gk and -lmm (see cwl/gemma/gemma-loco.scm). -(specifications->manifest (list "gemma")) +;; +;; `gemma-gn2`, not `gemma`, and the name is misleading in both +;; directions: Guix's `gemma` is 0.98.5 (banner 2021-08-25, store path +;; gemma-0.98.5) while `gemma-gn2` at version "...-0.98.5-8cd4cdb" +;; builds 0.98.6 (banner 2022-08-05). The two disagree in beta by ~3e-3, +;; which is exactly the parity gap scripts/gemma-compare.py reported +;; between this path and /compute/gemma -- that endpoint runs +;; gemma-wrapper, which pins `gemma-gn2`. Naming it here makes the two +;; paths run one binary; with different builds the gate cannot be exact. +(specifications->manifest (list "gemma-gn2")) |
