diff options
author | Muriithi Frederick Muriuki | 2021-08-31 11:16:29 +0300 |
---|---|---|
committer | Muriithi Frederick Muriuki | 2021-08-31 11:16:29 +0300 |
commit | b5e1d1176f1bf4f7c0b68b27beb15e99418f1650 (patch) | |
tree | f158a54b262214ca65394a7dc65a64590533cc0c /tests/unit/computations/test_qtlreaper.py | |
parent | e441509a59c20a051fd5ab94710513f1968a5e02 (diff) | |
download | genenetwork3-b5e1d1176f1bf4f7c0b68b27beb15e99418f1650.tar.gz |
Fix linting errors, minor bugs and reorganise code
* Fix some linting errors and some minor bugs caught by the linter.
Move the `random_string` function to separate module for use in multiple
places in the code.
Diffstat (limited to 'tests/unit/computations/test_qtlreaper.py')
-rw-r--r-- | tests/unit/computations/test_qtlreaper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/computations/test_qtlreaper.py b/tests/unit/computations/test_qtlreaper.py index ec23664..6c3b64d 100644 --- a/tests/unit/computations/test_qtlreaper.py +++ b/tests/unit/computations/test_qtlreaper.py @@ -1,5 +1,4 @@ """Module contains tests for gn3.computations.qtlreaper""" -import os from unittest import TestCase from gn3.computations.qtlreaper import ( parse_reaper_main_results, parse_reaper_permutation_results) @@ -8,6 +7,7 @@ class TestQTLReaper(TestCase): """Class for testing qtlreaper interface functions.""" def test_parse_reaper_main_results(self): + """Test that the main results file is parsed correctly.""" self.assertEqual( parse_reaper_main_results( "tests/unit/computations/data/qtlreaper/main_output_sample.txt"), @@ -65,9 +65,10 @@ class TestQTLReaper(TestCase): ]) def test_parse_reaper_permutation_results(self): + """Test that the permutations results file is parsed correctly.""" self.assertEqual( parse_reaper_permutation_results( - "tests/unit/computations/data/qtlreaper/permu_output_sample.txt"), + "tests/unit/computations/data/qtlreaper/permu_output_sample.txt"), [4.44174, 5.03825, 5.08167, 5.18119, 5.18578, 5.24563, 5.24619, 5.24619, 5.27961, 5.28228, 5.43903, 5.50188, 5.51694, 5.56830, 5.63874, 5.71346, 5.71936, 5.74275, 5.76764, 5.79815, 5.81671, |