about summary refs log tree commit diff
path: root/src/error.rs
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-17 12:21:18 +0000
committerPjotr <wrk@bosa.lan>2026-11-17 12:21:18 +0000
commit9be4832dd827a3486848bd45960e51111e2e589d (patch)
tree2197ecd2fe1533203f85db5ad6b6112ca056a62f /src/error.rs
parent5419674c1f6635f31095b95ff4c1d5ca0e4fbcdc (diff)
downloadgenenetwork4-9be4832dd827a3486848bd45960e51111e2e589d.tar.gz
qtl2: number the surviving alleles 1..n, because the HMM cannot use 3
A riself cross is converted with its heterozygous calls dropped, so the
CSV carries two genotypes -- but the control file still numbered them
A=1, H=2, B=3.  Allele code 3 does not exist in a two-state HMM: qtl2
read the second allele as unusable, P(BB) never rose above 0.5 at a
marker where 125 of 235 individuals are BB, every individual was called
AA, and the scan was left with nothing of the signal (2.0e-01 where the
same marker is 5.9e-07 from the BIMBAM, /compute/qtl2's own top hit
3.685 LOD elsewhere).

Numbering the genotypes the file actually carries, 1 and 2, gives
agreement with the calls 209 of 209.

The codes now follow the crosstype and the heterozygous policy, and
CONVERSION_VERSION is v5 so no cached cross is reused.  This is a
holding fix: the conversion belongs in an R script, where qtl2's
write_control_file owns this metadata.
Diffstat (limited to 'src/error.rs')
0 files changed, 0 insertions, 0 deletions