diff options
author | Alexander Kabui | 2021-11-12 12:54:45 +0300 |
---|---|---|
committer | GitHub | 2021-11-12 12:54:45 +0300 |
commit | fd4abaaeb18c31b1d0d8474fe2229d5a31bfc20d (patch) | |
tree | 021d2b3b3380fe74d660976c66ad9a7e3e80274a /wqflask | |
parent | c1fcc555741aa685413e14fa8a17bb10fa1934c2 (diff) | |
parent | b983afd6be0b8fc5ae8065a1b0745296645da593 (diff) | |
download | genenetwork2-fd4abaaeb18c31b1d0d8474fe2229d5a31bfc20d.tar.gz |
Merge pull request #626 from Alexanderlacuna/bugfix/nonetype-trait-symbol-fix
bugfix:cases where trait symbol is none
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/correlation/correlation_gn3_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/correlation_gn3_api.py b/wqflask/wqflask/correlation/correlation_gn3_api.py index 1e3a40f2..20c0d99a 100644 --- a/wqflask/wqflask/correlation/correlation_gn3_api.py +++ b/wqflask/wqflask/correlation/correlation_gn3_api.py @@ -290,7 +290,7 @@ def get_tissue_correlation_input(this_trait, trait_symbol_dict): """Gets tissue expression values for the primary trait and target tissues values""" primary_trait_tissue_vals_dict = correlation_functions.get_trait_symbol_and_tissue_values( symbol_list=[this_trait.symbol]) - if this_trait.symbol.lower() in primary_trait_tissue_vals_dict: + if this_trait.symbol and this_trait.symbol.lower() in primary_trait_tissue_vals_dict: primary_trait_tissue_values = primary_trait_tissue_vals_dict[this_trait.symbol.lower( )] corr_result_tissue_vals_dict = correlation_functions.get_trait_symbol_and_tissue_values( |