aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorAlexander Kabui2022-09-08 14:04:29 +0300
committerGitHub2022-09-08 14:04:29 +0300
commitc9572f96f061a28b3c68f9572bd796ed560233aa (patch)
treefc19dcb2f454ab5ac01e9b986a6f75b4330d14c0 /wqflask/base
parent583e308f99dbcacce6a3c544689cc4b57a00378f (diff)
parentd467d314273b36189dd5936062f683fab57986f4 (diff)
downloadgenenetwork2-c9572f96f061a28b3c68f9572bd796ed560233aa.tar.gz
Merge pull request #727 from Alexanderlacuna/feature/use-textfiles
use text files for Probeset
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/data_set.py3
-rw-r--r--wqflask/base/webqtlConfig.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 742eb61c..2f4c1154 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -1287,5 +1287,6 @@ def fetch_cached_results(dataset_name: str, dataset_type: str, samplelist: List)
with open(file_path, "r") as file_handler:
return json.load(file_handler)
- except FileNotFoundError:
+
+ except Exception:
pass
diff --git a/wqflask/base/webqtlConfig.py b/wqflask/base/webqtlConfig.py
index 39947158..371a94ab 100644
--- a/wqflask/base/webqtlConfig.py
+++ b/wqflask/base/webqtlConfig.py
@@ -7,7 +7,7 @@
# with those in utility/tools.py
#
#########################################
-
+import os
from utility.tools import valid_path, mk_dir, assert_dir, assert_writable_dir, flat_files, TEMPDIR
# Debug Level
@@ -95,6 +95,9 @@ if not valid_path(JSON_GENODIR):
# fall back on old location (move the dir, FIXME)
JSON_GENODIR = flat_files('json')
+
+TEXTDIR = os.path.join(os.environ.get(
+ "GNSHARE", "/gnshare/gn/"), "web/ProbeSetFreeze_DataMatrix")
# Are we using the following...?
PORTADDR = "http://50.16.251.170"
INFOPAGEHREF = '/dbdoc/%s.html'