about summary refs log tree commit diff
path: root/scripts/plot-compare.py
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-22 10:53:07 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-22 10:53:07 +0000
commitca32dd4c8c64f8fa5ed18b30fe2594dbe9f5ad98 (patch)
treed30e44fba06f4bae6716a054846e867c9e2c0097 /scripts/plot-compare.py
parent58de629953a75daad50daca795465784d37c7359 (diff)
downloadgenenetwork4-ca32dd4c8c64f8fa5ed18b30fe2594dbe9f5ad98.tar.gz
gemma: the store step runs gemma-wrapper's geno2mdb binary, not python
The converter became an Odin binary in gemma-wrapper e244f99 and is packaged in
guix-bioinformatics (built in the package, installed as bin/geno2mdb). This
switches the store workflow to it: no interpreter, no python-lmdb, no
PYTHONPATH in the job, which is what the python version cost this deployment
twice -- a hand-exported PYTHONPATH on the API host and three python packages
in the artifact manifest.

Three things had to change, each of them measured:

- `store.scm` runs `#:run "geno2mdb"` and no longer takes the script as a File
  input. ccwl appends every declared input to the command line, so a staged copy
  of the binary arrived as argv[1] and geno2mdb read its own ELF header as the
  BIMBAM file ("16 genotypes, expected 14, line 1").
- the server stops supplying `store_script`; the pre-flight input check named
  the disagreement, as designed.
- artifact runs keep GUIX_PACKAGE_PATH set. Clearing it saved ~4 s of Guile per
  run, but the artifact manifest now names gemma-wrapper, which only exists in
  the channel: cleared, the job died with "gemma-wrapper: unknown package"
  before reading a marker. Correctness over four seconds, and the artifact memo
  means most requests never pay it.

Verified on a cold artifact path (BXD.8, impute=mean, engine=pangemma):
artifacts built in 19,263 ms, 41 cluster jobs (prepare + store + 19 kinship + 20
gwa), workflow 14,793 ms, 21,056 rows. The packaged binary was earlier checked
to produce a store identical to bin/geno2mdb.py's, on BXD.8 and on the 3.9 GB
HSNIH-Palmer_true panel.
Diffstat (limited to 'scripts/plot-compare.py')
0 files changed, 0 insertions, 0 deletions