aboutsummaryrefslogtreecommitdiff
path: root/tests/r_qtl/test_r_qtl2_pheno.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-10 04:44:53 +0300
committerFrederick Muriuki Muriithi2024-01-10 04:44:53 +0300
commit9322da0f79dfa4c3f9f899f5a861ce302ce21e9c (patch)
treead3ac4b8d5791219392eba77067c2c0ce71e25e1 /tests/r_qtl/test_r_qtl2_pheno.py
parent21078fecb698972062af3157a9a0f6e84bb8fd0d (diff)
downloadgn-uploader-9322da0f79dfa4c3f9f899f5a861ce302ce21e9c.tar.gz
Make identifier column name explicit
Since the R/qtl2 bundle generator could name the identifier column anything, this commit converts the incoming identifier column name into something explicit that we know and can use.
Diffstat (limited to 'tests/r_qtl/test_r_qtl2_pheno.py')
-rw-r--r--tests/r_qtl/test_r_qtl2_pheno.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/r_qtl/test_r_qtl2_pheno.py b/tests/r_qtl/test_r_qtl2_pheno.py
index 66850a0..a7de675 100644
--- a/tests/r_qtl/test_r_qtl2_pheno.py
+++ b/tests/r_qtl/test_r_qtl2_pheno.py
@@ -36,17 +36,17 @@ def test_parse_pheno_files(filepath, expected):
@pytest.mark.parametrize(
"filepath,expected",
(("tests/r_qtl/test_files/test_phenocovar.zip",
- ({"pheno": "T0", "time (hrs)": "0"},
- {"pheno": "T2", "time (hrs)": "0.0333333333333333"},
- {"pheno": "T4", "time (hrs)": "0.0666666666666667"},
- {"pheno": "T6", "time (hrs)": "0.1"},
- {"pheno": "T8", "time (hrs)": "0.133333333333333"})),
+ ({"id": "T0", "time (hrs)": "0"},
+ {"id": "T2", "time (hrs)": "0.0333333333333333"},
+ {"id": "T4", "time (hrs)": "0.0666666666666667"},
+ {"id": "T6", "time (hrs)": "0.1"},
+ {"id": "T8", "time (hrs)": "0.133333333333333"})),
("tests/r_qtl/test_files/test_phenocovar_transposed.zip",
- ({"pheno": "T0", "time (hrs)": "0"},
- {"pheno": "T2", "time (hrs)": "0.0333333333333333"},
- {"pheno": "T4", "time (hrs)": "0.0666666666666667"},
- {"pheno": "T6", "time (hrs)": "0.1"},
- {"pheno": "T8", "time (hrs)": "0.133333333333333"}))))
+ ({"id": "T0", "time (hrs)": "0"},
+ {"id": "T2", "time (hrs)": "0.0333333333333333"},
+ {"id": "T4", "time (hrs)": "0.0666666666666667"},
+ {"id": "T6", "time (hrs)": "0.1"},
+ {"id": "T8", "time (hrs)": "0.133333333333333"}))))
def test_parse_phenocovar_files(filepath, expected):
"""Test parsing of 'phenocovar' files from the R/qtl2 bundle.