about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/bulklmm.md14
-rw-r--r--docs/www/SKILL.md5
2 files changed, 19 insertions, 0 deletions
diff --git a/docs/bulklmm.md b/docs/bulklmm.md
index cc6bc73..8a39798 100644
--- a/docs/bulklmm.md
+++ b/docs/bulklmm.md
@@ -14,6 +14,20 @@ things that are easy to get wrong when a result is quoted.
 | `/compute/qtl2` | LMM, LOCO, HMM probabilities | LOCO | no |
 | `/compute/bulklmm` | LMM, **global** kinship | one K for the whole genome | **yes, cheaply**: rotates by K's eigen decomposition |
 
+**Three ways to get a threshold, in order of honesty for a structured panel:**
+
+| where | null | cost |
+|---|---|---|
+| `/compute/bulklmm` with `nperm` | rotations that keep the kinship | seconds |
+| GEMMA's own `--permutate`, **run locally** | GEMMA's exact LOCO null | one full LOCO scan per permutation: hours |
+| R/qtl `nperm` on the same values | phenotypes shuffled across individuals — relatedness destroyed, anti-conservative on RI lines and DO collapses | minutes |
+
+The GEMMA endpoint does not run permutations: each repeats the whole LOCO scan
+and the gate gives GEMMA one slot. Its refusal says both alternatives — and
+names the files it used (the `bimbam/` pair and the phenotype file) so a user who
+wants GEMMA's own null can reproduce it locally, which is the only way to get
+*that* null.
+
 So BulkLMM is the only engine here that can say *"this peak is genome-wide
 significant at α = 0.05"* against a null that respects relatedness. That is what
 `/compute/gemma`'s `permutations_not_supported` refusal now points at.
diff --git a/docs/www/SKILL.md b/docs/www/SKILL.md
index 33cf516..880b569 100644
--- a/docs/www/SKILL.md
+++ b/docs/www/SKILL.md
@@ -171,6 +171,11 @@ header (peak and, for GEMMA, the Bonferroni line).
   depend on relatedness, or when the panel is multiparent; it is slower than
   `/compute/rqtl` (a DO cross costs minutes of genotype probabilities, cached
   per panel). Autosomes only, and `notes` says what was left out.
+* **Need a GEMMA threshold?** This API refuses `nperm` on GEMMA (one LOCO scan
+  per permutation, one GEMMA slot). Two routes: `/compute/bulklmm` with
+  `nperm` (rotation null, seconds), or run GEMMA's own `--permutate` locally on
+  the files the reply names (exact GEMMA null, hours). R/qtl's `nperm` is a
+  sanity check only — its null ignores relatedness.
 * **Need a threshold, not just a LOD?** `POST /compute/bulklmm` (BulkLMM.jl)
   fits an LMM per marker with a global kinship matrix and permutes by rotation,
   so `"nperm": 200` is cheap and its thresholds belong to the model that made the