about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-10 21:39:01 +0000
committerPjotr <wrk@bosa.lan>2026-11-10 21:39:01 +0000
commit0253fa66f2ef464d56324c27ba51cec1e27e3108 (patch)
treeb02e9db8590c5974ff5ae2a00d01ae18e2bea7b2 /docs
parent92a7d0282897dd056b5694a20b2aee7cdc1ce6e3 (diff)
downloadgenenetwork4-0253fa66f2ef464d56324c27ba51cec1e27e3108.tar.gz
uploads: map an uploaded genotype by name, and clean up after it
Three follow-ups from putting an upload through the whole loop.

  * /compute/qtl2's `genotype_file` branch only accepted positional
    `trait_values`, i.e. it demanded the file's column order -- which a
    caller with an uploaded population does not have. It now takes
    `samples` (name and value) or a `basket` and aligns them onto the
    cross by name, leaving individuals without a value as missing.
    Positional `trait_values` still work for a file whose order is known.
  * DELETE /uploads/genotypes/{name} now removes the .geno it wrote on
    demand: a file nobody can name is a file that confuses the next
    operator.
  * scripts/example-genotype-upload.py spreads its markers across
    chromosomes. One chromosome of markers is a poor example -- a
    leave-one-chromosome-out kinship has nothing to leave out, so the
    scan came back with no rows at all, which looked like a broken upload
    and was really a property of the example. 20 markers over the genome
    map cleanly (19 rows, the 20th used for the HMM), and the README says
    to use "kinship": "overall" if a file really has one chromosome.
Diffstat (limited to 'docs')
-rw-r--r--docs/www/SKILL.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/www/SKILL.md b/docs/www/SKILL.md
index 0a4af6b..4681ab1 100644
--- a/docs/www/SKILL.md
+++ b/docs/www/SKILL.md
@@ -217,7 +217,9 @@ header (peak and, for GEMMA, the Bonferroni line).
   ≤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. `scripts/example-genotype-upload.py`
+  `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
+  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
   will be — but a user's own column can be stored and mapped. `POST /baskets`