about summary refs log tree commit diff
path: root/gn2/wqflask/templates/show_trait_statistics.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/show_trait_statistics.html')
-rw-r--r--gn2/wqflask/templates/show_trait_statistics.html106
1 files changed, 106 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/show_trait_statistics.html b/gn2/wqflask/templates/show_trait_statistics.html
new file mode 100644
index 00000000..9ee0de5c
--- /dev/null
+++ b/gn2/wqflask/templates/show_trait_statistics.html
@@ -0,0 +1,106 @@
+<div>
+    <div class="tabbable"> <!-- Only required for left/right tabs -->
+        <ul class="nav nav-pills">
+            <li class="active">
+                <a href="#stats_tab" data-toggle="tab">Basic Statistics</a>
+            </li>
+            <li>
+                <a href="#histogram_tab" class="histogram_tab" data-toggle="tab">Histogram</a>
+            </li>
+            {% if num_values < 256 %}
+            <li>
+                <a href="#bar_chart_tab" class="bar_chart_tab" data-toggle="tab">Bar Chart</a>
+            </li>
+            {% endif %}
+            <li>
+                <a href="#probability_plot" class="prob_plot_tab" data-toggle="tab">Probability Plot</a>
+            </li>
+            <li>
+                <a href="#violin_plot_tab" class="violin_plot_tab" data-toggle="tab">Violin Plot</a>
+            </li>
+        </ul>
+        <div class="tab-content">
+            <div class="tab-pane active" id="stats_tab">
+                <div class="form-horizontal section-form-div">
+                        <table id="stats_table" style="width: {{ stats_table_width }}px;" class="table table-hover table-striped table-bordered left-float"></table>
+                </div>
+            </div>
+            <div class="tab-pane" id="histogram_tab">
+                <div class="form-horizontal section-form-div">
+                    {% if sample_groups|length != 1 %}
+                    Select Group:
+                    <select class="histogram_samples_group">
+                        {% for group, pretty_group in sample_group_types.items() %}
+                            <option value="{{ group }}">{{ pretty_group }}</option>
+                        {% endfor %}
+                    </select>
+                    <br><br>
+                    {% endif %}
+                    <div id="histogram_container">
+                        <div id="histogram" class="barchart"></div>
+                    </div>
+                </div>
+            </div>
+            {% if num_values < 256 %}
+            <div class="tab-pane" id="bar_chart_tab">
+                <div class="form-horizontal section-form-div">
+                    {% if sample_groups|length != 1 %}
+                    Select Group:
+                    <select class="bar_chart_samples_group">
+                        {% for group, pretty_group in sample_group_types.items() %}
+                            <option value="{{ group }}">{{ pretty_group }}</option>
+                        {% endfor %}
+                    </select>
+                    {% endif %}
+
+                    <div id="update_bar_chart" class="btn-group">
+                        <button type="button" class="btn btn-default sort_by_name" value="name">
+                        <i class="icon-resize-horizontal"></i> Sort By Name
+                        </button>
+                        <button type="button" class="btn btn-default sort_by_value" value="value">
+                        <i class="icon-signal"></i> Sort By Value
+                        </button>
+                    </div>
+                    <div id="bar_chart_container">
+                        <div id="bar_chart"></div>
+                    </div>
+                </div>
+            </div>
+            {% endif %}
+            <div class="tab-pane" id="probability_plot">
+                <div class="form-horizontal section-form-div">
+                    {% if sample_groups|length != 1 %}
+                    Select Group:
+                    <select class="prob_plot_samples_group">
+                        {% for group, pretty_group in sample_group_types.items() %}
+                            <option value="{{ group }}">{{ pretty_group }}</option>
+                        {% endfor %}
+                    </select>
+                    <br>
+                    <br>
+                    {% endif %}
+
+                    <div id="prob_plot_container">
+                        <div id="prob_plot_div"></div>
+                    </div>
+                    <div id="shapiro_wilk_text"></div>
+                    <br>
+                    <div>
+                        More about <a href="http://en.wikipedia.org/wiki/Normal_probability_plot">Normal Probability Plots</a> and more
+                        about interpreting these plots from the <a href="http://genenetwork.org/glossary.html#normal_probability">glossary</a>
+                    </div>
+                </div>
+            </div>
+            <div class="tab-pane" id="violin_plot_tab">
+                <div class="form-horizontal section-form-div">
+                    <div id="violin_plot_container">
+                        <div id="violin_plot"></div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+    <div id="collections_holder_wrapper" style="display:none;">
+        <div id="collections_holder"></div>
+    </div>
+</div>