aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2022-09-20 15:56:06 +0300
committerAlexander_Kabui2022-09-20 15:56:06 +0300
commit628cbe8f4dae4e3f7f91e135943d17e8be427eb2 (patch)
tree9c658c8106c3e70319c57388536e94d39d793185
parent37fa005a7561bc225c45a9ffc32d1c353d846e7e (diff)
downloadgenenetwork2-628cbe8f4dae4e3f7f91e135943d17e8be427eb2.tar.gz
store text files in TMPDIR
-rw-r--r--wqflask/wqflask/correlation/pre_computes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py
index 6d5e5f04..afcea88f 100644
--- a/wqflask/wqflask/correlation/pre_computes.py
+++ b/wqflask/wqflask/correlation/pre_computes.py
@@ -171,7 +171,7 @@ def get_datasets_data(base_dataset, target_dataset_data):
return (target_results, base_results)
-def fetch_text_file(dataset_name, conn, text_dir=TEXTDIR):
+def fetch_text_file(dataset_name, conn, text_dir=TMPDIR):
"""fetch textfiles with strain vals if exists"""
with conn.cursor() as cursor:
@@ -207,7 +207,7 @@ def read_text_file(sample_dict, file_path):
return (sample_vals, [",".join([line[i] for i in _posit]) for line in csv_reader])
-def write_db_to_textfile(db_name, conn, text_dir=TEXTDIR):
+def write_db_to_textfile(db_name, conn, text_dir=TMPDIR):
def __generate_file_name__(db_name):
# todo add expiry time and checker