From 90c35a2a9285be21882a6db03e5aeb26f329f602 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Fri, 7 May 2021 19:45:29 +0000
Subject: Display cofactors = None on the loading page if there are no
cofactors
---
wqflask/wqflask/templates/loading.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wqflask/wqflask/templates/loading.html b/wqflask/wqflask/templates/loading.html
index 1adeb2bd..3c443690 100644
--- a/wqflask/wqflask/templates/loading.html
+++ b/wqflask/wqflask/templates/loading.html
@@ -33,10 +33,12 @@
minor allele frequency lower limit = {{ start_vars.maf }}
{% endif %}
- {% if start_vars.covariates != "" and start_vars.method != "reaper" %}
+ {% if start_vars.covariates != "" and start_vars.method != "reaper" %}
{% set covariate_list = start_vars.covariates.split(",") %}
cofactors = {% for covariate in covariate_list %}{% set this_covariate = covariate.split(":")[0] %}{{ this_covariate }}{% if not loop.last %}, {% endif %}{% endfor %}
+ {% else %}
+ cofactors = None
{% endif %}
{% if start_vars.control_marker != "" and start_vars.do_control == "true" and start_vars.method != "gemma" %}
--
cgit v1.2.3