aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/correlations.py4
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: