aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-08-24 21:20:06 +0000
committerzsloan2022-08-24 21:20:06 +0000
commitd0c210dfb79ddf851d8cd721801c88df40f08d5a (patch)
treeab089315663cbebb0d793416233630e23695c789 /wqflask
parent5f5e83c9fc108df6e100700bb879e84dd9ceee07 (diff)
downloadgenenetwork2-d0c210dfb79ddf851d8cd721801c88df40f08d5a.tar.gz
Limit literature correlation results to top N as specified in the form
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index 5c22efbf..2a90317b 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -212,7 +212,7 @@ def __compute_lit_corr__(
lambda acc, lit: {**acc, **lit},
compute_all_lit_correlation(
conn=conn, trait_lists=list(geneid_dict.items()),
- species=species, gene_id=this_trait_geneid),
+ species=species, gene_id=this_trait_geneid)[:n_top],
{})
return {}