diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/gemma.rs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/routes/gemma.rs b/src/routes/gemma.rs index 79bc445..bfb483a 100644 --- a/src/routes/gemma.rs +++ b/src/routes/gemma.rs @@ -304,12 +304,17 @@ pub async fn compute_gemma( "{requested_permutations} permutations requested, but this endpoint runs none: \ each one repeats the entire LOCO association scan (gemma-wrapper --permutate), \ so a thousand is thousands of scans and hours of the one slot GEMMA has here. \ - For significance thresholds, send the same trait values to POST /compute/bulklmm \ - with \"nperm\": 200: it fits an LMM with a global kinship matrix and permutes by \ - rotating the data through that matrix, so the thresholds belong to a mixed \ - model (R/qtl's nperm works too, but its null ignores relatedness). Judge a GEMMA \ - peak against whichever threshold you use, or against the smallest p_lrt it \ - reached -- and remember BulkLMM is global-kinship, not LOCO." + Two ways to get a threshold instead: (1) send the same trait values to \ + POST /compute/bulklmm with \"nperm\": 1000 -- it fits an LMM and permutes by \ + rotating the data through the kinship decomposition, so its thresholds respect \ + relatedness (R/qtl's nperm does not, and is anti-conservative on a structured \ + panel); (2) run GEMMA's own permutation locally on the same inputs -- the files \ + this endpoint used are named in the reply's notes (the bimbam pair and the \ + phenotype file), so `gemma-wrapper --permutate` or `gemma -lmm 9 --permutate` \ + reproduces exactly the null GEMMA would use, at hours rather than seconds. \ + Judge a GEMMA peak against whichever threshold you choose, or against the \ + smallest p_lrt it reached -- and remember BulkLMM's kinship is a single \ + genome-wide matrix, not LOCO like this scan." ), "compute_gemma", ) |
