about summary refs log tree commit diff
path: root/test/python/test_get_test_token.py
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-07 17:10:28 +0000
committerPjotr <wrk@bosa.lan>2026-11-07 17:10:28 +0000
commit18d18b1c125c06dd67dcf54ccbd89eb128643737 (patch)
treeefefbdc30000ff459a46457239bc9fb01035d642 /test/python/test_get_test_token.py
parent1f61f8f86443de6353295f7363abbe1c986d863f (diff)
downloadgenenetwork4-18d18b1c125c06dd67dcf54ccbd89eb128643737.tar.gz
genotypes: expose the metadata, never the genotype calls
The listing named versions but not files; a caller could pick one and
still not see what was in it. Three token-gated routes now describe a
version completely, short of the matrix:

  GET /groups/{group}/genotypes                            versions, files, sizes, current
  GET /groups/{group}/genotypes/{version}                  file name, header labels,
                                                           individuals, strains, chromosomes
  GET /groups/{group}/genotypes/{version}/markers          markers (name, chr, cM, Mb), paged

The detail reads the file's own `@`-labels (type, mat, pat, het, unk,
scale) and its panel in column order, and reports both the whole panel
and the strains a mapping uses after the parents/F1s rule -- so a caller
can check a request before sending it and interpret a result after.
Markers come back as positional rows with `meta.columns`, paged with
`?page`/`?limit` and filterable with `?chr`, following /compute/gemma's
shape rather than inventing one.

The genotype calls stay on the server: file_meta() reads the matrix to
skip it, and nothing returns a cell.

* src/genotypes.rs (Marker, FileMeta, file_meta; GenotypeFile::file):
  header labels, individuals and marker positions; unit test.
* src/routes/genotypes.rs: the two new handlers, token-gated like the
  listing, plus `file` in the listing and counts in the detail.
* tests/genotypes.rs: the listing carries file names but no paths.
* README.md, docs/genotypes.md, docs/www/ai-instruction.md: what the
  three routes give, and that the matrix is not among them.
Diffstat (limited to 'test/python/test_get_test_token.py')
0 files changed, 0 insertions, 0 deletions