From 1b0d48112b3e574a2d2dc65fcaf2fb2e1746381f Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 9 Sep 2022 16:02:21 +0300 Subject: handle cases where tissue dataset vals are empty list --- wqflask/wqflask/correlation/rust_correlation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') 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") -- cgit v1.2.3