From d808e83d86f57b6ddc588c9a6f501caaad9e5882 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Tue, 4 Jul 2023 14:57:29 -0700 Subject: [PATCH] Add a homepage (WIP) --- rnaseq_pipeline/webviewer/__init__.py | 4 ++ .../webviewer/templates/index.html | 48 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 rnaseq_pipeline/webviewer/templates/index.html diff --git a/rnaseq_pipeline/webviewer/__init__.py b/rnaseq_pipeline/webviewer/__init__.py index b8e36d5b..d2f0298c 100644 --- a/rnaseq_pipeline/webviewer/__init__.py +++ b/rnaseq_pipeline/webviewer/__init__.py @@ -22,6 +22,10 @@ def bad_request(e): def not_found(e): return render_template('404.html', e=e), 404 +@app.route('/') +def home(): + return render_template('index.html') + @app.route('/experiment/') def experiment_summary(experiment_id): try: diff --git a/rnaseq_pipeline/webviewer/templates/index.html b/rnaseq_pipeline/webviewer/templates/index.html new file mode 100644 index 00000000..6f064748 --- /dev/null +++ b/rnaseq_pipeline/webviewer/templates/index.html @@ -0,0 +1,48 @@ + + + + + + + {{ experiment_id }} + + + +
+

Pavlidis Lab RNA-Seq Pipeline

+

There isn't much at this time here, but you can take a look at the following links:

+ +

Endpoints

+
+
/experiment/{experimentId}
+
+ Summary + (example) +
+
/experiment/{experimentId}/batch-info
+
+ Batch Information + (example) +
+
/experiment/{experimentId}/quantifications/counts
+
+ Quantifications (counts) + (example) +
+
/experiment/{experimentId}/quantifications/fpkm
+
+ Quantifications (FPKM) + (example) +
+
/experiment/{experimentId}/report
+
+ MultiQC Report + (example) +
+
+
+ +