aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-10-26 09:23:48 +0300
committerFrederick Muriuki Muriithi2021-10-26 09:23:48 +0300
commit79c56677d32fb0b7ed05d22df3813def8f14b89a (patch)
treec9ff238901ce6b50728114fc36e626d2cf194706 /gn3/db
parent39493a3e6b381bc94b54b48657b1f2ac829e4bb2 (diff)
downloadgenenetwork3-79c56677d32fb0b7ed05d22df3813def8f14b89a.tar.gz
Stub out `batch_computed_tissue_correlation` function
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * Stub out `batch_computed_tissue_correlation` function to be used in implementing the function down the line.
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/correlations.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py
index f43b8a5..54d3079 100644
--- a/gn3/db/correlations.py
+++ b/gn3/db/correlations.py
@@ -281,6 +281,14 @@ def fetch_gene_symbol_tissue_value_dict_for_trait(
return fetch_gene_symbol_tissue_value_dict(xref_info[0], xref_info[2], conn)
return {}
+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 ({}, {})
+
def correlations_of_all_tissue_traits(
trait_symbol: str, probeset_freeze_id: int,
method: str, conn: Any) -> Tuple[dict, dict]: