diff options
author | Alexander Kabui | 2021-04-17 04:20:08 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-04-17 04:20:08 +0300 |
commit | ba1ea53443b8085700df2941e68421bcc8206c8b (patch) | |
tree | c5d9f2e82f37767930e315b804b6d853b7a2284e /gn3 | |
parent | e8dddf89e0736b024aa28d4170a5865f6869f7da (diff) | |
download | genenetwork3-ba1ea53443b8085700df2941e68421bcc8206c8b.tar.gz |
ad pep8 formatting
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/computations/correlations.py | 4 |
1 files changed, 1 insertions, 3 deletions
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: |