about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui2025-02-25 13:25:21 +0300
committerAlexander_Kabui2025-02-25 13:25:21 +0300
commitd2314194549780997092d2688c47af5c63e06989 (patch)
treef9646af687c6d564c77637c7f81acc6b72eed3ce
parent3a651aad0b350b0e61f3e3d99613454b9b8e0a99 (diff)
downloadgenenetwork3-d2314194549780997092d2688c47af5c63e06989.tar.gz
fix: handle extra columns in permutations CSV reader to prevent unpacking error.
-rw-r--r--gn3/computations/rqtl2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/rqtl2.py b/gn3/computations/rqtl2.py
index a06c929..b482c47 100644
--- a/gn3/computations/rqtl2.py
+++ b/gn3/computations/rqtl2.py
@@ -136,7 +136,7 @@ def process_permutation(data):
     with open(perm_file, "r", encoding="utf-8") as file_handler:
         reader = csv.reader(file_handler)
         phenotypes = next(reader)[1:]
-        perm_results = {_id:float(val) for (_id,val)  in reader}
+        perm_results = {_id: float(val) for _id, val, *_ in reader}
         _, significance = fetch_significance_results(data.get("significance_file"))
         return {
         "phenotypes": phenotypes,