diff options
author | zsloan | 2020-08-17 12:52:22 -0500 |
---|---|---|
committer | zsloan | 2020-08-17 12:52:22 -0500 |
commit | bdbb0fab5b30a9413491c0ad36585d6c5c671d22 (patch) | |
tree | ce277fe492aa30bc42ede5b96e4d534e0a9720e4 | |
parent | 39f2d8b8599a8daae2c55c3a2bf48366164c6ca2 (diff) | |
download | genenetwork2-bdbb0fab5b30a9413491c0ad36585d6c5c671d22.tar.gz |
Placed X/Y trait info before the table on the correlation scatterplot
page
* wqflask/wqflask/templates/corr_scatterplot.html - reordered table and
X/Y trait info divs
-rw-r--r-- | wqflask/wqflask/templates/corr_scatterplot.html | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/wqflask/wqflask/templates/corr_scatterplot.html b/wqflask/wqflask/templates/corr_scatterplot.html index 5877e367..6f0511e1 100644 --- a/wqflask/wqflask/templates/corr_scatterplot.html +++ b/wqflask/wqflask/templates/corr_scatterplot.html @@ -132,44 +132,8 @@ <br> <div id="scatterplot2"></div> <br> - <div class="row" style="min-width: 700px; overflow: hidden;"> - <div style="float: left;"> - <table class="table table-hover table-striped table-bordered" style="width: 80%; margin-left: 60px; text-align: right;"> - <thead> - <tr><th style="text-align: right;">Statistic</th><th style="text-align: right;">Value</th></tr> - </thead> - <tbody> - <tr> - <td>Number</td> - <td>{{jsdata.num_overlap}}</td> - </tr> - <tr> - <td>Slope</td> - <td>{{ jsdata.slope_string }}</td> - </tr> - <tr> - <td>Intercept</td> - <td>{{'%0.3f' % jsdata.intercept}}</td> - </tr> - <tr> - <td>r value</td> - <td>{{'%0.3f' % jsdata.r_value}}</td> - </tr> - <tr> - <td>P value</td> - <td>{% if jsdata.p_value < 0.001 %}{{'%0.3e' % jsdata.p_value}}{% else %}{{'%0.3f' % jsdata.p_value}}{% endif %}</td> - </tr> - <tr> - <td style="text-align: left;" colspan="2"> - Regression Line - <br> - y = {{ jsdata.slope_string }} * x {% if jsdata.intercept < 0 %}- {{'%0.3f' % (jsdata.intercept * -1)}}{% else %}+ {{'%0.3f' % jsdata.intercept}}{% endif %} - </td> - </tr> - </tbody> - </table> - </div> - <div style="margin-left: 50px; min-width: 300px; float: left;"> + <div style="min-width: 700px; overflow: hidden;"> + <div style="margin-left: 50px; min-width: 300px;"> {% if trait_1.dataset.type == "ProbeSet" %} <div> X axis: @@ -240,15 +204,7 @@ </div> {% endif %} </div> - </div> - </div> - - <div class="tab-pane" id="tp2"> - <br> - <div id="srscatterplot2"></div> - <br> - <div class="row" style="min-width: 700px; overflow: hidden;"> - <div style="float: left;"> + <div style="float: left; margin-top:30px;"> <table class="table table-hover table-striped table-bordered" style="width: 80%; margin-left: 60px; text-align: right;"> <thead> <tr><th style="text-align: right;">Statistic</th><th style="text-align: right;">Value</th></tr> @@ -260,31 +216,39 @@ </tr> <tr> <td>Slope</td> - <td>{{ jsdata.srslope_string }}</td> + <td>{{ jsdata.slope_string }}</td> </tr> <tr> <td>Intercept</td> - <td>{{'%0.3f' % jsdata.srintercept}}</td> + <td>{{'%0.3f' % jsdata.intercept}}</td> </tr> <tr> <td>r value</td> - <td>{{'%0.3f' % jsdata.srr_value}}</td> + <td>{{'%0.3f' % jsdata.r_value}}</td> </tr> - <tr> + <tr> <td>P value</td> - <td>{% if jsdata.srp_value < 0.001 %}{{'%0.3e' % jsdata.srp_value}}{% else %}{{'%0.3f' % jsdata.srp_value}}{% endif %}</td> + <td>{% if jsdata.p_value < 0.001 %}{{'%0.3e' % jsdata.p_value}}{% else %}{{'%0.3f' % jsdata.p_value}}{% endif %}</td> </tr> <tr> <td style="text-align: left;" colspan="2"> Regression Line <br> - y = {{ jsdata.srslope_string }} * x {% if jsdata.srintercept < 0 %}- {{'%0.3f' % (jsdata.srintercept * -1)}}{% else %}+ {{'%0.3f' % jsdata.srintercept}}{% endif %} + y = {{ jsdata.slope_string }} * x {% if jsdata.intercept < 0 %}- {{'%0.3f' % (jsdata.intercept * -1)}}{% else %}+ {{'%0.3f' % jsdata.intercept}}{% endif %} </td> </tr> </tbody> </table> + </div> </div> - <div style="margin-left: 50px; min-width: 300px; float: left;"> + </div> + + <div class="tab-pane" id="tp2"> + <br> + <div id="srscatterplot2"></div> + <br> + <div class="row" style="min-width: 700px; overflow: hidden;"> + <div style="margin-left: 50px; min-width: 300px;"> {% if trait_1.dataset.type == "ProbeSet" %} <div> X axis: @@ -335,6 +299,42 @@ </div> {% endif %} </div> + <div style="float: left; margin-top: 30px;"> + <table class="table table-hover table-striped table-bordered" style="width: 80%; margin-left: 60px; text-align: right;"> + <thead> + <tr><th style="text-align: right;">Statistic</th><th style="text-align: right;">Value</th></tr> + </thead> + <tbody> + <tr> + <td>Number</td> + <td>{{jsdata.num_overlap}}</td> + </tr> + <tr> + <td>Slope</td> + <td>{{ jsdata.srslope_string }}</td> + </tr> + <tr> + <td>Intercept</td> + <td>{{'%0.3f' % jsdata.srintercept}}</td> + </tr> + <tr> + <td>r value</td> + <td>{{'%0.3f' % jsdata.srr_value}}</td> + </tr> + <tr> + <td>P value</td> + <td>{% if jsdata.srp_value < 0.001 %}{{'%0.3e' % jsdata.srp_value}}{% else %}{{'%0.3f' % jsdata.srp_value}}{% endif %}</td> + </tr> + <tr> + <td style="text-align: left;" colspan="2"> + Regression Line + <br> + y = {{ jsdata.srslope_string }} * x {% if jsdata.srintercept < 0 %}- {{'%0.3f' % (jsdata.srintercept * -1)}}{% else %}+ {{'%0.3f' % jsdata.srintercept}}{% endif %} + </td> + </tr> + </tbody> + </table> + </div> </div> </div> |