From e7fb0b717562dcbeb016d277cc97328792868c47 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 4 Jan 2016 16:58:16 +0000 Subject: Added headers/foots/css to mapping page Mapping results table now works --- .../marker_regression/marker_regression_gn1.py | 3 ++- .../wqflask/templates/marker_regression_gn1.html | 26 ++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/marker_regression/marker_regression_gn1.py b/wqflask/wqflask/marker_regression/marker_regression_gn1.py index 2939a566..1da98c63 100644 --- a/wqflask/wqflask/marker_regression/marker_regression_gn1.py +++ b/wqflask/wqflask/marker_regression/marker_regression_gn1.py @@ -273,6 +273,7 @@ class MarkerRegression(object): self.additiveChecked = False self.dominanceChecked = False self.LRS_LOD = start_vars['score_type'] + self.cutoff = start_vars['cutoff'] self.intervalAnalystChecked = False self.legendChecked = False self.geneChecked = False @@ -630,7 +631,7 @@ class MarkerRegression(object): TD_LR.append(HT.Blockquote(tableForm)) self.body = TD_LR - + #self.dict['body'] = TD_LR #self.dict['title'] = "Mapping" diff --git a/wqflask/wqflask/templates/marker_regression_gn1.html b/wqflask/wqflask/templates/marker_regression_gn1.html index 8f1df94f..e6bc2d65 100644 --- a/wqflask/wqflask/templates/marker_regression_gn1.html +++ b/wqflask/wqflask/templates/marker_regression_gn1.html @@ -1,3 +1,9 @@ +{% extends "base.html" %} +{% block title %}Mapping Results{% endblock %} +{% block css %} + + +{% endblock %} {% from "base_macro.html" import header %} {% block content %} {{ header("Mapping", @@ -15,7 +21,7 @@ -
+

Results

@@ -24,7 +30,7 @@ Index - {{ score_type }} + {{ LRS_LOD }} Chr {% if plotScale == "centimorgan" %} cM @@ -36,8 +42,8 @@ {% for marker in qtlresults %} - {% if (score_type == "LOD" and marker.lod_score > cutoff) or - (score_type == "LRS" and marker.lrs_value > cutoff) %} + {% if (LRS_LOD == "LOD" and marker.lod_score|float > cutoff|float) or + (LRS_LOD == "LRS" and marker.lrs_value|float > cutoff|float) %} + + + + + + + + + + + -- cgit v1.2.3