From 7cf30517630a1b3ffa50b3eb4f1e9304924d964a Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Wed, 3 Dec 2025 12:15:30 -0600
Subject: Add UI element to run QTLReaper script.
---
uploader/templates/phenotypes/view-dataset.html | 39 +++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index 6a261fc..c634a48 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -72,6 +72,24 @@
id="submit-frm-recompute-phenotype-means" />
+
+
+
+
@@ -165,6 +183,27 @@
return `${pheno.InbredSetCode}_${pheno.xref_id}`;
}
});
+
+
+ $("#submit-frm-rerun-qtlreaper").on(
+ "click",
+ function(event) {
+ // (Re)run the QTLReaper script for selected phenotypes.
+ event.preventDefault();
+ var form = $("#frm-run-qtlreaper");
+ form.find(".dynamically-added-element").remove();
+ dtPhenotypesList.rows({selected: true}).nodes().each((node, index) => {
+ _cloned = $(node).find(".chk-row-select").clone();
+ _cloned.removeAttr("id");
+ _cloned.removeAttr("class");
+ _cloned.attr("style", "display: none;");
+ _cloned.attr("data-type", "dynamically-added-element");
+ _cloned.attr("class", "dynamically-added-element checkbox");
+ _cloned.prop("checked", true);
+ form.append(_cloned);
+ });
+ form.submit();
+ });
});
{%endblock%}
--
cgit 1.4.1