about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-20 14:53:57 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-20 14:53:57 +0000
commitf681a06b58879968e7b385e22d6c0560fa0588ba (patch)
treed07bc9f9cc84a281fd2bb6e894e5774364ab9957 /scripts
parent7863db3ff8b124c43211572987359e2d69d0951f (diff)
downloadgenenetwork4-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 'scripts')
-rwxr-xr-xscripts/prepare-genotypes.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/prepare-genotypes.sh b/scripts/prepare-genotypes.sh
index 9624e0e..f26e8c7 100755
--- a/scripts/prepare-genotypes.sh
+++ b/scripts/prepare-genotypes.sh
@@ -3,9 +3,10 @@
 # is decided, so the same question can be asked of every engine and the answers
 # compared.
 #
-#   --mode none   leave the file as it is (GEMMA then does complete-case per
-#                 marker and reports n_miss; pangemma cannot represent a gap at
-#                 all, so its store builder refuses this mode)
+#   --mode none   leave the file as it is: GEMMA then does complete-case per
+#                 marker and reports n_miss, and pangemma's lmdb store keeps
+#                 the gaps (NaN for Gf, 255 for Gb) and mean-substitutes them
+#                 per marker exactly as GEMMA does
 #   --mode mean   replace each missing call by that marker's mean over the
 #                 individuals that have one (cheap, but it invents a datum and
 #                 deflates the variance)