diff options
author | zsloan | 2022-08-24 21:20:06 +0000 |
---|---|---|
committer | zsloan | 2022-08-24 21:20:06 +0000 |
commit | d0c210dfb79ddf851d8cd721801c88df40f08d5a (patch) | |
tree | ab089315663cbebb0d793416233630e23695c789 /wqflask | |
parent | 5f5e83c9fc108df6e100700bb879e84dd9ceee07 (diff) | |
download | genenetwork2-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.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 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 {} |