about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-17 16:18:01 +0000
committerPjotr <wrk@bosa.lan>2026-11-17 16:18:01 +0000
commitf2ec41256c3cb6b2952cb06f5f45d97b9814fc82 (patch)
tree60d56c58dc32656767f398ab2e5423501cd6d32a /src
parent14622e57629d19451cad03f4a69fdd89e81a433f (diff)
downloadgenenetwork4-f2ec41256c3cb6b2952cb06f5f45d97b9814fc82.tar.gz
gemma/ravanan: the hmm note reports what it now measures, not the collapse
The note still told callers that hmm collapses to one allele and to
prefer none or mean.  That was true with the allele coded 3; with the
codes fixed the path keeps all 20453 autosomal markers polymorphic and
puts its top at rsm10000005700, p 6.6e-07 -- the locus /compute/qtl2
(3.8916 LOD) and plain GEMMA (5.90e-07) both name.  Before the fix it
was 11912 markers peaking on chromosome 5.

The warning that survives is the honest one: this mode can still fail
quietly if the HMM has nothing to go on, so a surprising scan is worth
checking rather than trusting.
Diffstat (limited to 'src')
-rw-r--r--src/routes/gemma.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/routes/gemma.rs b/src/routes/gemma.rs
index baf4d6d..6ce8bff 100644
--- a/src/routes/gemma.rs
+++ b/src/routes/gemma.rs
@@ -1151,12 +1151,16 @@ async fn prepare_genotypes(
                    file, so every individual is analysed; GEMMA's own treatment is \
                    complete-case per marker, which this replaces)"
             .to_string(),
-        _ => "genotypes: missing calls predicted by R/qtl2's HMM (maxmarg on the \
-              group's cached genotype probabilities, the same calls /compute/qtl2 \
-              maps on).  NOT YET VALIDATED on a riself panel: measured on BXD.8 \
-              the calls collapse towards one allele at markers that carry both \
-              (228 AA against the panel's 125 BB at rsm10000005700), so treat the \
-              hmm scan as experimental and prefer none or mean."
+        _ => "genotypes: the group's R/qtl2 cross, so a missing call is predicted by \
+              the HMM (maxmarg on the same genotype probabilities /compute/qtl2 \
+              maps on) rather than filled with a mean.  The heterozygous calls a \
+              riself panel carries are dropped first, as convert2riself does, and \
+              the HMM re-predicts those too.  Validated on BXD.8 after the allele \
+              codes were fixed (alleles 1 and 2, not 1 and 3): all 20453 autosomal \
+              markers stay polymorphic and the top is rsm10000005700, p 6.6e-07 -- \
+              the locus the other two engines name.  Before that fix it was 11912 \
+              markers with the peak on chromosome 5, so a collapse this mode can \
+              still produce silently is worth checking when a scan looks wrong."
             .to_string(),
     });
     Ok(PreparedGenotypes {