From 1df4248f88a1bbbc82446cd5e51daf07597b57bc Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 15 Oct 2019 10:52:38 -0500 Subject: Added a description with the marker name for genotype traits in collections page Fixed X/Y axis labels on correlation scatterplot page to correctly show genotype traits --- wqflask/wqflask/templates/collections/view.html | 6 ++++++ wqflask/wqflask/templates/corr_scatterplot.html | 22 +++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index a23f3f70..26dcef65 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -134,7 +134,13 @@ {% else %} N/A {% endif %} + {% if this_trait.dataset.type == "Geno" %} + Marker: {{ this_trait.name }} + {% elif this_trait.description_display != "" %} {{ this_trait.description_display }} + {% else %} + N/A + {% endif %} {{ this_trait.location_repr }} {{ '%0.3f' % this_trait.mean|float }} {{ '%0.3f' % this_trait.LRS_score_repr|float }} diff --git a/wqflask/wqflask/templates/corr_scatterplot.html b/wqflask/wqflask/templates/corr_scatterplot.html index f60a7129..545c0b94 100644 --- a/wqflask/wqflask/templates/corr_scatterplot.html +++ b/wqflask/wqflask/templates/corr_scatterplot.html @@ -25,7 +25,7 @@ - +
Width pxWidth px Height px
@@ -192,6 +192,16 @@ PubMed: {{trait_1.pubmed_text}} {{trait_1.description_display}} + {% elif trait_1.dataset.type == "Geno" %} +
+ X axis: + + {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.name + ": " + trait_1.name|string}} + +
+
+ Location: {{trait_1.location_repr}} Mb +
{% endif %}
@@ -218,6 +228,16 @@ PubMed: {{trait_2.pubmed_text}} {{trait_2.description_display}} + {% elif trait_2.dataset.type == "Geno" %} +
+ Y axis: + + {{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.name + ": " + trait_2.name|string}} + +
+
+ Location: {{trait_2.location_repr}} Mb +
{% endif %} -- cgit 1.4.1