about summary refs log tree commit diff
path: root/scripts/plot-compare.py
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-17 11:31:10 +0000
committerPjotr <wrk@bosa.lan>2026-11-17 11:31:10 +0000
commita3d67c72dfa78840eb846f5d93f6f6326ac32b32 (patch)
tree27c7690e26bdb472274f8286f6f6cb69ef0dca94 /scripts/plot-compare.py
parentab710df0a1502b851292b61a1052585374c40ea3 (diff)
downloadgenenetwork4-a3d67c72dfa78840eb846f5d93f6f6326ac32b32.tar.gz
impute: a monotone genetic map for the HMM, and say hmm is not yet sound
The HMM smooths along a genetic map, and ours is degenerate: the .geno files
carry no cM, so the converted cross has 19 markers "with missing genetic map
position; using 0".  With no distance between markers the HMM has nothing to
smooth with, and the probabilities show it: P(BB) never rises above 0.5 and
every individual is called AA.  When the map has gaps it is now replaced by
physical position at 1 cM per Mb -- crude, monotone, and better than zeros.

That fixed part of it (the spread of calls at a marker went from sd 0.21 to
0.34 where the panel has 0.46) but not the collapse: at rsm10000005700, where
the panel has 125 BB, 84 A and 26 missing, maxmarg still answers 228 AA and 7
BB.  Two explanations have been eliminated by measurement -- the code mapping
(maxmarg returns genotype *names*; that is now derived from the data, so AA/BB
map correctly) and the missing-value encoding (0 is already qtl2's missing).
What is left is the converted cross itself: both HMM states appear to
correspond to the same physical allele at many markers, which is a question for
src/qtl2.rs, not for the imputation.

So the reply now says so out loud: "NOT YET VALIDATED on a riself panel ...
treat the hmm scan as experimental and prefer none or mean".  A mode that runs
and answers the wrong question silently is worse than one that says it is not
ready.
Diffstat (limited to 'scripts/plot-compare.py')
0 files changed, 0 insertions, 0 deletions