aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2022-09-09 16:02:21 +0300
committerBonfaceKilz2022-09-09 18:04:33 +0300
commit1b0d48112b3e574a2d2dc65fcaf2fb2e1746381f (patch)
tree1840c17c47431baef6a02a14518442978389810b
parentd1f1c5c88a2a5c986c7099ddd91ca7a0fbf5dffc (diff)
downloadgenenetwork2-1b0d48112b3e574a2d2dc65fcaf2fb2e1746381f.tar.gz
handle cases where tissue dataset vals are empty list
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index 92cb362c..bf81dd11 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -192,9 +192,9 @@ def compute_top_n_tissue(this_dataset, this_trait, traits, method):
symbol_dict=get_trait_symbol_and_tissue_values(
symbol_list=[this_trait.symbol]),
dataset_symbols=trait_symbol_dict,
- dataset_vals=corr_result_tissue_vals_dict)
+ dataset_vals=corr_result_tissue_vals_dict)
- if data:
+ if data[0]:
return run_correlation(
data[1], data[0], method, ",", "tissue")