From ba1ea53443b8085700df2941e68421bcc8206c8b Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Sat, 17 Apr 2021 04:20:08 +0300 Subject: ad pep8 formatting --- gn3/computations/correlations.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gn3') diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py index 804716c..1e95800 100644 --- a/gn3/computations/correlations.py +++ b/gn3/computations/correlations.py @@ -150,10 +150,9 @@ def compute_all_sample_correlation(this_trait, corr_results.append({"trait_name_key": corr_result}) - sorted_corr_results = sorted( + return sorted( corr_results, key=lambda trait_name: -abs(list(trait_name.values())[0]["corr_coeffient"])) - return sorted_corr_results def benchmark_compute_all_sample(this_trait, @@ -295,7 +294,6 @@ def lit_correlation_for_trait_list( species=species, gene_id=trait_gene_id) - for (trait_name, target_trait_gene_id) in target_trait_lists: corr_results = {} if target_trait_gene_id: -- cgit v1.2.3