aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-08-12 23:16:02 +0000
committerzsloan2021-08-12 23:16:02 +0000
commit308860f05b87e5fc3899230b7312be9543e6c299 (patch)
tree4519ec0200329d06b49e6531902824ed5c228632 /wqflask
parentf4fbb6d53419a19c6ee67977d18605cdcbb09c0e (diff)
downloadgenenetwork2-308860f05b87e5fc3899230b7312be9543e6c299.tar.gz
Add option to filter samples by study to template
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/show_trait_transform_and_filter.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/show_trait_transform_and_filter.html b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
index 20f78b48..56c3c30e 100644
--- a/wqflask/wqflask/templates/show_trait_transform_and_filter.html
+++ b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
@@ -45,6 +45,25 @@
<input type="button" id="exclude_by_attr" class="btn btn-danger" value="Block">
</div>
{% endif %}
+ {% if study_samplelists|length > 0 %}
+ <div id="filterMenuSpan" class="input-append block-div-2">
+ <label for="filter_study_select">Filter samples by study: </label>
+ <select id="filter_study">
+ {% for study in study_samplelists %}
+ <option value="{{ loop.index + 1 }}">{{ study }}</option>
+ {% endfor %}
+ </select>
+ <select id="filter_study_group" size="1">
+ <option value="primary">
+ {{ sample_group_types['samples_primary'] }}
+ </option>
+ <option value="other">
+ {{ sample_group_types['samples_other'] }}
+ </option>
+ </select>
+ <input type="button" id="filter_by_study" class="btn btn-danger" value="Filter">
+ </div>
+ {% endif %}
<div id="filterMenuSpan" class="input-append block-div-2">
<label for="filter_samples_field">Filter samples by {% if (numerical_var_list|length == 0) and (not js_data.se_exists) %}value{% endif %} </label>
{% if (numerical_var_list|length > 0) or js_data.se_exists %}