aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2022-03-24 20:32:49 +0300
committerAlexander Kabui2022-03-24 20:32:49 +0300
commit12598c7a6be757efcc040e8e160190cae0af4596 (patch)
tree6de8531eeb2ccfaaa083e8400cc68849e0d1fbd1
parent3c341b425dad8adf532c848f81e2c867bc647b5c (diff)
downloadgenenetwork2-12598c7a6be757efcc040e8e160190cae0af4596.tar.gz
display parametric values used
-rw-r--r--wqflask/wqflask/templates/gn3_wgcna_results.html44
1 files changed, 43 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/gn3_wgcna_results.html b/wqflask/wqflask/templates/gn3_wgcna_results.html
index 952f479e..3a517954 100644
--- a/wqflask/wqflask/templates/gn3_wgcna_results.html
+++ b/wqflask/wqflask/templates/gn3_wgcna_results.html
@@ -75,6 +75,12 @@
{% else %}
<div>
+ <div>
+ <h2 style="text-align:center;">Parameters used</h2>
+
+ <table id="summary" class="display" width="40vw" ></table>
+
+ </div>
<div >
<h2 style="text-align:center">Soft Thresholds </h2>
<div class="grid_container">
@@ -135,11 +141,47 @@
let results = {{results|safe}}
+let parameters = {{parameters|safe}}
+
let phenoModules = results["data"]["output"]["net_colors"]
let phenotypes = Object.keys(phenoModules)
let phenoMods = Object.values(phenoModules)
let {col_names,mod_dataset} = {{data|safe}}
+
+let {MinModuleSize,TOMtype,corType,mergeCutHeight} = parameters
+
+const summary = {
+
+ strain_numbers:6,
+
+ nphe:12,
+
+ modules_found:phenoMods.length,
+ MinModuleSize,
+ TOMtype,
+ corType,
+ mergeCutHeight
+
+}
+
+ $("#summary").DataTable( {
+
+ data: Object.keys(summary).map((key)=>{
+ return [key,summary[key]]
+ }),
+ columns: [ {
+ title: "parameter",
+
+ },
+
+ {
+ title:" param_values"
+ }
+ ]
+ })
+
+
$('#eigens').DataTable( {
data: mod_dataset,
columns: col_names.map((name)=>{
@@ -162,4 +204,4 @@ let {col_names,mod_dataset} = {{data|safe}}
</script>
-{% endblock %} \ No newline at end of file
+{% endblock %}