aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-10-29 04:55:30 +0300
committerBonfaceKilz2021-11-04 12:45:57 +0300
commit28b0ced4ec13451c5c7323ed5135d126f296836a (patch)
tree100d64ff6943e1f65ef03c67e23bbd2361db237b /gn3/computations
parent14c699094a39ee2b18a26c990c0bf81d811cc93f (diff)
downloadgenenetwork3-28b0ced4ec13451c5c7323ed5135d126f296836a.tar.gz
Move the function to computations module
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * The function `batch_computed_tissue_correlation` is a pure computations function with no expressions accessing the database, as far as I can tell, therefore, this commit moves the function over to the gn3.computations.partial_correlations module that holds the pure computation functions.
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/partial_correlations.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 1fb0ccc..b3de31c 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -122,3 +122,11 @@ def find_identical_traits(
(primary_name,) + control_names), {}).items()
if len(item[1]) > 1),
tuple()))
+
+def batch_computed_tissue_correlation(
+ trait_value: str, symbol_value_dict: dict,
+ method: str = "pearson") -> Tuple[dict, dict]:
+ """
+ `web.webqtl.correlation.correlationFunction.batchCalTissueCorr`"""
+ raise Exception("Not implemented!")
+ return ({}, {})