diff options
author | Frederick Muriuki Muriithi | 2025-06-26 09:54:46 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-06-26 09:54:46 -0500 |
commit | 14915500dcf7f2a33de535507905e44ceed46e9a (patch) | |
tree | af94fcf9b1ab28d89fece615a5788211879379ae | |
parent | 25387a0c93eac367239861d89c8fe4c74d247d09 (diff) | |
download | gn-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.py | 2 |
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 = ( |