about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-21 18:52:12 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-21 18:52:12 +0000
commitfd5807024b0b5553cbe6e7d6d2bf717d50ef8b05 (patch)
tree178ec42759e7fc4543b24baab66b17f0bbb26243 /src
parent5b68da6479da03e9bf7f00ae3094561349980aa7 (diff)
downloadgenenetwork4-fd5807024b0b5553cbe6e7d6d2bf717d50ef8b05.tar.gz
scripts: a .geno to BIMBAM projector that refuses to guess the projection
HET3-ITP's `bimbam/HET3-ITP.*` pair is empty -- 5.76 M cells, all "NA" -- which
is why every GEMMA route answers 422 no_samples_aligned on a panel that is
45.8% dense in the `.geno` R/qtl reads.  The converter that made those files
only understood the biallelic letter codes a `.geno` header declares, and a
four-founder panel writes numeric ones.

This adds the tool that can regenerate such a pair, and the experiment that
says what a 4-way panel actually needs.  Tried the only contrast the header
supports -- parent-of-origin, maternal codes 1,2 -> 0, paternal 3,4 -> 1, mixed
5..8 -> 0.5 (order-insensitive, so it cannot transpose two founders):

  - the pair it produced is real: 2,639,235 of 5,757,171 calls, 893 markers;
  - pangemma ran on HET3-ITP trait 10000 for the first time: 1314 s (21.9 min,
    893 markers x 6447 individuals, one LOCO eigen decomposition per
    chromosome on a 2-CPU node), HTTP 200;
  - and it found nothing: 881 of 893 markers came out with exactly zero
    variance, because an advanced 4-way intercross is ~99.4% heterozygous, so
    "maternal versus paternal dosage" is a constant.

So the mechanism works and the contrast does not.  What HET3 needs is a
founder contrast (the dosage of one founder's allele), whose numeric-code ->
founder-pair table is in neither the `.geno` header, this repository, nor the
panel's `rdata/HET3-ITP.RData` (qtl2 allele-probability arrays, not calls).
`--codes` is therefore required rather than defaulted: a guessed table
produces a silently empty projection, which is exactly how the shipped pair
came to be 23 MB of NA.

The data is unchanged: the stubs were restored after the experiment.
docs/genotypes.md now records this, since it previously described the pair as
"a biallelic projection" when in this deployment it carries nothing.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions