From d2314194549780997092d2688c47af5c63e06989 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 25 Feb 2025 13:25:21 +0300 Subject: fix: handle extra columns in permutations CSV reader to prevent unpacking error. --- gn3/computations/rqtl2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/computations/rqtl2.py') 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, -- cgit 1.4.1