diff options
author | Alexander Kabui | 2021-11-12 12:47:37 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-11-12 12:47:37 +0300 |
commit | b983afd6be0b8fc5ae8065a1b0745296645da593 (patch) | |
tree | 1b2a762a9e482a598edd8011155b74984445c002 /wqflask | |
parent | 8cef34c83fd2c013e0671ece54bfe43a3c4bb510 (diff) | |
download | genenetwork2-b983afd6be0b8fc5ae8065a1b0745296645da593.tar.gz |
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( |