about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorpi coding agent <pi@localhost>2026-11-05 19:05:29 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-06 07:06:18 -0600
commit9128371f1e5252aa46a83aa75d2d6df077e57573 (patch)
treecbb6d06f507fc1f6be028297910ebb8d0641b4e9 /docs
parent9cea8b483f61be415a431e19b508ea390cf10d87 (diff)
downloadgn-uploader-9128371f1e5252aa46a83aa75d2d6df077e57573.tar.gz
docs: update the implementation notes
- note missing-value symbols in the Stage 02 review page
- record the Stage 03 value QC implementation
Diffstat (limited to 'docs')
-rw-r--r--docs/WIP/geno-uploads-implementation-notes.md27
1 files changed, 23 insertions, 4 deletions
diff --git a/docs/WIP/geno-uploads-implementation-notes.md b/docs/WIP/geno-uploads-implementation-notes.md
index e8ce6db..89bda61 100644
--- a/docs/WIP/geno-uploads-implementation-notes.md
+++ b/docs/WIP/geno-uploads-implementation-notes.md
@@ -20,7 +20,10 @@ the concerns/deviations discovered while building it. It supersedes the
 - **Stage 02: review page implemented.** Description, genotype symbols, study
   design and encoding are presented; the confirmed values are stored in the
   collector job metadata.
-- **Stages 03–07: not implemented** (still design/TODO comment blocks in
+- **Stage 03: value QC implemented.** The genotype file is re-read and every
+  sample value is checked against the Stage 02 encoding/missing symbols; the
+  QC job is scheduled from Stage 02. Ordering checks remain pending.
+- **Stages 04–07: not implemented** (still design/TODO comment blocks in
   `uploader/genotypes/views.py`).
 
 ## Stage 01 implementation
@@ -163,9 +166,25 @@ and tests import them from the new location.
 dataset_id)` validates a completed `genotype-file-stats` job for the dataset
 and parses the `FileStats` from its recorded stdout. The collector job's
 `success_handler` redirects to the `study_design` view with the job id; that
-view renders the collected description, the genotype symbols, and the
-study-design/encoding inputs. Saving stores the confirmed values in the job
-metadata (`stage02`) and redirects back (post/redirect/get).
+view renders the collected description, the genotype symbols, the
+study-design/encoding inputs and the missing-value symbol(s). Saving stores the
+confirmed values (including `missing_symbols`) in the job metadata (`stage02`)
+and redirects back (post/redirect/get).
+
+### Stage 03 value QC
+
+The collector job records the genotype `file` and collector `config` in its
+metadata so later stages can re-read the file.
+`uploader.genotypes.qc.check_file` checks every sample value against the Stage
+02 encoding and missing-value symbols (empty values and unknown symbols are
+reported), and `uploader.scripts.genotypes.qc` is the worker that loads the
+collector job, runs the checks and exits non-zero on errors. On Stage 02 save,
+the QC job is scheduled and its id recorded in the collector job metadata
+(`stage03_job_id`) so re-submitting does not schedule it again.
+
+`uploader.genotypes.qc.sort_markers` is a placeholder ordering helper
+(chromosome, cM, Mb) that emits a warning until the appropriate ordering is
+established.
 
 ## Relationship to the background-jobs system