aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-08-12 12:52:38 +0300
committerFrederick Muriuki Muriithi2022-08-12 12:53:25 +0300
commitfbc7ea257028f07751d7ebaa9f8656569215e124 (patch)
treebdef4a098b22b2bc1ebc6921f0e29e4cf493981e /wqflask
parent3c1cb6a94b64dae28c62f481e1f4499f8f5b89e7 (diff)
downloadgenenetwork2-fbc7ea257028f07751d7ebaa9f8656569215e124.tar.gz
Fix some issues with the tests. Add notes in code for improvements.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index b4435887..3628f549 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -135,6 +135,7 @@ def compute_correlation_rust(
(this_dataset, this_trait, target_dataset, sample_data) = (
target_trait_info)
+ ## Replace this with `match ...` once we hit Python 3.10
corr_type_fns = {
"sample": __compute_sample_corr__,
"tissue": __compute_tissue_corr__,
@@ -142,6 +143,7 @@ def compute_correlation_rust(
}
results = corr_type_fns[corr_type](
start_vars, corr_type, method, n_top, target_trait_info)
+ ## END: Replace this with `match ...` once we hit Python 3.10
top_tissue_results = {}
top_lit_results = {}