diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-11 14:12:32 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-11 14:12:32 +0000 |
| commit | 492e0c5e8988fda87d361cef4f29639c5f0d0b72 (patch) | |
| tree | 162c7e56c37eb69d1c06fe3fa6c76ee778c3d391 /src | |
| parent | 83b30cabe99757f44a80988027594871540b8f50 (diff) | |
| download | genenetwork4-492e0c5e8988fda87d361cef4f29639c5f0d0b72.tar.gz | |
docs: say that /plot/gemma draws no line unless one is asked for
The OpenAPI description still promised "a Bonferroni reference line by default", and GEMMA's own suggested plot call said the same. Both now say what the code does, and where the number comes from: the plotter computes 0.05 over the analysed markers -- conservative under linkage and unrelated to relatedness -- and ?thresholds= takes one computed elsewhere, each line labelled with its source. Also corrected in the README's /plot section and in SKILL.md, where the same promise had been copied.
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/gemma.rs | 3 | ||||
| -rw-r--r-- | src/routes/plot.rs | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/routes/gemma.rs b/src/routes/gemma.rs index bfb483a..2211c35 100644 --- a/src/routes/gemma.rs +++ b/src/routes/gemma.rs @@ -772,7 +772,8 @@ pub async fn compute_gemma( href: format!("/plot/gemma?trait={}", path_segment(&request_trait_label)), description: "Draw this GWAS: POST this response back to /plot/gemma (as-is, or its \ `data` member) and get an SVG Manhattan plot of -log10(p_lrt) per \ - marker, with a Bonferroni reference line." + marker. Add ?bonferroni=true for GEMMA's own line, or \ + ?thresholds=<lod> for one computed elsewhere (see /compute/bulklmm)." .to_string(), body: None, }); diff --git a/src/routes/plot.rs b/src/routes/plot.rs index ceea738..cf73637 100644 --- a/src/routes/plot.rs +++ b/src/routes/plot.rs @@ -251,10 +251,14 @@ pub async fn plot_rqtl( #[utoipa::path(post, path = "/plot/gemma", summary = "Draw the Manhattan plot of a GEMMA result, as an SVG", description = "Post the response of POST /compute/gemma back (as-is, or just its `data` \ -member) and get the plot scripts/plot-gemma.py draws from it: -log10(p_lrt) per marker, with \ -a Bonferroni reference line by default (GEMMA has no permutation test). Nothing is recomputed. \ -image/svg+xml, not the JSON envelope; `x-plot-summary` carries the plotter's one-line peak \ -summary.", +member) and get the plot scripts/plot-gemma.py draws from it: -log10(p_lrt) per marker. \ +**No reference line is drawn unless one is asked for** -- a line is an annotation, not part of \ +the result, and each is labelled with where it came from: `?bonferroni=true` for GEMMA's own \ +-Bonferroni (0.05 over the analysed markers, computed by the plotter, conservative under \ +linkage and unrelated to relatedness), and `?thresholds=` for a threshold another engine \ +computed on the same values (e.g. /compute/bulklmm's rotation thresholds). Nothing is \ +recomputed. image/svg+xml, not the JSON envelope; `x-plot-summary` carries the plotter's \ +one-line summary, naming the reference lines it drew.", params(PlotParams), request_body = serde_json::Value, responses( |
