From e29a349b46d932411879a810fb0be3a0042bf540 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 19 May 2021 20:03:01 +0000 Subject: Temporarily replace forward-slashes with underscores, since they can be included in the hashes used for filenames --- gn3/computations/rqtl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gn3/computations/rqtl.py b/gn3/computations/rqtl.py index 855a819..605e0e1 100644 --- a/gn3/computations/rqtl.py +++ b/gn3/computations/rqtl.py @@ -26,6 +26,9 @@ output filename generated from a hash of the genotype and phenotype files _hash += generate_hash_of_string( ",".join(rqtl_wrapper_bool_kwargs)) + # Temporarily substitute forward-slashes in hash with underscores + _hash = _hash.replace("/", "_") + _output_filename = f"{_hash}-output.json" return { "output_file": -- cgit v1.2.3