aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/computations/test_qtlreaper.py3
-rw-r--r--tests/unit/test_heatmaps.py6
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/computations/test_qtlreaper.py b/tests/unit/computations/test_qtlreaper.py
index 1d67827..d420470 100644
--- a/tests/unit/computations/test_qtlreaper.py
+++ b/tests/unit/computations/test_qtlreaper.py
@@ -77,6 +77,7 @@ class TestQTLReaper(TestCase):
5.82775, 5.89659, 5.92117, 5.93396, 5.93396, 5.94957])
def test_organise_reaper_main_results(self):
+ """Check that results are organised correctly."""
self.assertEqual(
organise_reaper_main_results([
{
@@ -135,7 +136,7 @@ class TestQTLReaper(TestCase):
1: {"Chr": 1,
"loci": [
{
- "Locus": "rs31443144", "cM": 1.500, "Mb": 3.010,
+ "Locus": "rs31443144", "cM": 1.500, "Mb": 3.010,
"LRS": 0.500, "Additive": -0.074, "pValue": 1.000
},
{
diff --git a/tests/unit/test_heatmaps.py b/tests/unit/test_heatmaps.py
index f3a81c5..c0a496b 100644
--- a/tests/unit/test_heatmaps.py
+++ b/tests/unit/test_heatmaps.py
@@ -189,6 +189,7 @@ class TestHeatmap(TestCase):
retrieve_strains_and_values(orders, slist, tdata), expected)
def test_get_lrs_from_chr(self):
+ """Check that function gets correct LRS values"""
for trait, chromosome, expected in [
[{"chromosomes": {}}, 3, [None]],
[{"chromosomes": {3: {"loci": [
@@ -202,6 +203,7 @@ class TestHeatmap(TestCase):
self.assertEqual(get_lrs_from_chr(trait, chromosome), expected)
def test_process_traits_data_for_heatmap(self):
+ """Check for correct processing of data for heatmap generation."""
self.assertEqual(
process_traits_data_for_heatmap(
{"1": {
@@ -210,7 +212,7 @@ class TestHeatmap(TestCase):
1: {"Chr": 1,
"loci": [
{
- "Locus": "rs31443144", "cM": 1.500, "Mb": 3.010,
+ "Locus": "rs31443144", "cM": 1.500, "Mb": 3.010,
"LRS": 0.500, "Additive": -0.074, "pValue": 1.000
},
{
@@ -257,7 +259,7 @@ class TestHeatmap(TestCase):
1: {"Chr": 1,
"loci": [
{
- "Locus": "rs31443144", "cM": 1.500, "Mb": 3.010,
+ "Locus": "rs31443144", "cM": 1.500, "Mb": 3.010,
"LRS": 0.500, "Additive": -0.074, "pValue": 1.000
},
{