aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorAlexander Kabui2021-04-20 01:46:45 +0300
committerAlexander Kabui2021-04-20 01:46:45 +0300
commitf0ccff2a90d760fc0b268e715e0c6c673ff64e15 (patch)
tree7a30d05deaf59ecf9326f167b4b7875ee36b995c /gn3/computations
parent61ec8882abaea2e1ad4c88daabcc1969a76230dc (diff)
downloadgenenetwork3-f0ccff2a90d760fc0b268e715e0c6c673ff64e15.tar.gz
pep8 formatting
Diffstat (limited to 'gn3/computations')
-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