aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/show_trait_statistics.html
blob: 9ee0de5c3e11a788cee2302e4cad52d93d1fdb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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>