diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-30 14:25:27 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-30 14:25:27 +0000 |
| commit | eddab21c4ad95b33224496a2cbc3a2197ccd814d (patch) | |
| tree | eb1017f22c6b86d7622a7f0c5f2048e29a814c2e /docs | |
| parent | 3facb10bcfefd87c42685c8855c548b9cd4c490d (diff) | |
| download | genenetwork4-eddab21c4ad95b33224496a2cbc3a2197ccd814d.tar.gz | |
docs: a first session, starting from the user's own topic
Newcomers arrive with a subject -- "I work on diabetes", "anything on alcohol?", "we study kidney disease" -- not a trait id or a group, and the skill jumped straight to how to map a trait. Section 0a shows the searches that answer their first question: free text, AND when they name two words (terms are OR by default), group: to stay in one population once they name one, and type=gene for a gene symbol. It also says how to answer: three or four hits from their own description, authors and year, never the JSON, then one next step naming the trait id -- values, then R/qtl, then a plot. And what to do when nothing matches, since an unknown field value reads like an error and is not one. The quoted hits are real ones from the deployed index, checked against /search today: 15958 and 12595/12596 for diabetes in BXD, 10055 and 18794 for alcohol and dependence. An example that does not exist in the index teaches the wrong thing.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/SKILL.md | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/docs/www/SKILL.md b/docs/www/SKILL.md index 0b97fec..7321b91 100644 --- a/docs/www/SKILL.md +++ b/docs/www/SKILL.md @@ -21,7 +21,7 @@ next natural option from this list: | a QTL map | R/qtl scan (LOD) or GEMMA LMM with LOCO kinship (Manhattan), run on the server | 3 | | a plot | an SVG LOD / Manhattan plot, drawn by GeneNetwork | 3 | | PheWAS | every published trait of the group peaking near a position (e.g. the peak you just mapped) | 3 | -| a search | published phenotypes by free text, group, tissue, gene symbol, chromosome, year... | 5 | +| a search | published phenotypes by free text, group, tissue, gene symbol, chromosome, year... | 0a, 5 | | populations and data | species, groups (BXD...), strains, case attributes, genotype versions, expression datasets and probesets, publications by PubMed id, GN accessions | 4 | A natural session is: trait, values, R/qtl, plot, GEMMA, plot, PheWAS at the @@ -31,6 +31,54 @@ records metadata that could confound the trait (sex, age, epoch, batch, sequencing depth), the same mappings again with that covariate fitted, to see the peak survive it. After each step, suggest the next one. +## 0a. Their first session: start from their topic + +Most people arrive with a subject, not a trait id -- "I work on diabetes", +"anything on alcohol?", "we study kidney disease". Do not ask them for a group, +a dataset or an id first, and do not explain the API: search their words, show a +few hits in their own terms, offer one next step. + + # free text, published phenotypes (type defaults to phenotype) + curl -s -H "Authorization: Bearer $GN4" \ + 'https://vesuvio.pu.ac.ke/gn4/search?q=diabetes&limit=5' + + # two words: terms are OR unless you say AND, so "alcohol dependence" + # alone also returns everything that matches either word + curl -s -H "Authorization: Bearer $GN4" \ + 'https://vesuvio.pu.ac.ke/gn4/search?q=alcohol%20AND%20dependence&limit=5' + + # once they name a population, stay inside it + curl -s -H "Authorization: Bearer $GN4" \ + 'https://vesuvio.pu.ac.ke/gn4/search?q=alcohol%20AND%20group:BXD&limit=5' + + # their topic may be a gene rather than a phenomenon + curl -s -H "Authorization: Bearer $GN4" \ + 'https://vesuvio.pu.ac.ke/gn4/search?q=insulin&type=gene&limit=5' + +Say what came back, in their words, from the hits' own `description`, `group`, +`authors` and `year`, never from the JSON. Three or four is enough; a screenful +is worse than a choice. For `diabetes AND group:BXD` that is, truthfully: "BXD +has published diabetes phenotypes -- 15958 'Diabetes model, alloxan response' +(Weerasekera & Morahan, 2012), and 12595/12596, glomerular surface area and +WT1-negative cells after long-term diabetes (2010)". For `alcohol AND +dependence AND group:BXD`: "10055, ethanol withdrawal handling-induced +convulsions (Buck et al., 1997), and 18794, an activity/anxiety eigentrait +(2017)". Check the `group` column before you say "BXD has": without `group:` +the same search also returns other populations, whose trait ids mean something +only inside their own group. + +Then offer **one** next step that uses what you just found, and name the trait +id you would use: "Shall I show that trait's per-strain values, or map it across +the genome?" Values, then R/qtl, then a plot is the natural order (section 2). + +If nothing comes back: drop `AND ...`, try a plainer or singular word, check the +spelling of a `field:value` (an unknown value matches nothing -- that is not an +error), and try `type=gene` if the topic is a gene symbol. Search needs a token +like every other route (section 6); if the user has none, ask for one there +before going further. Never page through thousands of hits to count them: there +is no total, and each page costs time. For bulk work over a whole population use +`/groups/{group}/traits` (section 4). + ## 0. Do this first 1. **Check you can reach GeneNetwork** (no token needed): |
