diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/ai-instruction.md | 34 | ||||
| -rw-r--r-- | docs/www/operator-checklist.md | 9 |
2 files changed, 43 insertions, 0 deletions
diff --git a/docs/www/ai-instruction.md b/docs/www/ai-instruction.md index b1b2586..e6c4d0b 100644 --- a/docs/www/ai-instruction.md +++ b/docs/www/ai-instruction.md @@ -361,6 +361,40 @@ names in `meta.columns` (`chr`, `rs`, `ps`, … for GEMMA; `name`, `chr`, would dominate. `notes` carries the exact command line that ran, which is the fastest way to see what your request turned into. +## 4b. PheWAS: what else peaks near this QTL + +Given a QTL peak — from a mapping above, or any trait's `locus` — ask +what else peaks there: + +```sh +curl -s -H "$AUTH" "$API/groups/BXD/phewas?locus=rs30524230&window=10000" +curl -s -H "$AUTH" "$API/groups/BXD/phewas?chr=9&mb=29.940961&window=10000" +``` + +The window is in **base pairs, centred on the position**: `window=10000` +is 10 kb up- and downstream (that is the default). `genotype_version` +picks whose marker table defines the window; leave it out for the +current one. + +The answer lists the `markers` the window covered and the `traits` whose +peak marker is one of them, strongest first, each with `trait_id`, +`dataset`, `abbreviation`, `description`, its peak `locus`/`chr`/`mb`, +`lrs`, `lod`, `mean`, `additive`, `nsamples`, `pubmed_id` and a `url`. + +Read it like this: + +* `traits: []` with markers present means nothing publishes a peak that + close — it is an answer, not an error. Widen `window` (the response's + `next` suggests a ten-times wider one) — marker spacing, not the API, + decides what fits in 10 kb; +* `markers: []` means the genotype version has no marker there at all; +* a peak marker is one common locus: several traits sharing it may be + the same underlying locus measured several ways, or a pleiotropic + effect — the descriptions tell you which; +* `lod = lrs / 4.604`, and the highest `lrs` in GeneNetwork is capped at + 460 (LOD 99.9), so a tight cluster at that value is the cap, not a + spectrum. + ## 5. Errors and what to do Errors are RFC 7807-style JSON (`type`, `title`, `status`, `code`, diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md index 22ec6ef..5cd203f 100644 --- a/docs/www/operator-checklist.md +++ b/docs/www/operator-checklist.md @@ -195,6 +195,15 @@ is CPU-bound on the box, so rate-limit per token or keep the audience small — `limit_req` in the config is one way, but it keys on address, not token. +## PheWAS + +`GET /groups/{group}/phewas` reads `PublishXRef` only -- the peak marker, +LRS and the join to `Phenotype`/`Publication` -- plus the group's +genotype marker table for positions. It is token-only like the other +metadata routes, and it inherits the exposure question below: +`PublishXRef` covers published traits, whose datasets are the `*Publish` +freezes. + ## Data exposure * Public rule: `public > 0 && confidentiality < 1`, or older than five |
