diff options
author | Frederick Muriuki Muriithi | 2024-02-02 14:22:06 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-02-02 14:22:06 +0300 |
commit | cb3851a91d63a29b808f44eb91c00df91641e380 (patch) | |
tree | a22e6aba2fe35026d7427c7dfae67dd17eafcbd1 /r_qtl | |
parent | 2b8fd63af18e70b4c8c20a34a6dfa041e8a832b9 (diff) | |
download | gn-uploader-cb3851a91d63a29b808f44eb91c00df91641e380.tar.gz |
Ensure control file defaults are set up in code.
Diffstat (limited to 'r_qtl')
-rw-r--r-- | r_qtl/r_qtl2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/r_qtl/r_qtl2.py b/r_qtl/r_qtl2.py index 1755a05..9127dce 100644 --- a/r_qtl/r_qtl2.py +++ b/r_qtl/r_qtl2.py @@ -28,6 +28,11 @@ def control_data(zfile: ZipFile) -> dict: "na.strings": ["NA"], "comment.char": "#", "sep": ",", + **{ + f"{key}_transposed": False for key in ( + "geno", "founder_geno", "pheno", "covar", "phenocovar", "gmap", + "pmap", "phenose") + }, **(json.loads(zfile.read(files[0])) if files[0].endswith(".json") else yaml.safe_load(zfile.read(files[0]))) |