about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-22 13:58:46 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-22 13:58:46 +0000
commit67333998a42bd4055dc2011645d6859bf1e24a7c (patch)
treea9353a358ad9d249f053f6bf00485cc6e462298c /scripts
parentca32dd4c8c64f8fa5ed18b30fe2594dbe9f5ad98 (diff)
downloadgenenetwork4-67333998a42bd4055dc2011645d6859bf1e24a7c.tar.gz
gemma: pad the phenotype over the genotype file's individuals, never narrow the file
The phenotype and the genotype file must describe the same animals in the same
order, and this route was making that true by *narrowing the genotype file* to
the animals with values.  That is the side that can drift: `write_subset_bimbam`
splits a line on ',' alone, while HSNIH-Palmer_true's BIMBAM is
whitespace-separated, so every line fell into its "fewer than four fields"
branch and was copied unchanged -- a "subset" byte-identical to the 3.9 GB
original, 6,147 columns, against a 6,111-row phenotype.  GEMMA then failed
every one of the 134,918 markers with "6147 != 6111", printing the offending
marker line each time: 3.9 GB of stderr per job, ~204 GB of store logs, and the
filesystem at 100 %.

Now the alignment covers the whole panel and excluded animals are NA rows,
which GEMMA drops from the fit (and from -gk, where -p only names who is
analysed).  One invariant instead of two writers, and no 3.9 GB copy per
request either.

Measured: HSNIH-Palmer_true trait 10404, engine pangemma, from a fully deleted
ravanan store: 14 m 48 s cold, 133,116 rows, no per-marker errors.  The peak is
**chr1 247.86 Mb, LOD 4.78** -- and the previously reported chr5 24.6 Mb / 5.73
was computed with a scrambled phenotype (6,111 keep-order rows paired against
the first 6,111 store samples), so that number is withdrawn.  R/qtl (HK) on the
same trait gives chr3 150.58 Mb, LOD 6.25, so an LMM-vs-HK difference remains to
be explained; the alignment bug is not it any more.

The store's sample order was verified equal to the .geno header order (first
marker 6147/6147, 136 markers spread across the genome with no positional
mismatch), which is what makes a positional phenotype against an lmdb store
sound at all.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions