aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-09-09 16:36:26 -0500
committerzsloan2019-09-09 16:36:26 -0500
commitea5ca4eb5405edd0b77179b2760e011fee9f1710 (patch)
tree8014e06666ddc457d4975e08e4da731ec8f7d048
parentbbc12d6db4b40247e02377b2c24d933243dd7cc1 (diff)
downloadgenenetwork2-ea5ca4eb5405edd0b77179b2760e011fee9f1710.tar.gz
Just adding the option to remove columns from correlation results and the changes to permutation histogram and table widths
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py2
-rw-r--r--wqflask/wqflask/templates/correlation_page.html66
-rw-r--r--wqflask/wqflask/templates/mapping_results.html2
3 files changed, 38 insertions, 32 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index 911219f4..2834f1c3 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -2066,7 +2066,7 @@ class DisplayMappingResults(object):
#########################################
# Permutation Graph
#########################################
- myCanvas = pid.PILCanvas(size=(400,300))
+ myCanvas = pid.PILCanvas(size=(500,300))
if 'lod_score' in self.qtlresults[0] and self.LRS_LOD == "LRS":
perm_output = [value*4.61 for value in self.perm_output]
elif 'lod_score' not in self.qtlresults[0] and self.LRS_LOD == "LOD":
diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html
index cbd2ab46..8b94784f 100644
--- a/wqflask/wqflask/templates/correlation_page.html
+++ b/wqflask/wqflask/templates/correlation_page.html
@@ -2,6 +2,7 @@
{% block css %}
<link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/css/jquery.dataTables.css" />
<link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/extensions/buttons.bootstrap.css" />
+ <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/extensions/buttons.dataTables.css">
{% endblock %}
{% block content %}
<div class="container" style="min-width: 1250px;">
@@ -188,10 +189,9 @@
<script language="javascript" type="text/javascript" src="/static/new/js_external/jszip.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/underscore/underscore-min.js"></script>
- <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.js"></script>
- <script language="javascript" type="text/javascript" src="https://cdn.datatables.net/buttons/1.0.0/js/dataTables.buttons.min.js"></script>
- <script language="javascript" type="text/javascript" src="https://cdn.datatables.net/buttons/1.0.0/js/buttons.html5.min.js"></script>
- <script language="javascript" type="text/javascript" src="https://cdn.datatables.net/buttons/1.0.0/js/buttons.bootstrap.min.js"></script>
+ <script language="javascript" type="text/javascript" src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.buttons.min.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/buttons.colVis.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
<script type="text/javascript" charset="utf-8">
@@ -319,15 +319,17 @@
});
$('.trait_checkbox:checkbox').on("change", change_buttons);
},
- "buttons": [
+ buttons: [
{
- extend: 'csvHtml5',
- text: 'Download CSV',
- title: 'correlation_results',
- fieldBoundary: '"',
- exportOptions: {
- columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
- }
+ extend: 'columnsToggle',
+ columns: function( idx, data, node ) {
+ if (idx != 0) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ postfixButtons: [ 'colvisRestore' ]
}
],
"columnDefs": [ {
@@ -360,7 +362,7 @@
}
},
"order": [[9, "asc" ]],
- "sDom": "tir",
+ "sDom": "Btir",
"iDisplayLength": -1,
"autoWidth": false,
"deferRender": true,
@@ -372,15 +374,17 @@
{% elif target_dataset.type == "Publish" %}
table_conf = {
"paging": false,
- "buttons": [
+ buttons: [
{
- extend: 'csvHtml5',
- text: 'Download CSV',
- title: 'correlation_results',
- fieldBoundary: '"',
- exportOptions: {
- columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
- }
+ extend: 'columnsToggle',
+ columns: function( idx, data, node ) {
+ if (idx != 0) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ postfixButtons: [ 'colvisRestore' ]
}
],
"columnDefs": [
@@ -413,22 +417,24 @@
}
},
"order": [[8, "asc" ]],
- "sDom": "tir",
+ "sDom": "Btir",
"autoWidth": false,
"bDeferRender": true
}
{% elif target_dataset.type == "Geno" %}
table_conf = {
"paging": false,
- "buttons": [
+ buttons: [
{
- extend: 'csvHtml5',
- text: 'Download CSV',
- title: 'correlation_results',
- fieldBoundary: '"',
- exportOptions: {
- columns: [1, 2, 3, 4, 5, 6]
- }
+ extend: 'columnsToggle',
+ columns: function( idx, data, node ) {
+ if (idx != 0) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ postfixButtons: [ 'colvisRestore' ]
}
],
"columnDefs": [
diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html
index 373bae1e..baf2b1ec 100644
--- a/wqflask/wqflask/templates/mapping_results.html
+++ b/wqflask/wqflask/templates/mapping_results.html
@@ -214,7 +214,7 @@
<button class="btn btn-default" id="add" disabled><span class="glyphicon glyphicon-plus-sign"></span> Add</button>
<br />
<br />
- <div id="table_container" style="width:{% if 'additive' in trimmed_markers[0] %}480{% else %}450{% endif %}px;">
+ <div id="table_container" style="width:{% if 'additive' in trimmed_markers[0] %}500{% else %}470{% endif %}px;">
<table id="trait_table" class="table-hover table-striped cell-border dataTable no-footer">
<thead>
<tr>