aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/correlations.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/computations/correlations.py')
-rw-r--r--gn3/computations/correlations.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 66a2034..4432971 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -449,13 +449,11 @@ def experimental_compute_all_tissue_correlation(primary_tissue_dict: dict,
processed_values = []
for target_tissue_obj in target_tissues_list:
- trait_id = target_tissue_obj.get("trait_id")
target_tissue_vals = target_tissue_obj.get("tissue_values")
processed_values.append(
(primary_tissue_vals, target_tissue_vals, corr_method))
- tissue_results = []
with multiprocessing.Pool() as pool:
results = pool.starmap(
tissue_correlation_for_trait_list, processed_values)
@@ -471,8 +469,6 @@ def experimental_compute_all_tissue_correlation(primary_tissue_dict: dict,
# tissue_result_dict = {trait_id: tissue_result}
# tissues_results.append(tissue_result_dict)
- sorted_tissues_results = sorted(
+ return sorted(
tissues_results,
key=lambda trait_name: -abs(list(trait_name.values())[0]["tissue_corr"]))
-
- return sorted_tissues_results