aboutsummaryrefslogtreecommitdiff
path: root/tests/r_qtl/test_r_qtl2_pheno.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-03 16:53:40 +0300
committerFrederick Muriuki Muriithi2024-01-03 16:53:40 +0300
commit3e51fb24fd34bab2164a5f4056bc78d21827ca29 (patch)
tree690a4f7453dd276ccb90c7101140117fdeb6f9e7 /tests/r_qtl/test_r_qtl2_pheno.py
parent95d2b868adebbc7ebbc2435f9184c30c014ec513 (diff)
downloadgn-uploader-3e51fb24fd34bab2164a5f4056bc78d21827ca29.tar.gz
Use generic parser. Remove obsoleted functions.
Diffstat (limited to 'tests/r_qtl/test_r_qtl2_pheno.py')
-rw-r--r--tests/r_qtl/test_r_qtl2_pheno.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/r_qtl/test_r_qtl2_pheno.py b/tests/r_qtl/test_r_qtl2_pheno.py
index 554d9c8..46be469 100644
--- a/tests/r_qtl/test_r_qtl2_pheno.py
+++ b/tests/r_qtl/test_r_qtl2_pheno.py
@@ -29,5 +29,5 @@ def test_parse_pheno_files(filepath, expected):
THEN: verify the parsed data is as expected
"""
with ZipFile(Path(filepath).absolute(), "r") as zfile:
- assert tuple(
- rqtl2.phenotype_data(zfile, rqtl2.control_data(zfile))) == expected
+ cdata = rqtl2.control_data(zfile)
+ assert tuple(rqtl2.file_data(zfile, "pheno", cdata)) == expected