aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-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 %}