From 15289ced90dbecaaa710318ccfcf8b002e3121c6 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 5 Jan 2024 13:13:39 +0300 Subject: UI to select the population under which the data falls. --- qc_app/templates/rqtl2/select-population.html | 124 ++++++++++++++++++++++++++ qc_app/upload/rqtl2.py | 17 ++++ 2 files changed, 141 insertions(+) create mode 100644 qc_app/templates/rqtl2/select-population.html (limited to 'qc_app') diff --git a/qc_app/templates/rqtl2/select-population.html b/qc_app/templates/rqtl2/select-population.html new file mode 100644 index 0000000..3ce9dc8 --- /dev/null +++ b/qc_app/templates/rqtl2/select-population.html @@ -0,0 +1,124 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Select Grouping/Population{%endblock%} + +{%block contents%} +
The data is organised in a hierarchical form, beginning with + species at the very top. Under species the data is + organised by population, sometimes referred to as grouping. + (In some really old documents/systems, you might see this referred to as + InbredSet.)
+In this section, you get to define what population your data is to be + organised by.
+OR
+ + + +{%endblock%} + + +{%block javascript%} +{%endblock%} diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index e54f141..06edfee 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -29,3 +29,20 @@ def select_species(): "upload.rqtl2.select_population", species_id=species_id)) flash("Invalid species or no species selected!", "alert-error error-rqtl2") return redirect(url_for("upload.rqtl2.select_species")) + +@rqtl2.route("/upload/species/