aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-07-29 20:26:35 +0000
committerzsloan2021-07-29 20:26:35 +0000
commit8a622432b3b53b917a9409093f0210ce7f1c2b87 (patch)
tree1243eb04838f60b3c2071a1dc7ba79ae1c1a2fd6
parentd699c4865eb6433c7ea9c3a819b88e3ab75892df (diff)
downloadgenenetwork2-8a622432b3b53b917a9409093f0210ce7f1c2b87.tar.gz
Added JS for submitting pair scan from trait page
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js b/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js
index 09e9d024..e457fa4a 100644
--- a/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js
+++ b/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js
@@ -171,6 +171,28 @@ $(".rqtl-geno-tab, #rqtl_geno_compute").on("click", (function(_this) {
};
})(this));
+$(".rqtl-pair-tab, #rqtl_pair_compute").on("click", (function(_this) {
+ return function() {
+ if ($(this).hasClass('active') || $(this).attr('id') == "rqtl_pair_compute"){
+ var form_data, url;
+ url = "/loading";
+ $('input[name=method]').val("rqtl_geno");
+ $('input[name=pair_scan]').val("");
+ $('input[name=genofile]').val($('#genofile_rqtl_geno').val());
+ $('input[name=num_perm]').val($('input[name=num_perm_rqtl_geno]').val());
+ $('input[name=categorical_vars]').val(js_data.categorical_vars)
+ $('input[name=control_marker]').val($('input[name=control_rqtl_geno]').val());
+ $('input[name=do_control]').val($('input[name=do_control_rqtl]:checked').val());
+ $('input[name=tool_used]').val("Mapping");
+ $('input[name=form_url]').val("/run_mapping");
+ $('input[name=wanted_inputs]').val(mapping_input_list.join(","));
+ return submit_special(url);
+ } else {
+ return true
+ }
+ };
+})(this));
+
$(".gemma-tab, #gemma_compute").on("click", (function(_this) {
return function() {
if ($(this).hasClass('active') || $(this).attr('id') == "gemma_compute"){