diff options
author | AlexanderKabui | 2022-11-13 21:40:25 +0300 |
---|---|---|
committer | AlexanderKabui | 2022-11-13 21:40:25 +0300 |
commit | 3073a26a612af1d6cba93c92474e75ec83553697 (patch) | |
tree | c3601e0e6ef31c9205dc6f3fbfaab17e19413795 | |
parent | fe3414198289526d1ec9816cf56ba1b916cae8d6 (diff) | |
download | genenetwork2-3073a26a612af1d6cba93c92474e75ec83553697.tar.gz |
add check for dataset type
-rw-r--r-- | wqflask/wqflask/correlation/rust_correlation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index 935ab699..f5ee9403 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -23,7 +23,7 @@ from wqflask.correlation.exceptions import WrongCorrelationType def query_probes_metadata(dataset, trait_list): """query traits metadata in bulk for probeset""" - if not bool(trait_list): + if not bool(trait_list) or dataset.type!="ProbeSet": return [] with database_connector() as conn: |