diff options
author | Frederick Muriuki Muriithi | 2021-09-17 11:20:16 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-09-17 11:20:16 +0300 |
commit | 1e2357049adc72808fbf8eaac3da9411d3c78c66 (patch) | |
tree | 778d22e2f021fddf6dfbd4abc9ec312c4043f22d /tests/unit/test_heatmaps.py | |
parent | 8ac3194f06084dfe5d0cfb141f178d83d937fcc3 (diff) | |
download | genenetwork3-1e2357049adc72808fbf8eaac3da9411d3c78c66.tar.gz |
Fix a number of linting issues
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi
Diffstat (limited to 'tests/unit/test_heatmaps.py')
-rw-r--r-- | tests/unit/test_heatmaps.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 }, { |