From 6c9cfe7bd0bdedce2ea13cdc873e998a27295e20 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 12 Oct 2021 18:03:03 +0000 Subject: Fixed test_gen_covariates_file --- wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/tests') 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 4003d68f..255bfd7f 100644 --- a/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py +++ b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py @@ -112,7 +112,7 @@ class TestGemmaMapping(unittest.TestCase): create_trait.side_effect = create_trait_side_effect group = MockGroup({"name": "group_X", "samplelist": samplelist}) - this_dataset = AttributeSetter({"group": group}) + this_dataset = AttributeSetter({"group": group, "name": "dataset1_name"}) flat_files.return_value = "Home/Genenetwork" with mock.patch("builtins.open", mock.mock_open())as mock_open: -- cgit v1.2.3 From 1921cc3186f493d72a5d14a7e55abdd00914a32f Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 12 Oct 2021 18:49:38 +0000 Subject: Fix R/qtl mapping test --- wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/tests') diff --git a/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py index 9d13e943..b4423d8f 100644 --- a/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py +++ b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py @@ -32,7 +32,7 @@ class TestRqtlMapping(unittest.TestCase): "results" : []} results = run_rqtl(trait_name="the_trait", vals=[], samples=[], - dataset=dataset, mapping_scale="cM", model="normal", method="hk", + dataset=dataset, pair_scan=False, mapping_scale="cM", model="normal", method="hk", num_perm=5, perm_strata_list=[], do_control="false", control_marker="", manhattan_plot=True, cofactors="") -- cgit v1.2.3 From f588ad96ae5045499860fa6e2740e101ad4410d7 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 12 Oct 2021 18:53:55 +0000 Subject: Fixed filename in test_gen_covariates_file; I think that the hash changed because I changed the test dataset name from 'dataser_1' to 'dataset_1' --- wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/tests') 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 1ec18199..f2ea22c0 100644 --- a/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py +++ b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py @@ -134,7 +134,7 @@ class TestGemmaMapping(unittest.TestCase): flat_files.assert_called_once_with('mapping') mock_open.assert_called_once_with( - 'Home/Genenetwork/COVAR_anFZ_LfZYV0Ulywo+7tRCw.txt', 'w') + 'Home/Genenetwork/COVAR_npKxIOnq3azWdgYixtd9IQ.txt', 'w') filehandler = mock_open() filehandler.write.assert_has_calls([mock.call( '-9\t'), mock.call('-9\t'), mock.call('-9\t'), mock.call('-9\t'), mock.call('\n')]) -- cgit v1.2.3