aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/default_settings.py3
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py9
2 files changed, 9 insertions, 3 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index a0d01de0..ff84f021 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -33,6 +33,9 @@ REDIS_URL = "redis://:@localhost:6379/0"
# gn2-proxy
GN2_PROXY = "http://localhost:8080"
+# GN PROXY
+GN_PROXY_URL="https://genenetwork.org/gn3-proxy/"
+
# ---- MySQL
SQL_URI = "mysql://gn2:mysql_password@localhost/db_webqtl_s"
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index 10513563..37e2ba76 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -221,9 +221,12 @@ def __compute_lit_corr__(
this_trait, this_dataset)
with database_connector() as conn:
- return compute_all_lit_correlation(
- conn=conn, trait_lists=list(geneid_dict.items()),
- species=species, gene_id=this_trait_geneid)
+ return reduce(
+ lambda acc, lit: {**acc, **lit},
+ compute_all_lit_correlation(
+ conn=conn, trait_lists=list(geneid_dict.items()),
+ species=species, gene_id=this_trait_geneid),
+ {})
return {}