about summary refs log tree commit diff
path: root/gn3/computations/rqtl2.py
diff options
context:
space:
mode:
authorAlexander_Kabui2025-01-24 11:42:47 +0300
committerBonfaceKilz2025-02-06 12:43:15 +0300
commitd98d79ab06ddae8f1dd581862261f3be9c130ba1 (patch)
tree89493f8300b5f5d8db0e737f3982c031acbfcf3d /gn3/computations/rqtl2.py
parent1184b9e1568977eb4e57d5379db4e543e267a03b (diff)
downloadgenenetwork3-d98d79ab06ddae8f1dd581862261f3be9c130ba1.tar.gz
Refactor: return the relative file to the workspace directory.
Diffstat (limited to 'gn3/computations/rqtl2.py')
-rw-r--r--gn3/computations/rqtl2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/computations/rqtl2.py b/gn3/computations/rqtl2.py
index a6f8bcb..adb6550 100644
--- a/gn3/computations/rqtl2.py
+++ b/gn3/computations/rqtl2.py
@@ -42,7 +42,8 @@ def write_to_csv(work_dir, file_name, data:list[dict],
         writer.writeheader()
         for row in  data:
             writer.writerow(row)
-        return file_path
+        # return the relative file to the workspace see rqtl2 docs
+        return file_name
 
 
 def validate_required_keys(required_keys:list, data:dict) -> tuple[bool, str]: