From 204a308be0f741726b9a620d88fbc22b22124c81 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 29 Dec 2023 18:55:37 +0000 Subject: Namespace all modules under gn2. We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service. --- gn2/wqflask/templates/corr_scatterplot.html | 364 ++++++++++++++++++++++++++++ 1 file changed, 364 insertions(+) create mode 100644 gn2/wqflask/templates/corr_scatterplot.html (limited to 'gn2/wqflask/templates/corr_scatterplot.html') diff --git a/gn2/wqflask/templates/corr_scatterplot.html b/gn2/wqflask/templates/corr_scatterplot.html new file mode 100644 index 00000000..554471be --- /dev/null +++ b/gn2/wqflask/templates/corr_scatterplot.html @@ -0,0 +1,364 @@ +{% extends "base.html" %} + +{% block css %} + + + + + + + +{% endblock %} + +{% block content %} + +
+ + + + + + + + + +

Correlation Scatterplot

+
+ + + + + + + +
Width px Height px
+
+ {% if collections_exist == "True" %} +
+
+ You can select up to three traits from a saved trait collection to use as cofactors in the scatterplots, with each trait corresponding to point color, size, or symbol. + For symbol, traits must have no more than 4 distinct values. +
+
+
+ + +
+ + +
+ +
+
+
+ + + + + + + + + + + {% else %} +
No collections currently exist. Please create a collection first if you wish to include cofactors in the scatterplots.
+
+ {% endif %} + + + +
+ +
+
+
+
+
+
+ {% if trait_1.dataset.type == "ProbeSet" %} + +
+ [{{trait_1.symbol}} on {{trait_1.location_repr}} Mb] + {{trait_1.description_display}} +
+ {% elif trait_1.dataset.type == "Publish" %} + +
+ PubMed: {{trait_1.pubmed_text}} + {{trait_1.description_display}} +
+ {% elif trait_1.dataset.type == "Geno" %} + +
+ Location: {{trait_1.location_repr}} Mb +
+ {% endif %} + +
+ + {% if trait_2.dataset.type == "ProbeSet" %} + +
+ [{{trait_2.symbol}} on {{trait_2.location_repr}} Mb] + {{trait_2.description_display}} +
+ {% elif trait_2.dataset.type == "Publish" %} + +
+ PubMed: {{trait_2.pubmed_text}} + {{trait_2.description_display}} +
+ {% elif trait_2.dataset.type == "Geno" %} + +
+ Location: {{trait_2.location_repr}} Mb +
+ {% endif %} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
StatisticValue
Number{{jsdata.num_overlap}}
Slope{{ jsdata.slope_string }}
Intercept{{'%0.3f' % jsdata.intercept}}
r value{{'%0.3f' % jsdata.r_value}}
P value{% if jsdata.p_value < 0.001 %}{{'%0.3e' % jsdata.p_value}}{% else %}{{'%0.3f' % jsdata.p_value}}{% endif %}
+ Regression Line +
+ y = {{ jsdata.slope_string }} * x {% if jsdata.intercept < 0 %}- {{'%0.3f' % (jsdata.intercept * -1)}}{% else %}+ {{'%0.3f' % jsdata.intercept}}{% endif %} +
+
+
+
+ +
+
+
+
+
+
+ {% if trait_1.dataset.type == "ProbeSet" %} + +
+ [{{trait_1.symbol}} on {{trait_1.location_repr}} Mb] + {{trait_1.description_display}} +
+ {% elif trait_1.dataset.type == "Publish" %} + +
+ PubMed: {{trait_1.pubmed_text}} + {{trait_1.description_display}} +
+ {% endif %} + +
+ + {% if trait_2.dataset.type == "ProbeSet" %} + +
+ [{{trait_2.symbol}} on {{trait_2.location_repr}} Mb] + {{trait_2.description_display}} +
+ {% elif trait_2.dataset.type == "Publish" %} + +
+ PubMed: {{trait_2.pubmed_text}} + {{trait_2.description_display}} +
+ {% endif %} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
StatisticValue
Number{{jsdata.num_overlap}}
Slope{{ jsdata.srslope_string }}
Intercept{{'%0.3f' % jsdata.srintercept}}
r value{{'%0.3f' % jsdata.srr_value}}
P value{% if jsdata.srp_value < 0.001 %}{{'%0.3e' % jsdata.srp_value}}{% else %}{{'%0.3f' % jsdata.srp_value}}{% endif %}
+ Regression Line +
+ y = {{ jsdata.srslope_string }} * x {% if jsdata.srintercept < 0 %}- {{'%0.3f' % (jsdata.srintercept * -1)}}{% else %}+ {{'%0.3f' % jsdata.srintercept}}{% endif %} +
+
+
+
+ +
+ +{% endblock %} + +{% block js %} + + + + + + + + + + + +{% endblock %} -- cgit 1.4.1