aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-09-14 18:09:36 +0000
committerzsloan2021-09-14 18:09:36 +0000
commitc0fbbb42a79baa823b517ee8f537cec1edc057c8 (patch)
treee2288f332c12b4400f6be9aae4445236e29bb46f
parent24e0de14969edb220a03e22d1c9b7e6ed33f6b82 (diff)
downloadgenenetwork2-c0fbbb42a79baa823b517ee8f537cec1edc057c8.tar.gz
Replace / with _ in the file hashes in rqtl_mapping.py, since they get translated to directories
-rw-r--r--wqflask/wqflask/marker_regression/rqtl_mapping.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wqflask/wqflask/marker_regression/rqtl_mapping.py b/wqflask/wqflask/marker_regression/rqtl_mapping.py
index cd578870..a148b49c 100644
--- a/wqflask/wqflask/marker_regression/rqtl_mapping.py
+++ b/wqflask/wqflask/marker_regression/rqtl_mapping.py
@@ -61,6 +61,7 @@ def get_hash_of_textio(the_file: TextIO) -> str:
the_file.seek(0)
hash_of_file = hashlib.md5(the_file.read().encode()).hexdigest()
+ hash_of_file = hash_of_file.replace("/", "_") # Replace / with _ to prevent issue with filenames being translated to directories
return hash_of_file