about summary refs log tree commit diff
path: root/scripts/plot-genotypes.py
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 /scripts/plot-genotypes.py
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 'scripts/plot-genotypes.py')
0 files changed, 0 insertions, 0 deletions