From 18a444eef6253d425bf2e6dc613ca64ec881544e Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 20 Apr 2016 16:16:54 +0000 Subject: Added borders to stats table in trait page --- wqflask/wqflask/static/new/javascript/show_trait.js | 4 ++-- wqflask/wqflask/templates/show_trait_statistics.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 9e249c28..9d418e9b 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -190,9 +190,9 @@ } row_line = ""; if (row.url != null) { - row_line += "" + row.pretty + ""; + row_line += "" + row.pretty + ""; } else { - row_line += "" + row.pretty + ""; + row_line += "" + row.pretty + ""; } _ref1 = js_data.sample_group_types; for (key in _ref1) { diff --git a/wqflask/wqflask/templates/show_trait_statistics.html b/wqflask/wqflask/templates/show_trait_statistics.html index 9c5c94b2..9a57b285 100755 --- a/wqflask/wqflask/templates/show_trait_statistics.html +++ b/wqflask/wqflask/templates/show_trait_statistics.html @@ -26,7 +26,7 @@
-
+
-- cgit v1.2.3 From f50b54cc58462860546aa529ff24eb7cea2396df Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 20 Apr 2016 18:42:06 +0000 Subject: Interval Mapping now correctly does interval mapping if Marker Regression isn't checked (it used to just "connect the dots" of the marker regression output) Changed "Manhattan Plot" label to "Marker Regr." to accurately reflect what the option does --- wqflask/wqflask/marker_regression/marker_regression.py | 3 +++ wqflask/wqflask/templates/show_trait_mapping_tools.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/marker_regression/marker_regression.py b/wqflask/wqflask/marker_regression/marker_regression.py index af320f65..32cdb9af 100644 --- a/wqflask/wqflask/marker_regression/marker_regression.py +++ b/wqflask/wqflask/marker_regression/marker_regression.py @@ -664,6 +664,9 @@ class MarkerRegression(object): def gen_reaper_results(self): genotype = self.dataset.group.read_genotype_file() + if self.manhattan_plot != True: + genotype = genotype.addinterval() + samples, values, variances = self.this_trait.export_informative() trimmed_samples = [] diff --git a/wqflask/wqflask/templates/show_trait_mapping_tools.html b/wqflask/wqflask/templates/show_trait_mapping_tools.html index 620a4631..5d9b0278 100755 --- a/wqflask/wqflask/templates/show_trait_mapping_tools.html +++ b/wqflask/wqflask/templates/show_trait_mapping_tools.html @@ -239,7 +239,7 @@
- +
* only apply to single chromosome physical mapping @@ -165,65 +165,75 @@
- {% if selectedChr == -1 %}
-

- Results -

- - - - - - - - {% if plotScale == "centimorgan" %} - - {% else %} - - {% endif %} - - - - - {% for marker in trimmed_markers %} - - - - {% if LRS_LOD == "LOD" %} - {% if 'lod_score' in marker %} - - {% else %} - - {% endif %} - {% else %} - {% if 'lod_score' in marker %} - - {% else %} - - {% endif %} - {% endif %} - - - - - {% endfor %} - -
Index{{ LRS_LOD }}ChrcMMbLocus
- - {{ loop.index }}{{ '%0.2f' | format(marker.lod_score|float) }}{{ '%0.2f' | format(marker.lrs_value|float / 4.16) }}{{ '%0.2f' | format(marker.lod_score|float * 4.16) }}{{ '%0.2f' | format(marker.lrs_value|float) }}{{marker.chr}}{{ '%0.6f' | format(marker.Mb|float) }} - {{ marker.name }} - -
+ {% if selectedChr == -1 %} +

Results

+ + + + + + + + {% if plotScale == "centimorgan" %} + + {% else %} + + {% endif %} + + + + + {% for marker in trimmed_markers %} + + + + {% if LRS_LOD == "LOD" %} + {% if 'lod_score' in marker %} + + {% else %} + + {% endif %} + {% else %} + {% if 'lod_score' in marker %} + + {% else %} + + {% endif %} + {% endif %} + + + + + {% endfor %} + +
Index{{ LRS_LOD }}ChrcMMbLocus
+ + {{ loop.index }}{{ '%0.2f' | format(marker.lod_score|float) }}{{ '%0.2f' | format(marker.lrs_value|float / 4.16) }}{{ '%0.2f' | format(marker.lod_score|float * 4.16) }}{{ '%0.2f' | format(marker.lrs_value|float) }}{{marker.chr}}{{ '%0.6f' | format(marker.Mb|float) }}{{ marker.name }}
+ {% elif selectedChr > -1 %} +

Interval Analyst

+ + + + {% for header in gene_table_header %} + + {% endfor %} + + + + {% for row in gene_table_body %} + + {% for n in range(row|length) %} + + {% endfor %} + + {% endfor %} + +
{{ header|safe }}
{{ row[n]|safe }}
+ {% endif %}
- {% endif %}
-- cgit v1.2.3