aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/correlations.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-11-29 14:01:44 +0300
committerFrederick Muriuki Muriithi2021-11-29 14:01:44 +0300
commit99953f6e4a540da41d0517203eb63da4e19405cd (patch)
tree92faedba7770082d95cff3fb0aa7e1a6595c004d /gn3/db/correlations.py
parent6b147173d514093ec4e461f5843170c968290e5e (diff)
downloadgenenetwork3-99953f6e4a540da41d0517203eb63da4e19405cd.tar.gz
Fix linting errors
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi
Diffstat (limited to 'gn3/db/correlations.py')
-rw-r--r--gn3/db/correlations.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py
index 2a38bae..3d12019 100644
--- a/gn3/db/correlations.py
+++ b/gn3/db/correlations.py
@@ -29,7 +29,7 @@ def get_filename(conn: Any, target_db_name: str, text_files_dir: str) -> Union[
filename = "ProbeSetFreezeId_{tid}_FullName_{fname}.txt".format(
tid=result[0],
fname=result[1].replace(' ', '_').replace('/', '_'))
- return ((filename in os.listdir(text_file_dir))
+ return ((filename in os.listdir(text_files_dir))
and f"{text_files_dir}/{filename}")
return False
@@ -280,7 +280,8 @@ def build_temporary_tissue_correlations_table(
# We should probably pass the `correlations_of_all_tissue_traits` function
# 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
+ from gn3.computations.partial_correlations import (#pylint: disable=[C0415, R0401]
+ correlations_of_all_tissue_traits)
# This import above is necessary within the function to avoid
# circular-imports.
#