diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-19 11:43:07 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-19 11:43:07 +0000 |
| commit | 333965fa18fa2d837b9fda7935bb6bbc4c8ca9ce (patch) | |
| tree | e2afba119bd1c475b72b6b53fbd456a56c89ef08 /scripts/plot-gemma.py | |
| parent | 0f1d324c4a2186dee71e99d35aaaa41c9f7481b6 (diff) | |
| download | genenetwork4-333965fa18fa2d837b9fda7935bb6bbc4c8ca9ce.tar.gz | |
gemma/ravanan: the pangemma/lmdb workflow, one job per chromosome
The pangemma twin of gemma-loco.scm: same two steps, same scatter, same outputs, and only the engine and the genotype store differ. It is a separate workflow rather than a flag because the store replaces two of the three genotype inputs -- pangemma reads the chromosome from the store's key and needs neither `-g` BIMBAM nor the `-a` annotation that tells GEMMA which markers are on which chromosome. The store is built once per panel by gemma-wrapper's bin/geno2mdb.py, as float32 for Gf or one byte for Gb. Gf is exact for a mean-genotype panel like BXD (0, 0.5, 1 all fit), and Gb is 4x smaller but exact only for integer calls (0/1/2 -> 0/127/254), so a BXD store in Gb moves the p-values in the third decimal. Measured on HLC (integer calls, 358454 markers): the same 23 chromosomes take 141 s of cluster job time here against 958 s for gemma on BIMBAM, with identical rows. Missing genotypes stay missing in the store (255 for Gb, NaN for Gf), and pangemma drops and mean-substitutes them per marker exactly as GEMMA does, so this path needs no imputation step -- the imputation exists because an older pangemma could not hold a gap in its GRM. Verified: Gf stores do carry the gaps, and the p-values are identical either way. The chromosome list is still derived from the panel's SNP map by the caller (src/gemma.rs), because CWL's scatter needs a concrete array; `-outdir .` keeps each job's outputs flat and unique by chromosome, as in gemma-loco.scm. manifest-mdb.scm resolves the steps' commands against pangemma-git, which installs the binary under that name so one profile can hold both engines. Not yet reachable through the API: wiring it behind /compute/gemma needs a per-panel store cache and an engine selector in the request. So far it has only been driven by hand, through ravanan on Slurm.
Diffstat (limited to 'scripts/plot-gemma.py')
0 files changed, 0 insertions, 0 deletions
