diff options
author | Alexander Kabui | 2021-05-12 19:57:01 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-05-12 19:57:01 +0300 |
commit | 0f2b3be58b8265858d17581b85cab5ac4f13e097 (patch) | |
tree | fee3e8883e959c8608bf811efc4aafdfb20733be | |
parent | 9215c0d412bd885db3c3bbcb5635c22ac932b6f4 (diff) | |
download | genenetwork3-0f2b3be58b8265858d17581b85cab5ac4f13e097.tar.gz |
delete unused functions
-rw-r--r-- | gn3/computations/correlations.py | 23 | ||||
-rw-r--r-- | tests/unit/computations/test_correlation.py | 13 |
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\ |