From 14915500dcf7f2a33de535507905e44ceed46e9a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 26 Jun 2025 09:54:46 -0500 Subject: BugFix: Logical bug - files have already been "untransposed". The `read_csv_file_headers` function can read headings from non-transposed or transposed file, depending on the value of a flag. The bug was passing the value of the `*_transposed` flag from the control file, even after any transposed files have been "untransposed". This commit passes an explicit `False` value, and adds a comment to note the fix. --- scripts/load_phenotypes_to_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index 80b11af..b0cc7f6 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -116,7 +116,7 @@ def __build_dataitems__( ): _headers = rqtl2.read_csv_file_headers( phenofiles[0], - control_data[f"{filetype}_transposed"], + False, # Any transposed files have been un-transposed by this point control_data["sep"], control_data["comment.char"]) _filescontents = ( -- cgit v1.2.3