diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/ai-instruction.md | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/docs/www/ai-instruction.md b/docs/www/ai-instruction.md index fe033d4..8c76cee 100644 --- a/docs/www/ai-instruction.md +++ b/docs/www/ai-instruction.md @@ -474,12 +474,23 @@ all-zero column is singular, and GEMMA stops rather than dropping the term). Either way, covariates reach only the association step and not the kinship, so adding one does not recompute the relatedness matrix. -**GEMMA has no permutation test.** Its `actions` therefore suggests the -*R/qtl* permutation run on the same group and the same values, and says -so; judge a GEMMA peak against the smallest `p_lrt` it reached, not -against a genome-wide threshold. (gemma-wrapper itself can shuffle -phenotypes with `--permutate n`; this API does not pass it — see -docs/genotypes.md.) +**GEMMA has no permutation test, and do not ask for one.** A permutation +run repeats the entire LOCO association scan for every permutation +(`gemma-wrapper --permutate` shuffles the phenotype file and starts over), +so a thousand permutations is thousands of full scans — hours to days on +a real panel, on the one slot GEMMA has here. `/compute/gemma` therefore +**refuses** `nperm`, `permutations` and `permutate` with `422 +permutations_not_supported` rather than ignoring them: an ignored flag is +how you end up believing you have thresholds you never computed. Zero is +accepted and means off, as elsewhere. + +For thresholds, use the endpoint that has the test: send the *same* panel +and the *same* values to `POST /compute/rqtl` with `"nperm": 100`, which +returns `suggestive` and `significant` LOD thresholds. Every successful +GEMMA response already carries that call, pre-filled, in `actions` — take +that rather than assembling your own. Until then, judge a GEMMA peak +against the smallest `p_lrt` it reached, not against a genome-wide +threshold of its own. **A few jobs at a time, one per caller.** Each compute endpoint has a fixed number of slots — **1** for `/compute/gemma`, **1** for |
