aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/computations/correlations.py23
-rw-r--r--tests/unit/computations/test_correlation.py13
2 files changed, 0 insertions, 36 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 2a4854b..d496cec 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -199,29 +199,6 @@ def benchmark_compute_all_sample(this_trait,
return corr_results
-def tissue_lit_corr_for_probe_type(corr_type: str, top_corr_results):
- """Function that does either lit_corr_for_trait_list or tissue_corr _for_trait
-list depending on whether both dataset and target_dataset are both set to
-probet
-
- """
-
- corr_results = {"lit": 1}
-
- if corr_type not in ("lit", "literature"):
-
- corr_results["top_corr_results"] = top_corr_results
- # run lit_correlation for the given top_corr_results
- if corr_type == "tissue":
- # run lit correlation the given top corr results
- pass
- if corr_type == "sample":
- pass
- # run sample r correlation for the given top results
-
- return corr_results
-
-
def tissue_correlation_for_trait(
primary_tissue_vals: List,
target_tissues_values: List,
diff --git a/tests/unit/computations/test_correlation.py b/tests/unit/computations/test_correlation.py
index 8bf5b37..52c1f85 100644
--- a/tests/unit/computations/test_correlation.py
+++ b/tests/unit/computations/test_correlation.py
@@ -10,7 +10,6 @@ from gn3.computations.correlations import do_bicor
from gn3.computations.correlations import compute_sample_r_correlation
from gn3.computations.correlations import compute_all_sample_correlation
from gn3.computations.correlations import filter_shared_sample_keys
-from gn3.computations.correlations import tissue_lit_corr_for_probe_type
from gn3.computations.correlations import tissue_correlation_for_trait
from gn3.computations.correlations import lit_correlation_for_trait
from gn3.computations.correlations import fetch_lit_correlation_data
@@ -214,18 +213,6 @@ class TestCorrelation(TestCase):
filter_shared_samples.assert_called_once_with(
this_trait_data.get("trait_sample_data"), traits_dataset[0].get("trait_sample_data"))
- @unittest.skip("not implemented")
- def test_tissue_lit_corr_for_probe_type(self):
- """Tests for doing tissue and lit correlation for trait list\
- if both the dataset and target dataset are probeset runs\
- on after initial correlation has been done
- """
-
- results = tissue_lit_corr_for_probe_type(
- corr_type="tissue", top_corr_results={})
-
- self.assertEqual(results, (None, None))
-
@mock.patch("gn3.computations.correlations.compute_corr_coeff_p_value")
def test_tissue_correlation_for_trait(self, mock_compute_corr_coeff):
"""Test given a primary tissue values for a trait and and a list of\