aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-10-26 09:23:48 +0300
committerBonfaceKilz2021-11-04 12:45:57 +0300
commit5079e5077adafdbfd0b7e7c0ef12431e9aed443d (patch)
tree6b74c65ff6f5bc87c77addfbd30d83216c704c3b
parentd6e392c2488421ae04b4ffd5de26be40ed86a9b3 (diff)
downloadgenenetwork3-5079e5077adafdbfd0b7e7c0ef12431e9aed443d.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.
-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]: