From 58a214a4a9be5fb219a798b62cdbf43d72280c74 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 5 Jan 2024 13:08:38 +0300 Subject: Initialise R/qtl2 bundle upload path Initialise the upload path for R/qtl2 bundles. This commit adds UI that allows the user to select from existing species, before proceeding to the next stage. --- qc_app/__init__.py | 2 ++ qc_app/templates/base.html | 2 +- qc_app/templates/rqtl2/index.html | 34 ++++++++++++++++++++++++++++++++++ qc_app/upload/__init__.py | 7 +++++++ qc_app/upload/rqtl2.py | 31 +++++++++++++++++++++++++++++++ 5 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 qc_app/templates/rqtl2/index.html create mode 100644 qc_app/upload/__init__.py create mode 100644 qc_app/upload/rqtl2.py (limited to 'qc_app') diff --git a/qc_app/__init__.py b/qc_app/__init__.py index f2001ab..1215954 100644 --- a/qc_app/__init__.py +++ b/qc_app/__init__.py @@ -5,6 +5,7 @@ import os from flask import Flask from .entry import entrybp +from .upload import upload from .parse import parsebp from .samples import samples from .dbinsert import dbinsertbp @@ -30,6 +31,7 @@ def create_app(instance_dir): # setup blueprints app.register_blueprint(entrybp, url_prefix="/") app.register_blueprint(parsebp, url_prefix="/parse") + app.register_blueprint(upload, url_prefix="/upload") app.register_blueprint(dbinsertbp, url_prefix="/dbinsert") app.register_blueprint(samples, url_prefix="/samples") diff --git a/qc_app/templates/base.html b/qc_app/templates/base.html index 0cc970c..3b701bc 100644 --- a/qc_app/templates/base.html +++ b/qc_app/templates/base.html @@ -11,7 +11,7 @@ {%block css%}{%endblock%} - diff --git a/qc_app/templates/rqtl2/index.html b/qc_app/templates/rqtl2/index.html new file mode 100644 index 0000000..24f19fa --- /dev/null +++ b/qc_app/templates/rqtl2/index.html @@ -0,0 +1,34 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Data Upload{%endblock%} + +{%block contents%} +