aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/computations/test_heatmap.py8
-rw-r--r--tests/unit/computations/test_qtlreaper.py20
2 files changed, 14 insertions, 14 deletions
diff --git a/tests/unit/computations/test_heatmap.py b/tests/unit/computations/test_heatmap.py
index f1bbefc..156af45 100644
--- a/tests/unit/computations/test_heatmap.py
+++ b/tests/unit/computations/test_heatmap.py
@@ -165,22 +165,22 @@ class TestHeatmap(TestCase):
"""Test retrieval of strains and values."""
for orders, slist, tdata, expected in [
[
- [(60, 2)],
+ [2],
["s1", "s2", "s3", "s4"],
[[2, 9, 6, None, 4],
[7, 5, None, None, 4],
[9, None, 5, 4, 7],
[6, None, None, 4, None]],
- [[(60, 2), ["s1", "s3", "s4"], [9, 5, 4]]]
+ [[2, ["s1", "s3", "s4"], [9, 5, 4]]]
],
[
- [(60, 3)],
+ [3],
["s1", "s2", "s3", "s4", "s5"],
[[2, 9, 6, None, 4],
[7, 5, None, None, 4],
[9, None, 5, 4, 7],
[6, None, None, 4, None]],
- [[(60, 3), ["s1", "s4"], [6, 4]]]
+ [[3, ["s1", "s4"], [6, 4]]]
]]:
with self.subTest(strainlist=slist, traitdata=tdata):
self.assertEqual(
diff --git a/tests/unit/computations/test_qtlreaper.py b/tests/unit/computations/test_qtlreaper.py
index 495ed97..1d67827 100644
--- a/tests/unit/computations/test_qtlreaper.py
+++ b/tests/unit/computations/test_qtlreaper.py
@@ -15,52 +15,52 @@ class TestQTLReaper(TestCase):
"tests/unit/computations/data/qtlreaper/main_output_sample.txt"),
[
{
- "ID": "T1", "Locus": "rs31443144", "Chr": "1", "cM": 1.500,
+ "ID": "T1", "Locus": "rs31443144", "Chr": 1, "cM": 1.500,
"Mb": 3.010, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs6269442", "Chr": "1", "cM": 1.500,
+ "ID": "T1", "Locus": "rs6269442", "Chr": 1, "cM": 1.500,
"Mb": 3.492, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs32285189", "Chr": "1", "cM": 1.630,
+ "ID": "T1", "Locus": "rs32285189", "Chr": 1, "cM": 1.630,
"Mb": 3.511, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs258367496", "Chr": "1", "cM": 1.630,
+ "ID": "T1", "Locus": "rs258367496", "Chr": 1, "cM": 1.630,
"Mb": 3.660, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs32430919", "Chr": "1", "cM": 1.750,
+ "ID": "T1", "Locus": "rs32430919", "Chr": 1, "cM": 1.750,
"Mb": 3.777, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs36251697", "Chr": "1", "cM": 1.880,
+ "ID": "T1", "Locus": "rs36251697", "Chr": 1, "cM": 1.880,
"Mb": 3.812, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs30658298", "Chr": "1", "cM": 2.010,
+ "ID": "T1", "Locus": "rs30658298", "Chr": 1, "cM": 2.010,
"Mb": 4.431, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs51852623", "Chr": "1", "cM": 2.010,
+ "ID": "T1", "Locus": "rs51852623", "Chr": 1, "cM": 2.010,
"Mb": 4.447, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs31879829", "Chr": "1", "cM": 2.140,
+ "ID": "T1", "Locus": "rs31879829", "Chr": 1, "cM": 2.140,
"Mb": 4.519, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
},
{
- "ID": "T1", "Locus": "rs36742481", "Chr": "1", "cM": 2.140,
+ "ID": "T1", "Locus": "rs36742481", "Chr": 1, "cM": 2.140,
"Mb": 4.776, "LRS": 0.500, "Additive": -0.074,
"pValue": 1.000
}