diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-10 22:12:29 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-10 22:12:29 +0000 |
| commit | 62cc5f73cb94fe85c31a2f177d1d150e643e84b1 (patch) | |
| tree | f49d5cd0c3a62dd26bdbd5e022b8b6e9a1f0654c /docs | |
| parent | 0253fa66f2ef464d56324c27ba51cec1e27e3108 (diff) | |
| download | genenetwork4-62cc5f73cb94fe85c31a2f177d1d150e643e84b1.tar.gz | |
uploads: every engine maps an upload by name; same name replaces
Two things asked for, and one bug each.
* POST /uploads/genotypes with an existing name now REPLACES it. A
genotype is the user's file to keep, not a record the deployment
curates; the digest in every reply says which version ran.
* genotype_upload on all four engines -- /compute/{rqtl,gemma,qtl2,
fitqtl} -- in place of genotype_file/group. The server writes the
form each engine reads: a GN .geno for R/qtl and R/qtl2, a BIMBAM
pair (new: genoupload::to_bimbam, coding from the base's
@mat/@het/@pat, NA for missing, snps as marker/bp/chr) for GEMMA. No
user path travels with a request.
Verified against the full 3811-marker BXD.4 matrix uploaded as an update:
rqtl 3811 rows, gemma 3809, qtl2 3730, fitqtl by marker.
The bug worth naming: values given by name were being aligned against a
file, and for GEMMA that file is BIMBAM, which has no individual names --
so the phenotype file came out empty and the wrapper failed with a Ruby
backtrace that said nothing. GEMMA's values are now ordered by the
upload's own individual list before the pair is written. The related
fixes: rqtl and fitqtl align named values onto the file's individuals
(they previously demanded its column order), and genotypes::align_to_file
is the one place that does it.
tests/genoupload.rs: mapping an upload on rqtl/qtl2/fitqtl with values by
name, and replacing a name (one row in the listing, a new digest). GEMMA's
LOCO kinship needs more markers per chromosome than a small fixture has,
so it is exercised against a full panel rather than in the fixture.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/SKILL.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/www/SKILL.md b/docs/www/SKILL.md index 4681ab1..73c50bb 100644 --- a/docs/www/SKILL.md +++ b/docs/www/SKILL.md @@ -216,9 +216,11 @@ header (peak and, for GEMMA, the Bonferroni line). It **updates** a population: ≤50 new individuals, at least one overlapping, ≤200 000 markers, and the values must be the same kind as the base's (letters, whole numbers, probabilities). The reply's - `GET /uploads/genotypes/{name}/geno` writes a `.geno` and gives the path for - `genotype_file` on the compute endpoints, where `samples` (or a `basket`) are - matched **by name**. A one-chromosome upload scans flat or empty under LOCO + Every compute endpoint takes it by name — `{"genotype_upload": "<name>"}` on + `/compute/{rqtl,gemma,qtl2,fitqtl}` — with `samples` (or a `basket`) matched + **by name**; the server writes the form each engine reads. Uploading the same + name again **replaces** it, and the digest in the reply says which version + ran. A one-chromosome upload scans flat or empty under LOCO kinship — use `"kinship": "overall"` if that is all you have. `scripts/example-genotype-upload.py` makes a valid one from any `.geno`. * **Changing values**: there is no write endpoint for traits, and there never |
