aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/computations
diff options
context:
space:
mode:
authorAlexander Kabui2021-05-03 10:43:07 +0300
committerAlexander Kabui2021-05-03 10:43:07 +0300
commitef55d9769c50e12af6252f9fae78f5aa3bf42670 (patch)
tree10c49b60fe0766fe8155210083fab1bdf13ec4e9 /tests/unit/computations
parenta1b1fdce9c92fd84e97310c79c17e7b1c74bff07 (diff)
downloadgenenetwork3-ef55d9769c50e12af6252f9fae78f5aa3bf42670.tar.gz
minor fixes for tiss correlation tests and naming
Diffstat (limited to 'tests/unit/computations')
-rw-r--r--tests/unit/computations/test_correlation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/computations/test_correlation.py b/tests/unit/computations/test_correlation.py
index c6fa35e..6414c3b 100644
--- a/tests/unit/computations/test_correlation.py
+++ b/tests/unit/computations/test_correlation.py
@@ -235,12 +235,12 @@ class TestCorrelation(TestCase):
primary_tissue_values = [1.1, 1.5, 2.3]
target_tissues_values = [1, 2, 3]
mock_compute_corr_coeff.side_effect = [(0.4, 0.9), (-0.2, 0.91)]
- expected_tissue_results = {
- 'tissue_corr': 0.4, 'p_value': 0.9, "tissue_number": 3}
-
+ expected_tissue_results = {"1456_at": {"tissue_corr": 0.4,
+ "p_value": 0.9, "tissue_number": 3}}
tissue_results = tissue_correlation_for_trait_list(
primary_tissue_values, target_tissues_values,
- corr_method="pearson", compute_corr_p_value=mock_compute_corr_coeff)
+ corr_method="pearson", trait_id="1456_at",
+ compute_corr_p_value=mock_compute_corr_coeff)
self.assertEqual(tissue_results, expected_tissue_results)