about summary refs log tree commit diff
path: root/gn3/computations/wgcna.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/computations/wgcna.py')
-rw-r--r--gn3/computations/wgcna.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/computations/wgcna.py b/gn3/computations/wgcna.py
index ab12fe7..de26f48 100644
--- a/gn3/computations/wgcna.py
+++ b/gn3/computations/wgcna.py
@@ -19,7 +19,7 @@ def dump_wgcna_data(request_data: dict):
 
     request_data["TMPDIR"] = TMPDIR
 
-    with open(temp_file_path, "w") as output_file:
+    with open(temp_file_path, "w", encoding="utf-8") as output_file:
         json.dump(request_data, output_file)
 
     return temp_file_path
@@ -75,7 +75,7 @@ def call_wgcna_script(rscript_path: str, request_data: dict):
 
         run_cmd_results = run_cmd(cmd)
 
-        with open(generated_file, "r") as outputfile:
+        with open(generated_file, "r", encoding="utf-8") as outputfile:
 
             if run_cmd_results["code"] != 0:
                 return run_cmd_results