diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-20 14:53:57 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-20 14:53:57 +0000 |
| commit | f681a06b58879968e7b385e22d6c0560fa0588ba (patch) | |
| tree | d07bc9f9cc84a281fd2bb6e894e5774364ab9957 /src | |
| parent | 7863db3ff8b124c43211572987359e2d69d0951f (diff) | |
| download | genenetwork4-f681a06b58879968e7b385e22d6c0560fa0588ba.tar.gz | |
docs: pangemma's store does hold gaps, so `impute` is optional for both engines
Two places still said pangemma "cannot represent a gap at all" and that its store builder refuses impute=none -- written against an older pangemma. The store keeps them (NaN for Gf, 255 for Gb) and pangemma mean-substitutes per marker as GEMMA does: measured, impute=none through the pangemma engine answers 21,055 rows with `af` identical to GEMMA's on the same panel. What `impute` does change is which markers and individuals map, and it does so before the store is built, so each mode has its own store (they are different genotype files). Measured warm on BXD.8 trait 10001: none 21,055 rows, 20 chromosomes gemma 4.0 s pangemma 3.9 s hmm 20,453 rows, 19 chromosomes gemma 26.8 s pangemma 15.8 s mean 21,056 rows, 20 chromosomes gemma 16.3 s pangemma 16.0 s The hmm figures include the R/qtl2 imputation the first time and reuse it from RAVANAN_CACHE_DIR/imputed/ afterwards; mean maps one marker that complete-case treatment drops, which is why the three are not interchangeable answers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/gemma.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/routes/gemma.rs b/src/routes/gemma.rs index c36c1c2..5beb4db 100644 --- a/src/routes/gemma.rs +++ b/src/routes/gemma.rs @@ -129,9 +129,18 @@ pub struct GemmaRequest { /// per marker and reports `n_miss`), `mean` (each gap takes that marker's /// mean) or `hmm` (R/qtl2's HMM predicts it from flanking markers). The /// last two produce a complete genotype file, which is what a comparison - /// between engines needs: pangemma's LMDB store cannot hold a gap at all. - /// `hmm` needs a group-scoped request, since the cross it predicts from is - /// the group's. + /// between engines needs: a complete file maps one marker more than + /// complete-case treatment does (21,056 against 21,055 on BXD.8), so the + /// two modes are not interchangeable. `hmm` needs a group-scoped request, + /// since the cross it predicts from is the group's. + /// + /// Neither engine needs it: GEMMA does complete-case per marker, and + /// pangemma's store keeps the gaps (NaN for Gf, 255 for Gb) and + /// mean-substitutes them per marker as GEMMA does -- measured: `none` + /// answers 21,055 rows through pangemma with `af` identical to GEMMA's. + /// The mode is applied before the store is built, so each one gets its own + /// store (they are different genotype files) and an already-imputed panel + /// pays the store build once per mode. pub impute: Option<String>, /// Which engine the per-chromosome workflow runs: `gemma` (default, /// gemma-gn2 on BIMBAM) or `pangemma` (the GeneNetwork fork reading an |
