aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-06-26 09:54:46 -0500
committerFrederick Muriuki Muriithi2025-06-26 09:54:46 -0500
commit14915500dcf7f2a33de535507905e44ceed46e9a (patch)
treeaf94fcf9b1ab28d89fece615a5788211879379ae
parent25387a0c93eac367239861d89c8fe4c74d247d09 (diff)
downloadgn-uploader-14915500dcf7f2a33de535507905e44ceed46e9a.tar.gz
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.
-rw-r--r--scripts/load_phenotypes_to_db.py2
1 files changed, 1 insertions, 1 deletions
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 = (