aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-10-11 21:26:05 +0000
committerzsloan2022-10-11 21:26:05 +0000
commit1d37d4514e2f60e16be23aa70c03948158e7b383 (patch)
treef5caf8fb1bcdb48092a2496e9b0088739f8d76bb /wqflask
parentfa58b9efe0216e26822da4c2872bdb5b3eeb5b0c (diff)
downloadgenenetwork2-1d37d4514e2f60e16be23aa70c03948158e7b383.tar.gz
Only compute Lit/Tissue corr when main trait's dataset is of type ProbeSet
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index aee08cba..3330cce9 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -348,7 +348,7 @@ def compute_correlation_rust(
if should_compute_all:
- if corr_type == "sample":
+ if corr_type == "sample" and this_dataset.type == "ProbeSet":
top_a = compute_top_n_tissue(
target_dataset, this_trait, results, method)
@@ -369,8 +369,6 @@ def compute_correlation_rust(
top_a = compute_top_n_sample(
start_vars, target_dataset, list(results.keys()))
- top_b = compute_top_n_lit(results, target_dataset, this_trait)
-
return {
"correlation_results": merge_results(
results, top_a, top_b),