aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-09-13 20:03:45 +0000
committerzsloan2021-09-13 20:03:45 +0000
commit91d04e5b573107aead1da8482dd9184d9869b82a (patch)
tree0faebd95155f091b73facde9a1460c8b008f0284 /wqflask
parent2ef7cad06cc1dcde61c91d2eafef002d25cb194e (diff)
downloadgenenetwork2-91d04e5b573107aead1da8482dd9184d9869b82a.tar.gz
Change mapping export filename to use the trait hash
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index b101b948..361c413b 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -104,9 +104,7 @@ class RunMapping:
if "results_path" in start_vars:
self.mapping_results_path = start_vars['results_path']
else:
- mapping_results_filename = self.dataset.group.name + "_" + \
- ''.join(random.choice(string.ascii_uppercase + string.digits)
- for _ in range(6))
+ mapping_results_filename = "_".join([self.dataset.group.name, self.vals_hash])
self.mapping_results_path = "{}{}.csv".format(
webqtlConfig.GENERATED_IMAGE_DIR, mapping_results_filename)