diff options
author | zsloan | 2021-02-18 21:47:39 +0000 |
---|---|---|
committer | BonfaceKilz | 2021-02-19 12:59:37 +0300 |
commit | e55861d6ced9a5c746a8e28c9a9c067e3927275a (patch) | |
tree | 93fa0d50f13bf56f5f7c3d34104032f933ac1bdf /wqflask/tests/unit | |
parent | c1d775162c2a657f9e8001914cc216cd70460371 (diff) | |
download | genenetwork2-e55861d6ced9a5c746a8e28c9a9c067e3927275a.tar.gz |
Fixed test_run_mapping.py to make export_mapping_results test work correctly
Diffstat (limited to 'wqflask/tests/unit')
-rw-r--r-- | wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py index 4129cc0c..a29d8cfb 100644 --- a/wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py +++ b/wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py @@ -180,14 +180,19 @@ class TestRunMapping(unittest.TestCase): with mock.patch("wqflask.marker_regression.run_mapping.datetime.datetime", new=datetime_mock): export_mapping_results(dataset=self.dataset, trait=self.trait, markers=markers, - results_path="~/results", mapping_scale="physic", score_type="-log(p)") + results_path="~/results", mapping_scale="physic", score_type="-log(p)", + transform="qnorm", covariates="Dataset1:Trait1,Dataset2:Trait2", n_samples="100") write_calls = [ mock.call('Time/Date: 09/01/19 / 10:12:12\n'), mock.call('Population: Human GP1_\n'), mock.call( 'Data Set: dataser_1\n'), + mock.call('N Samples: 100\n'), mock.call('Transform - Quantile Normalized\n'), mock.call('Gene Symbol: IGFI\n'), mock.call( 'Location: X1 @ 123313 Mb\n'), + mock.call('Cofactors (dataset - trait):\n'), + mock.call('Trait1 - Dataset1\n'), + mock.call('Trait2 - Dataset2\n'), mock.call('\n'), mock.call('Name,Chr,'), mock.call('Mb,-log(p)'), mock.call('Cm,-log(p)'), mock.call(',Additive'), mock.call(',Dominance'), |