diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-16 00:30:52 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-16 00:30:52 +0000 |
| commit | 278855bd0014094a9d3fcf81ef387e1aa7a89068 (patch) | |
| tree | d2c12bb182ab6f663355bb5dc6259eed939b675e /test/python/test_dev_token.py | |
| parent | 1ae2f5d712e18c016fdb7bd04da99eab4da6915b (diff) | |
| download | genenetwork4-278855bd0014094a9d3fcf81ef387e1aa7a89068.tar.gz | |
gemma: suggest BulkLMM rotations for a threshold, with the numbers
GEMMA's reply offered R/qtl as the way to get significance thresholds, which is the wrong advice for a relatedness-structured panel: haley-knott's permutation shuffles phenotypes without regard to the kinship, so its null is anti-conservative exactly where an LMM was chosen in the first place. BulkLMM is the same model family as this scan and permutes by rotating the data through the kinship decomposition, so its thresholds do respect relatedness -- and it is fast. The 200 reply now carries three actions in order: draw it (/plot/gemma), POST /compute/bulklmm with a ready-to-post body (group, trait_name, samples, nperm 500, seed 1), then POST /compute/rqtl relabelled as a non-LMM cross-check with a warning that its threshold is anti-conservative here. Measured on BXD trait 10001, so the text asserts nothing it has not seen: GEMMA's best marker is rsm10000005700 on chr8 (p_lrt 5.9e-07, -log10 p 6.23) and BulkLMM's best is the same marker (LOD 3.866, beta -0.0615) -- at the peak the two LMM families agree on the locus. Their thresholds are not interchangeable: with 500 rotations BulkLMM's 0.05 threshold is LOD 3.78 (the peak clears it, and a second seed gave 3.62), while R/qtl2's LOCO scan1perm on the same trait and permutation count gives 2.62, so a global kinship is the stricter null; and LOD 3.87 and -log10 p 6.23 are different scales for one marker, so a BulkLMM threshold must never be compared with a GEMMA p-value directly. The 422 permutations_not_supported text quotes the same measurements instead of prose, and the suggested body was run verbatim to check it: POST /compute/bulklmm with it returns 200, 21056 rows, and the threshold note "500 rotations (seed 1): alpha 0.01 LOD 4.10, alpha 0.05 LOD 3.62".
Diffstat (limited to 'test/python/test_dev_token.py')
0 files changed, 0 insertions, 0 deletions
