aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/unit
diff options
context:
space:
mode:
authorBonfaceKilz2022-06-10 13:07:29 +0300
committerBonfaceKilz2022-06-10 14:45:46 +0300
commit62d323779f27cb81e7d6d1182cca8aec6430fd27 (patch)
treec9ae2ae2052e672e87913157781f12cf945da7cb /wqflask/tests/unit
parente561cf779fb5438dc43c10bf58b6692f30daefb0 (diff)
downloadgenenetwork2-62d323779f27cb81e7d6d1182cca8aec6430fd27.tar.gz
Reverse polarity for gemma additive effects in tests
Fixes broken test. See: #89a7868.
Diffstat (limited to 'wqflask/tests/unit')
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py
index f2ea22c0..611c0d70 100644
--- a/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py
@@ -165,13 +165,12 @@ X\tM5\t12\tQ\tE\tMMB\tR\t21.1\tW\t0.65\t0.6"""
this_dataset={}, gwa_output_filename=".xw/")
expected_results = [
{'name': 'M1', 'chr': 'X/Y', 'Mb': 2.8457155e-05, 'p_value': 0.85,
- 'additive': 23.3, 'lod_score': 0.07058107428570727},
+ 'additive': -23.3, 'lod_score': 0.07058107428570727},
{'name': 'M2', 'chr': 4, 'Mb': 1.2e-05, 'p_value': 0.5,
- 'additive': 24.0, 'lod_score': 0.3010299956639812},
+ 'additive': -24.0, 'lod_score': 0.3010299956639812},
{'name': 'M4', 'chr': 'Y', 'Mb': 1.2e-05, 'p_value': 0.7,
- 'additive': 11.6, 'lod_score': 0.1549019599857432},
- {'name': 'M5', 'chr': 'X', 'Mb': 1.2e-05, 'p_value': 0.6, 'additive': 21.1, 'lod_score': 0.22184874961635637}]
-
+ 'additive': -11.6, 'lod_score': 0.1549019599857432},
+ {'name': 'M5', 'chr': 'X', 'Mb': 1.2e-05, 'p_value': 0.6, 'additive': -21.1, 'lod_score': 0.22184874961635637}]
self.assertEqual(expected_results, results)
@mock.patch("wqflask.marker_regression.gemma_mapping.TEMPDIR", "/home/tmp")