diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-11 15:24:10 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-11 15:24:10 +0000 |
| commit | e1b4f1aeda64b355f68124b196eb8547ca0e26ab (patch) | |
| tree | 2af7168d2bc084b5e26c9b778902acd4cd397241 /docs | |
| parent | 8a0b4059114d2628fe3362c816efcfc4262fc897 (diff) | |
| download | genenetwork4-e1b4f1aeda64b355f68124b196eb8547ca0e26ab.tar.gz | |
docs: how far the GEMMA pve route got
Tried it: passing -pve through gemma-wrapper after -- crashes the wrapper (Ruby backtrace, no output), and the logs the wrapper keeps are the kinship step's -- 223 .log.txt in the cache dir, none containing a pve block, because the per-chromosome LMM logs live in the wrapper's temp dirs and are not retained. Two routes remain, both written down: run GEMMA ourselves (-gk for a text K matrix, then -lmm 1 -pve on one marker, seconds each) and parse 'pve estimate in the null model'; or get -pve into the wrapper's allowlist upstream. The first needs the kinship as plain text, which the wrapper only caches as JSON.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bulklmm.md | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/bulklmm.md b/docs/bulklmm.md index 21e7f48..0833d69 100644 --- a/docs/bulklmm.md +++ b/docs/bulklmm.md @@ -90,11 +90,18 @@ are estimating different things, and it is worth knowing which: **What would settle it, in order of cost:** * **GEMMA's own variance components.** GEMMA prints `pve estimate` and - `se(pve)` in its `.log.txt` when it is run with `-pve`, and gemma-wrapper keeps - the per-chromosome logs under its cache directory (223 `.log.txt` files here, - **none** containing `pve` — the flag is not passed). The change is one - argument on the GWA step and a parser over those logs; then `/compute/gemma` - can report pve per chromosome, as `/compute/bulklmm` reports h2. + `se(pve)` in its `.log.txt` only when run with `-pve`, and the route through + `gemma-wrapper` does not have it: passing `-pve` after `--` **crashes the + wrapper** (Ruby backtrace, no output), and the logs it keeps are the + *kinship* step's — 223 `.log.txt` files under `/tmp/gn4-gemma`, none with a + `pve` block, because the per-chromosome LMM runs write theirs inside + gemma-wrapper's temporary directories and they are not retained. Two routes + remain, neither landed: (a) run GEMMA ourselves for the null fit — `-gk` to + write a text K matrix, then `-lmm 1 -pve` on a single marker, both seconds — + and read `pve estimate in the null model` from its log; (b) ask gemma-wrapper + to forward `-pve` (it is not in its allowlist). (a) needs the kinship as plain + text: the wrapper caches it as JSON under a per-instance cache directory, and + the two attempts at writing it out by hand were not completed. * **BulkLMM's likelihood over an h2 grid.** The package has `BulkLMM.profile_LL(y::Matrix, G, covar, K, h2_grid, markerID; reml)` (internal, not exported), returning `(ll_list_null, ll_list_alt)` over the grid. It wants |
