diff options
author | BonfaceKilz | 2022-06-21 10:51:22 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-06-21 11:04:33 +0300 |
commit | c11d7605f99a9cb901265dc02729c346338ea709 (patch) | |
tree | 59f17d58e4cb171e4f899138a46a4830b4c1de64 /gn3 | |
parent | b985c411980660fd0ce73d7a9be5cb7599f7eb5f (diff) | |
download | genenetwork3-c11d7605f99a9cb901265dc02729c346338ea709.tar.gz |
db: correlations: Ignore types
* gn3/db/correlations.py (__build_query__): Ignore the "sample_ids" and
"joins" types when calling build_query_sgo_lit_corr
(fetch_all_database_data): Ignore the return type.
TODO: Ping Alex/Arun to fix this.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/db/correlations.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py index 07eaa56..ba61bb0 100644 --- a/gn3/db/correlations.py +++ b/gn3/db/correlations.py @@ -502,7 +502,11 @@ def __build_query__( for item in sample_ids) if method.lower() == "sgo literature correlation": return build_query_sgo_lit_corr( - sample_ids, temp_table, sample_id_columns, joins) + sample_ids, # type: ignore + temp_table, + sample_id_columns, + joins # type: ignore + ) if method.lower() in ( "tissue correlation, pearson's r", "tissue correlation, spearman's rho"): @@ -580,4 +584,4 @@ def fetch_all_database_data(# pylint: disable=[R0913, R0914] with conn.cursor() as cursor: cursor.execute(f"DROP TEMPORARY TABLE {temp_table}") - return (trait_database[0], trait_database[1]) + return (trait_database[0], trait_database[1]) # type: ignore |