about summary refs log tree commit diff
path: root/test/python/test_groups.py
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-14 04:30:26 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-14 04:30:26 +0000
commit7ff1543f8649b4e04d6ccfd012ae8d2403f2e0a7 (patch)
tree338fb955f85c3c587bb920f584083e79c2859fe9 /test/python/test_groups.py
parent0e017416628d72ae9814b8225d17f62b28f855ee (diff)
downloadgenenetwork4-7ff1543f8649b4e04d6ccfd012ae8d2403f2e0a7.tar.gz
ravanan: name the workflow inputs by content, so a repeat request is warm
compute_ravanan wrote <pid>-<nanos>-pheno.txt, -ravanan-inputs.yaml and
-gemma-loco.cwl, so ravanan's (script, inputs) work-reuse key was new on
every call and a repeat of the identical request recomputed all 40
steps.  Naming them by a hash of the request's inputs (genotype path and
size, snps contents, trait values, lmm) makes an identical request hit
the store instead.

Measured on the BXD fixture, full 20-chromosome LOCO mapping,
single-machine: 14.3 s cold, 1.6 s warm, identical .assoc.txt checksums.
For comparison the gemma-wrapper stack costs 11.9 s cold and 12.1 s
warm -- its own cache did not hit on a repeat here -- so the ravanan
path is now the cheaper one for any repeated request and the slightly
dearer one for a first request.

The run log stays per-call: it is what a caller streams by run_id.  The
three shared files are written aside and renamed, so two concurrent
identical requests cannot read a half-written file.
Diffstat (limited to 'test/python/test_groups.py')
0 files changed, 0 insertions, 0 deletions