diff options
-rw-r--r-- | wqflask/wqflask/correlation/rust_correlation.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index b93c306d..79d08a59 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -122,9 +122,12 @@ def __compute_lit_corr__( this_trait, this_dataset) with database_connector() as conn: - return dict(compute_all_lit_correlation( - conn=conn, trait_lists=list(geneid_dict.items()), - species=species, gene_id=this_trait_geneid)) + return reduce( + lambda acc, lit: {**acc, **lit}, + compute_all_lit_correlation( + conn=conn, trait_lists=list(geneid_dict.items()), + species=species, gene_id=this_trait_geneid), + {}) return {} def compute_correlation_rust( |