about summary refs log tree commit diff
path: root/uploader/templates/genotypes/genotype-encoding-elements.html
diff options
context:
space:
mode:
authorpi coding agent <pi@localhost>2026-11-05 19:19:34 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-05 13:36:22 -0600
commitbe5137651f46fe2d0fd649993efa0fe69b386ec3 (patch)
tree1e82ae5b0656441662eeab51a02dd51a04283e72 /uploader/templates/genotypes/genotype-encoding-elements.html
parenta2edcd3ea33acd5e254c6c449e712adbbe9bd7a8 (diff)
downloadgn-uploader-be5137651f46fe2d0fd649993efa0fe69b386ec3.tar.gz
Add missing-value symbols to Stage 02
Add a missing-value symbol(s) input to the Stage 02 encoding form and a
`parse_missing_values_symbols` helper in the genotypes views. Parse the input
(whitespace/comma-separated, unique symbols) and store it in the collector
job's `stage02` metadata alongside the description and encoding; prefill the
input when the page is revisited.
Diffstat (limited to 'uploader/templates/genotypes/genotype-encoding-elements.html')
-rw-r--r--uploader/templates/genotypes/genotype-encoding-elements.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/uploader/templates/genotypes/genotype-encoding-elements.html b/uploader/templates/genotypes/genotype-encoding-elements.html
index a7cb3c4..2cd4e4a 100644
--- a/uploader/templates/genotypes/genotype-encoding-elements.html
+++ b/uploader/templates/genotypes/genotype-encoding-elements.html
@@ -74,4 +74,21 @@
         both parents. This allele will be mapped to the value 0.</span>
     </div>
   </div>
+
+  <div class="form-group">
+    <div class="row mb-3">
+      <label for="txt-geno-missing-symbols"
+             class="col-form-label col-sm-2">Missing-value symbol(s)</label>
+      <div class="col-sm-10">
+        <input type="text"
+               id="txt-geno-missing-symbols"
+               name="missing_symbols"
+               value="{{ missing_symbols|default('') }}"
+               class="form-control" />
+      </div>
+      <span class="form-text text-muted">
+        Enter the symbol(s) used in your file to represent missing genotype
+        values. Separate multiple symbols with spaces or commas.</span>
+    </div>
+  </div>
 </div>