aboutsummaryrefslogtreecommitdiff
path: root/tests/r_qtl
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-03 05:41:59 +0300
committerFrederick Muriuki Muriithi2024-01-03 05:41:59 +0300
commitc39dfbb218864e898bda14da466b448f11e441e7 (patch)
treefed1e22d1ee827a5b3df37cf7d2fa8ab042c91e1 /tests/r_qtl
parent9481d1705f735a1087ced871bcb169d147e44dd0 (diff)
downloadgn-uploader-c39dfbb218864e898bda14da466b448f11e441e7.tar.gz
Extract processing of transposed files into reusable function.
The processing of transposed files is similar across files. This commit extracts the common parts into a separate function.
Diffstat (limited to 'tests/r_qtl')
-rw-r--r--tests/r_qtl/test_r_qtl2_gmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/r_qtl/test_r_qtl2_gmap.py b/tests/r_qtl/test_r_qtl2_gmap.py
index 64774c2..ba46c42 100644
--- a/tests/r_qtl/test_r_qtl2_gmap.py
+++ b/tests/r_qtl/test_r_qtl2_gmap.py
@@ -44,5 +44,5 @@ def test_parse_map_files(relpath, mapfiletype, expected):
THEN: ensure the parsed data is as expected.
"""
with ZipFile(Path(relpath).absolute(), "r") as zfile:
- assert rqtl2.map_data(
- zfile, mapfiletype, rqtl2.control_data(zfile)) == expected
+ assert tuple(rqtl2.map_data(
+ zfile, mapfiletype, rqtl2.control_data(zfile))) == expected