From 12598c7a6be757efcc040e8e160190cae0af4596 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Thu, 24 Mar 2022 20:32:49 +0300 Subject: display parametric values used --- wqflask/wqflask/templates/gn3_wgcna_results.html | 44 +++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) 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 %}
+
+

Parameters used

+ +
+ +

Soft Thresholds

@@ -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}} -{% endblock %} \ No newline at end of file +{% endblock %} -- cgit v1.2.3