From cc12fe06593f4957fb2b5b641ebe7e5cf43453b1 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 9 Sep 2019 16:22:15 -0500 Subject: Add option to hide columns in correlation results Increased width of permutation histogram Increased a couple table widths that had crowded header text on certain browers (maybe just Safari) --- wqflask/utility/tools.py | 5 ++-- .../marker_regression/display_mapping_results.py | 2 +- wqflask/wqflask/templates/correlation_page.html | 28 ++++++++++++---------- wqflask/wqflask/templates/mapping_results.html | 2 +- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index 31ab2046..a2eb0817 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -105,7 +105,7 @@ def js_path(module=None): try_guix = get_setting("JS_GUIX_PATH")+"/"+module if valid_path(try_guix): return try_guix - raise "No JS path found for "+module+" (if not in Guix check JS_GN_PATH)" + raise Exception("No JS path found for "+module+" (if not in Guix check JS_GN_PATH)") def reaper_command(guess=None): return get_setting("REAPER_COMMAND",guess) @@ -291,7 +291,8 @@ assert_dir(JS_GUIX_PATH) assert_dir(JS_GUIX_PATH+'/cytoscape-panzoom') CSS_PATH = "UNKNOWN" # assert_dir(JS_PATH) -JS_TWITTER_POST_FETCHER_PATH = get_setting("JS_TWITTER_POST_FETCHER_PATH",js_path("Twitter-Post-Fetcher")) +#JS_TWITTER_POST_FETCHER_PATH = get_setting("JS_TWITTER_POST_FETCHER_PATH",js_path("Twitter-Post-Fetcher")) +JS_TWITTER_POST_FETCHER_PATH = get_setting("JS_TWITTER_POST_FETCHER_PATH",js_path("javascript-twitter-post-fetcher")) assert_dir(JS_TWITTER_POST_FETCHER_PATH) assert_file(JS_TWITTER_POST_FETCHER_PATH+"/js/twitterFetcher_min.js") JS_CYTOSCAPE_PATH = get_setting("JS_CYTOSCAPE_PATH",js_path("cytoscape")) 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..9e986eda 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -2,6 +2,7 @@ {% block css %} + {% endblock %} {% block content %}