aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-10-29 08:28:19 +0300
committerBonfaceKilz2021-11-04 12:45:57 +0300
commit9ceb958273b8d86d220fa0d2f040fcb4a8233586 (patch)
tree9cd6b8c60c3e937c4cc159487f76c9966c88db89 /gn3/db
parent307a83b897b9ece7c9dd1af49bdedc9e1320eb61 (diff)
downloadgenenetwork3-9ceb958273b8d86d220fa0d2f040fcb4a8233586.tar.gz
Fix linting and typing errors
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/correlations.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py
index d7954e5..d94759a 100644
--- a/gn3/db/correlations.py
+++ b/gn3/db/correlations.py
@@ -10,6 +10,8 @@ from gn3.random import random_string
from gn3.data_helpers import partition_all
from gn3.db.species import translate_to_mouse_gene_id
+from gn3.computations.partial_correlations import correlations_of_all_tissue_traits
+
def get_filename(target_db_name: str, conn: Any) -> str:
"""
Retrieve the name of the reference database file with which correlations are
@@ -275,9 +277,8 @@ def build_temporary_tissue_correlations_table(
`web.webqtl.correlation.CorrelationPage.getTempTissueCorrTable` function in
GeneNetwork1."""
# We should probably pass the `correlations_of_all_tissue_traits` function
- # as an argument to this function and get rid of the two lines immediately
+ # as an argument to this function and get rid of the one call immediately
# following this comment.
- from gn3.computations.partial_correlations import correlations_of_all_tissue_traits
symbol_corr_dict, symbol_p_value_dict = correlations_of_all_tissue_traits(
fetch_gene_symbol_tissue_value_dict_for_trait(
(trait_symbol,), probeset_freeze_id, conn),
@@ -308,7 +309,7 @@ def build_temporary_tissue_correlations_table(
return temp_table_name
-def fetch_tissue_correlations(
+def fetch_tissue_correlations(# pylint: disable=R0913
dataset: dict, trait_symbol: str, probeset_freeze_id: int, method: str,
return_number: int, conn: Any) -> dict:
"""