From b59c2a7f30293c2e26a19745813cdedacdd8c5bc Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 16 Jan 2024 13:00:35 +0300 Subject: UI: Create UI for creating a new Genotype dataset. --- qc_app/templates/rqtl2/select-geno-dataset.html | 56 +++++++++++++++++++++++++ qc_app/upload/rqtl2.py | 7 ++++ 2 files changed, 63 insertions(+) (limited to 'qc_app') diff --git a/qc_app/templates/rqtl2/select-geno-dataset.html b/qc_app/templates/rqtl2/select-geno-dataset.html index c8623b3..3487b6e 100644 --- a/qc_app/templates/rqtl2/select-geno-dataset.html +++ b/qc_app/templates/rqtl2/select-geno-dataset.html @@ -52,4 +52,60 @@ +

OR

+ +
+ create a new genotype dataset + + + + + + {{flash_messages("error-rqtl2")}} + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ {%endblock%} diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index e020d5a..f9185b1 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -227,3 +227,10 @@ def select_dataset_info(species_id: int, population_id: int): def select_geno_dataset(species_id: int, population_id: int) -> Response: """Select from existing geno datasets.""" return "IMPLEMENT THIS!!!" + +@rqtl2.route(("/upload/species//population/" + "/rqtl2-bundle/create-geno-dataset"), + methods=["POST"]) +def create_geno_dataset(species_id: int, population_id: int) -> Response: + """Create a new geno dataset.""" + return "IMPLEMENT THIS!!!" -- cgit v1.2.3